@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AccessPreviewStatusReason extends Object implements Serializable, Cloneable, StructuredPojo
Provides more details about the current status of the access preview. For example, if the creation of the access
preview fails, a Failed status is returned. This failure can be due to an internal issue with the
analysis or due to an invalid proposed resource configuration.
| Constructor and Description |
|---|
AccessPreviewStatusReason() |
| Modifier and Type | Method and Description |
|---|---|
AccessPreviewStatusReason |
clone() |
boolean |
equals(Object obj) |
String |
getCode()
The reason code for the current status of the access preview.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setCode(String code)
The reason code for the current status of the access preview.
|
String |
toString()
Returns a string representation of this object.
|
AccessPreviewStatusReason |
withCode(AccessPreviewStatusReasonCode code)
The reason code for the current status of the access preview.
|
AccessPreviewStatusReason |
withCode(String code)
The reason code for the current status of the access preview.
|
public void setCode(String code)
The reason code for the current status of the access preview.
code - The reason code for the current status of the access preview.AccessPreviewStatusReasonCodepublic String getCode()
The reason code for the current status of the access preview.
AccessPreviewStatusReasonCodepublic AccessPreviewStatusReason withCode(String code)
The reason code for the current status of the access preview.
code - The reason code for the current status of the access preview.AccessPreviewStatusReasonCodepublic AccessPreviewStatusReason withCode(AccessPreviewStatusReasonCode code)
The reason code for the current status of the access preview.
code - The reason code for the current status of the access preview.AccessPreviewStatusReasonCodepublic String toString()
toString in class ObjectObject.toString()public AccessPreviewStatusReason clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.