@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class State extends Object implements Serializable, Cloneable, StructuredPojo
An object that described the state of Amazon Inspector scans for an account.
| Constructor and Description |
|---|
State() |
| Modifier and Type | Method and Description |
|---|---|
State |
clone() |
boolean |
equals(Object obj) |
String |
getErrorCode()
The error code explaining why the account failed to enable Amazon Inspector.
|
String |
getErrorMessage()
The error message received when the account failed to enable Amazon Inspector.
|
String |
getStatus()
The status of Amazon Inspector for the account.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setErrorCode(String errorCode)
The error code explaining why the account failed to enable Amazon Inspector.
|
void |
setErrorMessage(String errorMessage)
The error message received when the account failed to enable Amazon Inspector.
|
void |
setStatus(String status)
The status of Amazon Inspector for the account.
|
String |
toString()
Returns a string representation of this object.
|
State |
withErrorCode(ErrorCode errorCode)
The error code explaining why the account failed to enable Amazon Inspector.
|
State |
withErrorCode(String errorCode)
The error code explaining why the account failed to enable Amazon Inspector.
|
State |
withErrorMessage(String errorMessage)
The error message received when the account failed to enable Amazon Inspector.
|
State |
withStatus(Status status)
The status of Amazon Inspector for the account.
|
State |
withStatus(String status)
The status of Amazon Inspector for the account.
|
public void setErrorCode(String errorCode)
The error code explaining why the account failed to enable Amazon Inspector.
errorCode - The error code explaining why the account failed to enable Amazon Inspector.ErrorCodepublic String getErrorCode()
The error code explaining why the account failed to enable Amazon Inspector.
ErrorCodepublic State withErrorCode(String errorCode)
The error code explaining why the account failed to enable Amazon Inspector.
errorCode - The error code explaining why the account failed to enable Amazon Inspector.ErrorCodepublic State withErrorCode(ErrorCode errorCode)
The error code explaining why the account failed to enable Amazon Inspector.
errorCode - The error code explaining why the account failed to enable Amazon Inspector.ErrorCodepublic void setErrorMessage(String errorMessage)
The error message received when the account failed to enable Amazon Inspector.
errorMessage - The error message received when the account failed to enable Amazon Inspector.public String getErrorMessage()
The error message received when the account failed to enable Amazon Inspector.
public State withErrorMessage(String errorMessage)
The error message received when the account failed to enable Amazon Inspector.
errorMessage - The error message received when the account failed to enable Amazon Inspector.public void setStatus(String status)
The status of Amazon Inspector for the account.
status - The status of Amazon Inspector for the account.Statuspublic String getStatus()
The status of Amazon Inspector for the account.
Statuspublic State withStatus(String status)
The status of Amazon Inspector for the account.
status - The status of Amazon Inspector for the account.Statuspublic State withStatus(Status status)
The status of Amazon Inspector for the account.
status - The status of Amazon Inspector for the account.Statuspublic String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.