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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofDockerBuildOptions.getBuildArgs()cacheDisabled(Boolean cacheDisabled) Sets the value ofDockerBuildOptions.getCacheDisabled()cacheFrom(List<? extends DockerCacheOption> cacheFrom) Sets the value ofDockerBuildOptions.getCacheFrom()cacheTo(DockerCacheOption cacheTo) Sets the value ofDockerBuildOptions.getCacheTo()Sets the value ofDockerBuildOptions.getFile()Sets the value ofDockerBuildAssetOptions.getImagePath()Sets the value ofDockerBuildOptions.getNetwork()outputPath(String outputPath) Sets the value ofDockerBuildAssetOptions.getOutputPath()Sets the value ofDockerBuildOptions.getPlatform()targetStage(String targetStage) Sets the value ofDockerBuildOptions.getTargetStage()
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
imagePathSets the value ofDockerBuildAssetOptions.getImagePath()- Parameters:
- imagePath- The path in the Docker image where the asset is located after the build operation.
- Returns:
- this
 
- 
outputPathSets the value ofDockerBuildAssetOptions.getOutputPath()- Parameters:
- outputPath- The path on the local filesystem where the asset will be copied using- docker cp.
- Returns:
- this
 
- 
buildArgsSets the value ofDockerBuildOptions.getBuildArgs()- Parameters:
- buildArgs- Build args.
- Returns:
- this
 
- 
cacheDisabledSets the value ofDockerBuildOptions.getCacheDisabled()- Parameters:
- cacheDisabled- Disable the cache and pass- --no-cacheto the- docker buildcommand.
- Returns:
- this
 
- 
cacheFrom@Stability(Stable) public DockerBuildAssetOptions.Builder cacheFrom(List<? extends DockerCacheOption> cacheFrom) Sets the value ofDockerBuildOptions.getCacheFrom()- Parameters:
- cacheFrom- Cache from options to pass to the- docker buildcommand.
- Returns:
- this
 
- 
cacheToSets the value ofDockerBuildOptions.getCacheTo()- Parameters:
- cacheTo- Cache to options to pass to the- docker buildcommand.
- Returns:
- this
 
- 
fileSets the value ofDockerBuildOptions.getFile()- Parameters:
- file- Name of the Dockerfile, must relative to the docker build path.
- Returns:
- this
 
- 
networkSets the value ofDockerBuildOptions.getNetwork()- Parameters:
- network- Docker Networking options.
- Returns:
- this
 
- 
platformSets 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
 
- 
targetStageSets the value ofDockerBuildOptions.getTargetStage()- Parameters:
- targetStage- Set build target for multi-stage container builds. Any stage defined afterwards will be ignored. Example value:- build-env
- Returns:
- this
 
- 
buildBuilds the configured instance.- Specified by:
- buildin interface- software.amazon.jsii.Builder<DockerBuildAssetOptions>
- Returns:
- a new instance of DockerBuildAssetOptions
- Throws:
- NullPointerException- if any required attribute was not provided
 
 
-