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 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()
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 file asset. This parameter is required.- Returns:
this
-
source
Sets the value ofDockerImageAsset.getSource()
- Parameters:
source
- Source description for file assets. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<DockerImageAsset>
- Returns:
- a new instance of
DockerImageAsset
- Throws:
NullPointerException
- if any required attribute was not provided
-