@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.ErrorCode
public String getErrorCode()
The error code explaining why the account failed to enable Amazon Inspector.
ErrorCode
public 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.ErrorCode
public 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.ErrorCode
public 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.Status
public String getStatus()
The status of Amazon Inspector for the account.
Status
public State withStatus(String status)
The status of Amazon Inspector for the account.
status
- The status of Amazon Inspector for the account.Status
public State withStatus(Status status)
The status of Amazon Inspector for the account.
status
- The status of Amazon Inspector for the account.Status
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.