Interface ImageState.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ImageState.Builder,,ImageState> SdkBuilder<ImageState.Builder,,ImageState> SdkPojo
- Enclosing class:
ImageState
-
Method Summary
Modifier and TypeMethodDescriptiondefault ImageState.BuilderfailureContext(Consumer<ImageFailureContext.Builder> failureContext) The details about the failure, for images that failed to complete.failureContext(ImageFailureContext failureContext) The details about the failure, for images that failed to complete.The reason for the status of the image.The status of the image.status(ImageStatus status) The status of the image.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
status
The status of the image. A new image moves through build, test, and distribution statuses during creation, and ends in the
AVAILABLE,FAILED, orCANCELLEDstate. TheDEPRECATED,DISABLED, andDELETEDstatuses come from later resource management actions.- Parameters:
status- The status of the image. A new image moves through build, test, and distribution statuses during creation, and ends in theAVAILABLE,FAILED, orCANCELLEDstate. TheDEPRECATED,DISABLED, andDELETEDstatuses come from later resource management actions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of the image. A new image moves through build, test, and distribution statuses during creation, and ends in the
AVAILABLE,FAILED, orCANCELLEDstate. TheDEPRECATED,DISABLED, andDELETEDstatuses come from later resource management actions.- Parameters:
status- The status of the image. A new image moves through build, test, and distribution statuses during creation, and ends in theAVAILABLE,FAILED, orCANCELLEDstate. TheDEPRECATED,DISABLED, andDELETEDstatuses come from later resource management actions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
reason
The reason for the status of the image.
- Parameters:
reason- The reason for the status of the image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureContext
The details about the failure, for images that failed to complete. Image Builder only sets this property when the image status is
FAILED.- Parameters:
failureContext- The details about the failure, for images that failed to complete. Image Builder only sets this property when the image status isFAILED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureContext
The details about the failure, for images that failed to complete. Image Builder only sets this property when the image status is
This is a convenience method that creates an instance of theFAILED.ImageFailureContext.Builderavoiding the need to create one manually viaImageFailureContext.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofailureContext(ImageFailureContext).- Parameters:
failureContext- a consumer that will call methods onImageFailureContext.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-