Class DistributionConfigurationProps.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.alpha.DistributionConfigurationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DistributionConfigurationProps>
- Enclosing interface:
DistributionConfigurationProps
@Stability(Experimental)
public static final class DistributionConfigurationProps.Builder
extends Object
implements software.amazon.jsii.Builder<DistributionConfigurationProps>
A builder for
DistributionConfigurationProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionamiDistributions(List<? extends AmiDistribution> amiDistributions) Sets the value ofDistributionConfigurationProps.getAmiDistributions()build()Builds the configured instance.containerDistributions(List<? extends ContainerDistribution> containerDistributions) Sets the value ofDistributionConfigurationProps.getContainerDistributions()description(String description) Sets the value ofDistributionConfigurationProps.getDescription()distributionConfigurationName(String distributionConfigurationName) Sets the value ofDistributionConfigurationProps.getDistributionConfigurationName()Sets the value ofDistributionConfigurationProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
amiDistributions
@Stability(Experimental) public DistributionConfigurationProps.Builder amiDistributions(List<? extends AmiDistribution> amiDistributions) Sets the value ofDistributionConfigurationProps.getAmiDistributions()- Parameters:
amiDistributions- The list of target regions and associated AMI distribution settings where the built AMI will be distributed. AMI distributions may also be added with theaddAmiDistributionsmethod.- Returns:
this
-
containerDistributions
@Stability(Experimental) public DistributionConfigurationProps.Builder containerDistributions(List<? extends ContainerDistribution> containerDistributions) Sets the value ofDistributionConfigurationProps.getContainerDistributions()- Parameters:
containerDistributions- The list of target regions and associated container distribution settings where the built container will be distributed. Container distributions may also be added with theaddContainerDistributionsmethod.- Returns:
this
-
description
@Stability(Experimental) public DistributionConfigurationProps.Builder description(String description) Sets the value ofDistributionConfigurationProps.getDescription()- Parameters:
description- The description of the distribution configuration.- Returns:
this
-
distributionConfigurationName
@Stability(Experimental) public DistributionConfigurationProps.Builder distributionConfigurationName(String distributionConfigurationName) Sets the value ofDistributionConfigurationProps.getDistributionConfigurationName()- Parameters:
distributionConfigurationName- The name of the distribution configuration.- Returns:
this
-
tags
@Stability(Experimental) public DistributionConfigurationProps.Builder tags(Map<String, String> tags) Sets the value ofDistributionConfigurationProps.getTags()- Parameters:
tags- The tags to apply to the distribution configuration.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DistributionConfigurationProps>- Returns:
- a new instance of
DistributionConfigurationProps - Throws:
NullPointerException- if any required attribute was not provided
-