Class ContainerImageAssetCacheOption.Builder
- java.lang.Object
-
- software.amazon.awscdk.cloudassembly.schema.ContainerImageAssetCacheOption.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ContainerImageAssetCacheOption>
- Enclosing interface:
- ContainerImageAssetCacheOption
@Stability(Stable) public static final class ContainerImageAssetCacheOption.Builder extends Object implements software.amazon.jsii.Builder<ContainerImageAssetCacheOption>
A builder forContainerImageAssetCacheOption
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContainerImageAssetCacheOptionbuild()Builds the configured instance.ContainerImageAssetCacheOption.Builderparams(Map<String,String> params)Sets the value ofContainerImageAssetCacheOption.getParams()ContainerImageAssetCacheOption.Buildertype(String type)Sets the value ofContainerImageAssetCacheOption.getType()
-
-
-
Method Detail
-
type
@Stability(Stable) public ContainerImageAssetCacheOption.Builder type(String type)
Sets the value ofContainerImageAssetCacheOption.getType()- Parameters:
type- The type of cache to use. This parameter is required. Refer to https://docs.docker.com/build/cache/backends/ for full list of backends.- Returns:
this
-
params
@Stability(Stable) public ContainerImageAssetCacheOption.Builder params(Map<String,String> params)
Sets the value ofContainerImageAssetCacheOption.getParams()- Parameters:
params- Any parameters to pass into the docker cache backend configuration. Refer to https://docs.docker.com/build/cache/backends/ for cache backend configuration.- Returns:
this
-
build
@Stability(Stable) public ContainerImageAssetCacheOption build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ContainerImageAssetCacheOption>- Returns:
- a new instance of
ContainerImageAssetCacheOption - Throws:
NullPointerException- if any required attribute was not provided
-
-