Class DockerBuildAssetOptions.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.DockerBuildAssetOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DockerBuildAssetOptions>
- Enclosing interface:
- DockerBuildAssetOptions
@Stability(Stable)
public static final class DockerBuildAssetOptions.Builder
extends Object
implements software.amazon.jsii.Builder<DockerBuildAssetOptions>
A builder for
DockerBuildAssetOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofDockerBuildOptions.getBuildArgs()
Sets the value ofDockerBuildOptions.getFile()
Sets the value ofDockerBuildAssetOptions.getImagePath()
outputPath
(String outputPath) Sets the value ofDockerBuildAssetOptions.getOutputPath()
Sets the value ofDockerBuildOptions.getPlatform()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
imagePath
Sets the value ofDockerBuildAssetOptions.getImagePath()
- Parameters:
imagePath
- The path in the Docker image where the asset is located after the build operation.- Returns:
this
-
outputPath
Sets the value ofDockerBuildAssetOptions.getOutputPath()
- Parameters:
outputPath
- The path on the local filesystem where the asset will be copied usingdocker cp
.- Returns:
this
-
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<DockerBuildAssetOptions>
- Returns:
- a new instance of
DockerBuildAssetOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-