@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class FailedAccount extends Object implements Serializable, Cloneable, StructuredPojo
An object with details on why an account failed to enable Amazon Inspector.
| Constructor and Description |
|---|
FailedAccount() |
| Modifier and Type | Method and Description |
|---|---|
FailedAccount |
clone() |
boolean |
equals(Object obj) |
String |
getAccountId()
The Amazon Web Services account ID.
|
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.
|
ResourceStatus |
getResourceStatus()
An object detailing which resources Amazon Inspector is enabled to scan for the account.
|
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 |
setAccountId(String accountId)
The Amazon Web Services account ID.
|
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 |
setResourceStatus(ResourceStatus resourceStatus)
An object detailing which resources Amazon Inspector is enabled to scan for the account.
|
void |
setStatus(String status)
The status of Amazon Inspector for the account.
|
String |
toString()
Returns a string representation of this object.
|
FailedAccount |
withAccountId(String accountId)
The Amazon Web Services account ID.
|
FailedAccount |
withErrorCode(ErrorCode errorCode)
The error code explaining why the account failed to enable Amazon Inspector.
|
FailedAccount |
withErrorCode(String errorCode)
The error code explaining why the account failed to enable Amazon Inspector.
|
FailedAccount |
withErrorMessage(String errorMessage)
The error message received when the account failed to enable Amazon Inspector.
|
FailedAccount |
withResourceStatus(ResourceStatus resourceStatus)
An object detailing which resources Amazon Inspector is enabled to scan for the account.
|
FailedAccount |
withStatus(Status status)
The status of Amazon Inspector for the account.
|
FailedAccount |
withStatus(String status)
The status of Amazon Inspector for the account.
|
public void setAccountId(String accountId)
The Amazon Web Services account ID.
accountId - The Amazon Web Services account ID.public String getAccountId()
The Amazon Web Services account ID.
public FailedAccount withAccountId(String accountId)
The Amazon Web Services account ID.
accountId - The Amazon Web Services account ID.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 FailedAccount 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 FailedAccount 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 FailedAccount 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 setResourceStatus(ResourceStatus resourceStatus)
An object detailing which resources Amazon Inspector is enabled to scan for the account.
resourceStatus - An object detailing which resources Amazon Inspector is enabled to scan for the account.public ResourceStatus getResourceStatus()
An object detailing which resources Amazon Inspector is enabled to scan for the account.
public FailedAccount withResourceStatus(ResourceStatus resourceStatus)
An object detailing which resources Amazon Inspector is enabled to scan for the account.
resourceStatus - An object detailing which resources Amazon Inspector is enabled to scan for the account.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 FailedAccount withStatus(String status)
The status of Amazon Inspector for the account.
status - The status of Amazon Inspector for the account.Statuspublic FailedAccount 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 FailedAccount clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.