Class State
- java.lang.Object
-
- software.amazon.awssdk.services.inspector2.model.State
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<State.Builder,State>
@Generated("software.amazon.awssdk:codegen") public final class State extends Object implements SdkPojo, Serializable, ToCopyableBuilder<State.Builder,State>
An object that described the state of Amazon Inspector scans for an account.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceState.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static State.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()List<SdkField<?>>sdkFields()static Class<? extends State.Builder>serializableBuilderClass()Statusstatus()The status of Amazon Inspector for the account.StringstatusAsString()The status of Amazon Inspector for the account.State.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
-
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.
-
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 State.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<State.Builder,State>
-
builder
public static State.Builder builder()
-
serializableBuilderClass
public static Class<? extends State.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.
-
-