@Stability(value=Stable) public static final class DockerBuildAssetOptions.Builder extends Object implements software.amazon.jsii.Builder<DockerBuildAssetOptions>
DockerBuildAssetOptions| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
DockerBuildAssetOptions |
build()
Builds the configured instance.
|
DockerBuildAssetOptions.Builder |
buildArgs(Map<String,String> buildArgs)
Sets the value of
DockerBuildOptions.getBuildArgs() |
DockerBuildAssetOptions.Builder |
file(String file)
Sets the value of
DockerBuildOptions.getFile() |
DockerBuildAssetOptions.Builder |
imagePath(String imagePath)
Sets the value of
DockerBuildAssetOptions.getImagePath() |
DockerBuildAssetOptions.Builder |
outputPath(String outputPath)
Sets the value of
DockerBuildAssetOptions.getOutputPath() |
DockerBuildAssetOptions.Builder |
platform(String platform)
Sets the value of
DockerBuildOptions.getPlatform() |
DockerBuildAssetOptions.Builder |
targetStage(String targetStage)
Sets the value of
DockerBuildOptions.getTargetStage() |
@Stability(value=Stable) public DockerBuildAssetOptions.Builder imagePath(String imagePath)
DockerBuildAssetOptions.getImagePath()imagePath - The path in the Docker image where the asset is located after the build operation.this@Stability(value=Stable) public DockerBuildAssetOptions.Builder outputPath(String outputPath)
DockerBuildAssetOptions.getOutputPath()outputPath - The path on the local filesystem where the asset will be copied using `docker cp`.this@Stability(value=Stable) public DockerBuildAssetOptions.Builder buildArgs(Map<String,String> buildArgs)
DockerBuildOptions.getBuildArgs()buildArgs - Build args.this@Stability(value=Stable) public DockerBuildAssetOptions.Builder file(String file)
DockerBuildOptions.getFile()file - Name of the Dockerfile, must relative to the docker build path.this@Stability(value=Stable) public DockerBuildAssetOptions.Builder platform(String platform)
DockerBuildOptions.getPlatform()platform - Set platform if server is multi-platform capable. _Requires Docker Engine API v1.38+_.
Example value: linux/amd64this@Stability(value=Stable) public DockerBuildAssetOptions.Builder targetStage(String targetStage)
DockerBuildOptions.getTargetStage()targetStage - Set build target for multi-stage container builds. Any stage defined afterwards will be ignored.
Example value: build-envthis@Stability(value=Stable) public DockerBuildAssetOptions build()
build in interface software.amazon.jsii.Builder<DockerBuildAssetOptions>DockerBuildAssetOptionsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.