Interface DistributionFailureContext.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<DistributionFailureContext.Builder,,DistributionFailureContext> SdkBuilder<DistributionFailureContext.Builder,,DistributionFailureContext> SdkPojo
- Enclosing class:
DistributionFailureContext
@Mutable
@NotThreadSafe
public static interface DistributionFailureContext.Builder
extends SdkPojo, CopyableBuilder<DistributionFailureContext.Builder,DistributionFailureContext>
-
Method Summary
Modifier and TypeMethodDescriptionerrorMessage(String errorMessage) The error message for the distribution failure.regionFailures(Collection<RegionFailure> regionFailures) The details about the failure for each Region where the image didn't finish distribution or configuration.regionFailures(Consumer<RegionFailure.Builder>... regionFailures) The details about the failure for each Region where the image didn't finish distribution or configuration.regionFailures(RegionFailure... regionFailures) The details about the failure for each Region where the image didn't finish distribution or configuration.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
-
errorMessage
The error message for the distribution failure.
- Parameters:
errorMessage- The error message for the distribution failure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
regionFailures
The details about the failure for each Region where the image didn't finish distribution or configuration.
- Parameters:
regionFailures- The details about the failure for each Region where the image didn't finish distribution or configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
regionFailures
The details about the failure for each Region where the image didn't finish distribution or configuration.
- Parameters:
regionFailures- The details about the failure for each Region where the image didn't finish distribution or configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
regionFailures
DistributionFailureContext.Builder regionFailures(Consumer<RegionFailure.Builder>... regionFailures) The details about the failure for each Region where the image didn't finish distribution or configuration.
This is a convenience method that creates an instance of theRegionFailure.Builderavoiding the need to create one manually viaRegionFailure.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toregionFailures(List<RegionFailure>).- Parameters:
regionFailures- a consumer that will call methods onRegionFailure.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-