Class CfnContainerRecipe.TargetContainerRepositoryProperty.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.CfnContainerRecipe.TargetContainerRepositoryProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnContainerRecipe.TargetContainerRepositoryProperty>
- Enclosing interface:
CfnContainerRecipe.TargetContainerRepositoryProperty
@Stability(Stable)
public static final class CfnContainerRecipe.TargetContainerRepositoryProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnContainerRecipe.TargetContainerRepositoryProperty>
A builder for
CfnContainerRecipe.TargetContainerRepositoryProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.repositoryName
(String repositoryName) Sets the value ofCfnContainerRecipe.TargetContainerRepositoryProperty.getRepositoryName()
Sets the value ofCfnContainerRecipe.TargetContainerRepositoryProperty.getService()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
repositoryName
@Stability(Stable) public CfnContainerRecipe.TargetContainerRepositoryProperty.Builder repositoryName(String repositoryName) Sets the value ofCfnContainerRecipe.TargetContainerRepositoryProperty.getRepositoryName()
- Parameters:
repositoryName
- The name of the container repository where the output container image is stored. This name is prefixed by the repository location.- Returns:
this
-
service
@Stability(Stable) public CfnContainerRecipe.TargetContainerRepositoryProperty.Builder service(String service) Sets the value ofCfnContainerRecipe.TargetContainerRepositoryProperty.getService()
- Parameters:
service
- Specifies the service in which this image was registered.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnContainerRecipe.TargetContainerRepositoryProperty>
- Returns:
- a new instance of
CfnContainerRecipe.TargetContainerRepositoryProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-