Interface DistributeImageRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<DistributeImageRequest.Builder,,DistributeImageRequest> ImagebuilderRequest.Builder,SdkBuilder<DistributeImageRequest.Builder,,DistributeImageRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
DistributeImageRequest
@Mutable
@NotThreadSafe
public static interface DistributeImageRequest.Builder
extends ImagebuilderRequest.Builder, SdkPojo, CopyableBuilder<DistributeImageRequest.Builder,DistributeImageRequest>
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) Unique, case-sensitive identifier you provide to ensure idempotency of the request.distributionConfigurationArn(String distributionConfigurationArn) The Amazon Resource Name (ARN) of the distribution configuration to use.executionRole(String executionRole) The IAM role to use for the distribution.default DistributeImageRequest.BuilderloggingConfiguration(Consumer<ImageLoggingConfiguration.Builder> loggingConfiguration) The logging configuration for the distribution.loggingConfiguration(ImageLoggingConfiguration loggingConfiguration) The logging configuration for the distribution.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.sourceImage(String sourceImage) The source image Amazon Resource Name (ARN) to distribute.The tags to apply to the distributed image.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.imagebuilder.model.ImagebuilderRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
sourceImage
The source image Amazon Resource Name (ARN) to distribute.
- Parameters:
sourceImage- The source image Amazon Resource Name (ARN) to distribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
distributionConfigurationArn
The Amazon Resource Name (ARN) of the distribution configuration to use.
- Parameters:
distributionConfigurationArn- The Amazon Resource Name (ARN) of the distribution configuration to use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
executionRole
The IAM role to use for the distribution.
- Parameters:
executionRole- The IAM role to use for the distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags to apply to the distributed image.
- Parameters:
tags- The tags to apply to the distributed image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see Ensuring idempotency in the Amazon EC2 API Reference.
- Parameters:
clientToken- Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see Ensuring idempotency in the Amazon EC2 API Reference.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
loggingConfiguration
The logging configuration for the distribution.
- Parameters:
loggingConfiguration- The logging configuration for the distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
loggingConfiguration
default DistributeImageRequest.Builder loggingConfiguration(Consumer<ImageLoggingConfiguration.Builder> loggingConfiguration) The logging configuration for the distribution.
This is a convenience method that creates an instance of theImageLoggingConfiguration.Builderavoiding the need to create one manually viaImageLoggingConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tologgingConfiguration(ImageLoggingConfiguration).- Parameters:
loggingConfiguration- a consumer that will call methods onImageLoggingConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
DistributeImageRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
DistributeImageRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-