Package software.amazon.awscdk.core
Class DockerImageAssetLocation.Builder
java.lang.Object
software.amazon.awscdk.core.DockerImageAssetLocation.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DockerImageAssetLocation>
- Enclosing interface:
- DockerImageAssetLocation
@Stability(Stable)
public static final class DockerImageAssetLocation.Builder
extends Object
implements software.amazon.jsii.Builder<DockerImageAssetLocation>
A builder for
DockerImageAssetLocation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofDockerImageAssetLocation.getImageUri()
repositoryName
(String repositoryName) Sets the value ofDockerImageAssetLocation.getRepositoryName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
imageUri
Sets the value ofDockerImageAssetLocation.getImageUri()
- Parameters:
imageUri
- The URI of the image in Amazon ECR. This parameter is required.- Returns:
this
-
repositoryName
Sets the value ofDockerImageAssetLocation.getRepositoryName()
- Parameters:
repositoryName
- The name of the ECR repository. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<DockerImageAssetLocation>
- Returns:
- a new instance of
DockerImageAssetLocation
- Throws:
NullPointerException
- if any required attribute was not provided
-