Package software.amazon.awscdk.core
Class DockerBuildOptions.Builder
java.lang.Object
software.amazon.awscdk.core.DockerBuildOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DockerBuildOptions>
- Enclosing interface:
DockerBuildOptions
@Stability(Stable)
public static final class DockerBuildOptions.Builder
extends Object
implements software.amazon.jsii.Builder<DockerBuildOptions>
A builder for
DockerBuildOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofDockerBuildOptions.getBuildArgs()
Sets the value ofDockerBuildOptions.getFile()
Sets the value ofDockerBuildOptions.getPlatform()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
buildArgs
Sets the value ofDockerBuildOptions.getBuildArgs()
- Parameters:
buildArgs
- Build args.- Returns:
this
-
file
Sets the value ofDockerBuildOptions.getFile()
- Parameters:
file
- Name of the Dockerfile, must relative to the docker build path.- Returns:
this
-
platform
Sets the value ofDockerBuildOptions.getPlatform()
- Parameters:
platform
- Set platform if server is multi-platform capable. Requires Docker Engine API v1.38+. Example value:linux/amd64
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<DockerBuildOptions>
- Returns:
- a new instance of
DockerBuildOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-