Class ImageFailure
- java.lang.Object
-
- software.amazon.awssdk.services.ecrpublic.model.ImageFailure
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ImageFailure.Builder,ImageFailure>
@Generated("software.amazon.awssdk:codegen") public final class ImageFailure extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ImageFailure.Builder,ImageFailure>
An object that represents an Amazon ECR image failure.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceImageFailure.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImageFailure.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)ImageFailureCodefailureCode()The code that's associated with the failure.StringfailureCodeAsString()The code that's associated with the failure.StringfailureReason()The reason for the failure.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()ImageIdentifierimageId()The image ID that's associated with the failure.List<SdkField<?>>sdkFields()static Class<? extends ImageFailure.Builder>serializableBuilderClass()ImageFailure.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
-
imageId
public final ImageIdentifier imageId()
The image ID that's associated with the failure.
- Returns:
- The image ID that's associated with the failure.
-
failureCode
public final ImageFailureCode failureCode()
The code that's associated with the failure.
If the service returns an enum value that is not available in the current SDK version,
failureCodewill returnImageFailureCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromfailureCodeAsString().- Returns:
- The code that's associated with the failure.
- See Also:
ImageFailureCode
-
failureCodeAsString
public final String failureCodeAsString()
The code that's associated with the failure.
If the service returns an enum value that is not available in the current SDK version,
failureCodewill returnImageFailureCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromfailureCodeAsString().- Returns:
- The code that's associated with the failure.
- See Also:
ImageFailureCode
-
failureReason
public final String failureReason()
The reason for the failure.
- Returns:
- The reason for the failure.
-
toBuilder
public ImageFailure.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ImageFailure.Builder,ImageFailure>
-
builder
public static ImageFailure.Builder builder()
-
serializableBuilderClass
public static Class<? extends ImageFailure.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.
-
-