Class DockerImageAsset.Builder
- java.lang.Object
-
- software.amazon.awscdk.cloudassembly.schema.DockerImageAsset.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DockerImageAsset>
- Enclosing interface:
- DockerImageAsset
@Stability(Stable) public static final class DockerImageAsset.Builder extends Object implements software.amazon.jsii.Builder<DockerImageAsset>
A builder forDockerImageAsset
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DockerImageAssetbuild()Builds the configured instance.DockerImageAsset.Builderdestinations(Map<String,? extends DockerImageDestination> destinations)Sets the value ofDockerImageAsset.getDestinations()DockerImageAsset.BuilderdisplayName(String displayName)Sets the value ofDockerImageAsset.getDisplayName()DockerImageAsset.Buildersource(DockerImageSource source)Sets the value ofDockerImageAsset.getSource()
-
-
-
Method Detail
-
destinations
@Stability(Stable) public DockerImageAsset.Builder destinations(Map<String,? extends DockerImageDestination> destinations)
Sets the value ofDockerImageAsset.getDestinations()- Parameters:
destinations- Destinations for this container asset. This parameter is required.- Returns:
this
-
source
@Stability(Stable) public DockerImageAsset.Builder source(DockerImageSource source)
Sets the value ofDockerImageAsset.getSource()- Parameters:
source- Source description for container assets. This parameter is required.- Returns:
this
-
displayName
@Stability(Stable) public DockerImageAsset.Builder displayName(String displayName)
Sets the value ofDockerImageAsset.getDisplayName()- Parameters:
displayName- A display name for this asset.- Returns:
this
-
build
@Stability(Stable) public DockerImageAsset build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DockerImageAsset>- Returns:
- a new instance of
DockerImageAsset - Throws:
NullPointerException- if any required attribute was not provided
-
-