Interface ImageFailure.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ImageFailure.Builder,
,ImageFailure> SdkBuilder<ImageFailure.Builder,
,ImageFailure> SdkPojo
- Enclosing class:
ImageFailure
public static interface ImageFailure.Builder
extends SdkPojo, CopyableBuilder<ImageFailure.Builder,ImageFailure>
-
Method Summary
Modifier and TypeMethodDescriptionfailureCode
(String failureCode) The code that's associated with the failure.failureCode
(ImageFailureCode failureCode) The code that's associated with the failure.failureReason
(String failureReason) The reason for the failure.default ImageFailure.Builder
imageId
(Consumer<ImageIdentifier.Builder> imageId) The image ID that's associated with the failure.imageId
(ImageIdentifier imageId) The image ID that's associated with the failure.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
imageId
The image ID that's associated with the failure.
- Parameters:
imageId
- The image ID that's associated with the failure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageId
The image ID that's associated with the failure.
This is a convenience method that creates an instance of theImageIdentifier.Builder
avoiding the need to create one manually viaImageIdentifier.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toimageId(ImageIdentifier)
.- Parameters:
imageId
- a consumer that will call methods onImageIdentifier.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
failureCode
The code that's associated with the failure.
- Parameters:
failureCode
- The code that's associated with the failure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
failureCode
The code that's associated with the failure.
- Parameters:
failureCode
- The code that's associated with the failure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
failureReason
The reason for the failure.
- Parameters:
failureReason
- The reason for the failure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-