Class StatusReason
- java.lang.Object
-
- software.amazon.awssdk.services.accessanalyzer.model.StatusReason
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<StatusReason.Builder,StatusReason>
@Generated("software.amazon.awssdk:codegen") public final class StatusReason extends Object implements SdkPojo, Serializable, ToCopyableBuilder<StatusReason.Builder,StatusReason>
Provides more details about the current status of the analyzer. For example, if the creation for the analyzer fails, a
Failedstatus is returned. For an analyzer with organization as the type, this failure can be due to an issue with creating the service-linked roles required in the member accounts of the Amazon Web Services organization.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceStatusReason.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StatusReason.Builderbuilder()ReasonCodecode()The reason code for the current status of the analyzer.StringcodeAsString()The reason code for the current status of the analyzer.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends StatusReason.Builder>serializableBuilderClass()StatusReason.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
-
code
public final ReasonCode code()
The reason code for the current status of the analyzer.
If the service returns an enum value that is not available in the current SDK version,
codewill returnReasonCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcodeAsString().- Returns:
- The reason code for the current status of the analyzer.
- See Also:
ReasonCode
-
codeAsString
public final String codeAsString()
The reason code for the current status of the analyzer.
If the service returns an enum value that is not available in the current SDK version,
codewill returnReasonCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcodeAsString().- Returns:
- The reason code for the current status of the analyzer.
- See Also:
ReasonCode
-
toBuilder
public StatusReason.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<StatusReason.Builder,StatusReason>
-
builder
public static StatusReason.Builder builder()
-
serializableBuilderClass
public static Class<? extends StatusReason.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.
-
-