Class DockerImageAsset.Builder
java.lang.Object
software.amazon.awscdk.cloud_assembly_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 for
DockerImageAsset-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.destinations(Map<String, ? extends DockerImageDestination> destinations) Sets the value ofDockerImageAsset.getDestinations()displayName(String displayName) Sets the value ofDockerImageAsset.getDisplayName()source(DockerImageSource source) Sets the value ofDockerImageAsset.getSource()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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
Sets the value ofDockerImageAsset.getSource()- Parameters:
source- Source description for container assets. This parameter is required.- Returns:
this
-
displayName
Sets the value ofDockerImageAsset.getDisplayName()- Parameters:
displayName- A display name for this asset.- Returns:
this
-
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
-