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 for
DockerImageDestination-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassumeRoleArn(String assumeRoleArn) Sets the value ofAwsDestination.getAssumeRoleArn()assumeRoleExternalId(String assumeRoleExternalId) Sets the value ofAwsDestination.getAssumeRoleExternalId()build()Builds the configured instance.Sets the value ofDockerImageDestination.getImageTag()Sets the value ofAwsDestination.getRegion()repositoryName(String repositoryName) Sets the value ofDockerImageDestination.getRepositoryName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
imageTag
Sets the value ofDockerImageDestination.getImageTag()- Parameters:
imageTag- Tag of the image to publish. This parameter is required.- Returns:
this
-
repositoryName
Sets the value ofDockerImageDestination.getRepositoryName()- Parameters:
repositoryName- Name of the ECR repository to publish to. This parameter is required.- Returns:
this
-
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
Sets the value ofAwsDestination.getRegion()- Parameters:
region- The region where this asset will need to be published.- Returns:
this
-
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
-