Interface CreateDistributionConfigurationRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateDistributionConfigurationRequest.Builder,,CreateDistributionConfigurationRequest> ImagebuilderRequest.Builder,SdkBuilder<CreateDistributionConfigurationRequest.Builder,,CreateDistributionConfigurationRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateDistributionConfigurationRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) A unique, case-sensitive identifier you provide to ensure that the operation runs no more than one time.description(String description) The description of the distribution configuration.distributions(Collection<Distribution> distributions) The distribution settings for the configuration.distributions(Consumer<Distribution.Builder>... distributions) The distribution settings for the configuration.distributions(Distribution... distributions) The distribution settings for the configuration.Validates the required permissions and request parameters without performing the operation.The name of the distribution configuration.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The tags of the distribution configuration.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
-
name
The name of the distribution configuration. Distribution configuration names must be unique to your account in each Amazon Web Services Region. Image Builder generates the distribution configuration ARN from a normalized form of the name, so names that differ only in case, spaces, or underscores count as the same name.
- Parameters:
name- The name of the distribution configuration. Distribution configuration names must be unique to your account in each Amazon Web Services Region. Image Builder generates the distribution configuration ARN from a normalized form of the name, so names that differ only in case, spaces, or underscores count as the same name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the distribution configuration.
- Parameters:
description- The description of the distribution configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
distributions
CreateDistributionConfigurationRequest.Builder distributions(Collection<Distribution> distributions) The distribution settings for the configuration. Each entry defines how output images are distributed in one target Amazon Web Services Region. A Region can appear at most once in the list.
- Parameters:
distributions- The distribution settings for the configuration. Each entry defines how output images are distributed in one target Amazon Web Services Region. A Region can appear at most once in the list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
distributions
The distribution settings for the configuration. Each entry defines how output images are distributed in one target Amazon Web Services Region. A Region can appear at most once in the list.
- Parameters:
distributions- The distribution settings for the configuration. Each entry defines how output images are distributed in one target Amazon Web Services Region. A Region can appear at most once in the list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
distributions
CreateDistributionConfigurationRequest.Builder distributions(Consumer<Distribution.Builder>... distributions) The distribution settings for the configuration. Each entry defines how output images are distributed in one target Amazon Web Services Region. A Region can appear at most once in the list.
This is a convenience method that creates an instance of theDistribution.Builderavoiding the need to create one manually viaDistribution.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todistributions(List<Distribution>).- Parameters:
distributions- a consumer that will call methods onDistribution.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
The tags of the distribution configuration.
- Parameters:
tags- The tags of the distribution configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
A unique, case-sensitive identifier you provide to ensure that the operation runs no more than one time. If you retry a request with the same client token, Image Builder returns the original response without running the operation again. For more information, see Ensuring idempotency in the Amazon EC2 API Reference.
- Parameters:
clientToken- A unique, case-sensitive identifier you provide to ensure that the operation runs no more than one time. If you retry a request with the same client token, Image Builder returns the original response without running the operation again. 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.
-
dryRun
Validates the required permissions and request parameters without performing the operation. If validation succeeds, the operation returns a
DryRunOperationExceptionerror response.- Parameters:
dryRun- Validates the required permissions and request parameters without performing the operation. If validation succeeds, the operation returns aDryRunOperationExceptionerror response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateDistributionConfigurationRequest.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
CreateDistributionConfigurationRequest.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.
-