Class ImageFailureContext
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ImageFailureContext.Builder,ImageFailureContext>
Contains details about the failure when the image creation process fails. Properties appear in the failure context when the related information is available for the failure.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ImageFailureContext.Builderbuilder()final ComponentFailureContextThe details about the component that failed, if the failure occurred while a component was running.The details about the distribution failure, if the failure occurred while Image Builder distributed or configured the image.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final StringThe name of the workflow step that failed, as it appears in the workflow document.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final ImageStatusThe status that the image had when the failure occurred.final StringThe status that the image had when the failure occurred.static Class<? extends ImageFailureContext.Builder> final StringThe unique identifier of the workflow step execution that failed.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final StringThe Amazon Resource Name (ARN) of the workflow build version that was running when the image failed.final StringThe unique identifier of the workflow execution that was running when the image failed.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
imageStatus
The status that the image had when the failure occurred. This indicates the stage of the image creation process where the image failed, for example
BUILDINGorDISTRIBUTING.If the service returns an enum value that is not available in the current SDK version,
imageStatuswill returnImageStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromimageStatusAsString().- Returns:
- The status that the image had when the failure occurred. This indicates the stage of the image creation
process where the image failed, for example
BUILDINGorDISTRIBUTING. - See Also:
-
imageStatusAsString
The status that the image had when the failure occurred. This indicates the stage of the image creation process where the image failed, for example
BUILDINGorDISTRIBUTING.If the service returns an enum value that is not available in the current SDK version,
imageStatuswill returnImageStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromimageStatusAsString().- Returns:
- The status that the image had when the failure occurred. This indicates the stage of the image creation
process where the image failed, for example
BUILDINGorDISTRIBUTING. - See Also:
-
workflowExecutionId
The unique identifier of the workflow execution that was running when the image failed.
- Returns:
- The unique identifier of the workflow execution that was running when the image failed.
-
workflowArn
The Amazon Resource Name (ARN) of the workflow build version that was running when the image failed.
- Returns:
- The Amazon Resource Name (ARN) of the workflow build version that was running when the image failed.
-
stepExecutionId
The unique identifier of the workflow step execution that failed.
- Returns:
- The unique identifier of the workflow step execution that failed.
-
failedStep
The name of the workflow step that failed, as it appears in the workflow document.
- Returns:
- The name of the workflow step that failed, as it appears in the workflow document.
-
componentFailure
The details about the component that failed, if the failure occurred while a component was running.
- Returns:
- The details about the component that failed, if the failure occurred while a component was running.
-
distributionFailure
The details about the distribution failure, if the failure occurred while Image Builder distributed or configured the image.
- Returns:
- The details about the distribution failure, if the failure occurred while Image Builder distributed or configured the image.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ImageFailureContext.Builder,ImageFailureContext> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-