Class FailedAccount
- java.lang.Object
-
- software.amazon.awssdk.services.inspector2.model.FailedAccount
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<FailedAccount.Builder,FailedAccount>
@Generated("software.amazon.awssdk:codegen") public final class FailedAccount extends Object implements SdkPojo, Serializable, ToCopyableBuilder<FailedAccount.Builder,FailedAccount>
An object with details on why an account failed to enable Amazon Inspector.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceFailedAccount.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaccountId()The Amazon Web Services account ID.static FailedAccount.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)ErrorCodeerrorCode()The error code explaining why the account failed to enable Amazon Inspector.StringerrorCodeAsString()The error code explaining why the account failed to enable Amazon Inspector.StringerrorMessage()The error message received when the account failed to enable Amazon Inspector.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()ResourceStatusresourceStatus()An object detailing which resources Amazon Inspector is enabled to scan for the account.List<SdkField<?>>sdkFields()static Class<? extends FailedAccount.Builder>serializableBuilderClass()Statusstatus()The status of Amazon Inspector for the account.StringstatusAsString()The status of Amazon Inspector for the account.FailedAccount.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
accountId
public final String accountId()
The Amazon Web Services account ID.
- Returns:
- The Amazon Web Services account ID.
-
errorCode
public final ErrorCode errorCode()
The error code explaining why the account failed to enable Amazon Inspector.
If the service returns an enum value that is not available in the current SDK version,
errorCodewill returnErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromerrorCodeAsString().- Returns:
- The error code explaining why the account failed to enable Amazon Inspector.
- See Also:
ErrorCode
-
errorCodeAsString
public final String errorCodeAsString()
The error code explaining why the account failed to enable Amazon Inspector.
If the service returns an enum value that is not available in the current SDK version,
errorCodewill returnErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromerrorCodeAsString().- Returns:
- The error code explaining why the account failed to enable Amazon Inspector.
- See Also:
ErrorCode
-
errorMessage
public final String errorMessage()
The error message received when the account failed to enable Amazon Inspector.
- Returns:
- The error message received when the account failed to enable Amazon Inspector.
-
resourceStatus
public final ResourceStatus resourceStatus()
An object detailing which resources Amazon Inspector is enabled to scan for the account.
- Returns:
- An object detailing which resources Amazon Inspector is enabled to scan for the account.
-
status
public final Status status()
The status of Amazon Inspector for the account.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of Amazon Inspector for the account.
- See Also:
Status
-
statusAsString
public final String statusAsString()
The status of Amazon Inspector for the account.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of Amazon Inspector for the account.
- See Also:
Status
-
toBuilder
public FailedAccount.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<FailedAccount.Builder,FailedAccount>
-
builder
public static FailedAccount.Builder builder()
-
serializableBuilderClass
public static Class<? extends FailedAccount.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-