Class ContainerDistribution.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.alpha.ContainerDistribution.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ContainerDistribution>
- Enclosing interface:
ContainerDistribution
@Stability(Experimental)
public static final class ContainerDistribution.Builder
extends Object
implements software.amazon.jsii.Builder<ContainerDistribution>
A builder for
ContainerDistribution-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.containerDescription(String containerDescription) Sets the value ofContainerDistribution.getContainerDescription()containerRepository(Repository containerRepository) Sets the value ofContainerDistribution.getContainerRepository()containerTags(List<String> containerTags) Sets the value ofContainerDistribution.getContainerTags()Sets the value ofContainerDistribution.getRegion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
containerRepository
@Stability(Experimental) public ContainerDistribution.Builder containerRepository(Repository containerRepository) Sets the value ofContainerDistribution.getContainerRepository()- Parameters:
containerRepository- The destination repository to distribute the output container to. This parameter is required.- Returns:
this
-
containerDescription
@Stability(Experimental) public ContainerDistribution.Builder containerDescription(String containerDescription) Sets the value ofContainerDistribution.getContainerDescription()- Parameters:
containerDescription- The description of the container image.- Returns:
this
-
containerTags
@Stability(Experimental) public ContainerDistribution.Builder containerTags(List<String> containerTags) Sets the value ofContainerDistribution.getContainerTags()- Parameters:
containerTags- The additional tags to apply to the distributed container images.- Returns:
this
-
region
Sets the value ofContainerDistribution.getRegion()- Parameters:
region- The target region to distribute containers to.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ContainerDistribution>- Returns:
- a new instance of
ContainerDistribution - Throws:
NullPointerException- if any required attribute was not provided
-