@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.AccessPreviewStatusReasonCode
public String getCode()
The reason code for the current status of the access preview.
AccessPreviewStatusReasonCode
public 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.AccessPreviewStatusReasonCode
public 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.AccessPreviewStatusReasonCode
public String toString()
toString
in class Object
Object.toString()
public AccessPreviewStatusReason clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.