Class DockerCacheOption.Builder
- java.lang.Object
-
- software.amazon.awscdk.cloudassembly.schema.DockerCacheOption.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DockerCacheOption>
- Enclosing interface:
- DockerCacheOption
@Stability(Stable) public static final class DockerCacheOption.Builder extends Object implements software.amazon.jsii.Builder<DockerCacheOption>
A builder forDockerCacheOption
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DockerCacheOptionbuild()Builds the configured instance.DockerCacheOption.Builderparams(Map<String,String> params)Sets the value ofDockerCacheOption.getParams()DockerCacheOption.Buildertype(String type)Sets the value ofDockerCacheOption.getType()
-
-
-
Method Detail
-
type
@Stability(Stable) public DockerCacheOption.Builder type(String type)
Sets the value ofDockerCacheOption.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 DockerCacheOption.Builder params(Map<String,String> params)
Sets the value ofDockerCacheOption.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 DockerCacheOption build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DockerCacheOption>- Returns:
- a new instance of
DockerCacheOption - Throws:
NullPointerException- if any required attribute was not provided
-
-