Class DockerImageDestination.Builder
- java.lang.Object
-
- software.amazon.awscdk.cloudassembly.schema.DockerImageDestination.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DockerImageDestination>
- Enclosing interface:
- DockerImageDestination
@Stability(Stable) public static final class DockerImageDestination.Builder extends Object implements software.amazon.jsii.Builder<DockerImageDestination>
A builder forDockerImageDestination
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DockerImageDestination.BuilderassumeRoleAdditionalOptions(Map<String,? extends Object> assumeRoleAdditionalOptions)Sets the value ofAwsDestination.getAssumeRoleAdditionalOptions()DockerImageDestination.BuilderassumeRoleArn(String assumeRoleArn)Sets the value ofAwsDestination.getAssumeRoleArn()DockerImageDestination.BuilderassumeRoleExternalId(String assumeRoleExternalId)Sets the value ofAwsDestination.getAssumeRoleExternalId()DockerImageDestinationbuild()Builds the configured instance.DockerImageDestination.BuilderimageTag(String imageTag)Sets the value ofDockerImageDestination.getImageTag()DockerImageDestination.Builderregion(String region)Sets the value ofAwsDestination.getRegion()DockerImageDestination.BuilderrepositoryName(String repositoryName)Sets the value ofDockerImageDestination.getRepositoryName()
-
-
-
Method Detail
-
imageTag
@Stability(Stable) public DockerImageDestination.Builder imageTag(String imageTag)
Sets the value ofDockerImageDestination.getImageTag()- Parameters:
imageTag- Tag of the image to publish. This parameter is required.- Returns:
this
-
repositoryName
@Stability(Stable) public DockerImageDestination.Builder repositoryName(String repositoryName)
Sets the value ofDockerImageDestination.getRepositoryName()- Parameters:
repositoryName- Name of the ECR repository to publish to. This parameter is required.- Returns:
this
-
assumeRoleAdditionalOptions
@Stability(Stable) public DockerImageDestination.Builder assumeRoleAdditionalOptions(Map<String,? extends Object> assumeRoleAdditionalOptions)
Sets the value ofAwsDestination.getAssumeRoleAdditionalOptions()- Parameters:
assumeRoleAdditionalOptions- Additional options to pass to STS when assuming the role.RoleArnshould not be used. Use the dedicatedassumeRoleArnproperty instead.ExternalIdshould not be used. Use the dedicatedassumeRoleExternalIdinstead.
- Returns:
this
-
assumeRoleArn
@Stability(Stable) public DockerImageDestination.Builder assumeRoleArn(String assumeRoleArn)
Sets the value ofAwsDestination.getAssumeRoleArn()- Parameters:
assumeRoleArn- The role that needs to be assumed while publishing this asset.- Returns:
this
-
assumeRoleExternalId
@Stability(Stable) public DockerImageDestination.Builder assumeRoleExternalId(String assumeRoleExternalId)
Sets the value ofAwsDestination.getAssumeRoleExternalId()- Parameters:
assumeRoleExternalId- The ExternalId that needs to be supplied while assuming this role.- Returns:
this
-
region
@Stability(Stable) public DockerImageDestination.Builder region(String region)
Sets the value ofAwsDestination.getRegion()- Parameters:
region- The region where this asset will need to be published.- Returns:
this
-
build
@Stability(Stable) public DockerImageDestination build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DockerImageDestination>- Returns:
- a new instance of
DockerImageDestination - Throws:
NullPointerException- if any required attribute was not provided
-
-