Class DockerCacheOption.Builder
java.lang.Object
software.amazon.awscdk.services.ecr.assets.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 for
DockerCacheOption
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofDockerCacheOption.getParams()
Sets the value ofDockerCacheOption.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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
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
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<DockerCacheOption>
- Returns:
- a new instance of
DockerCacheOption
- Throws:
NullPointerException
- if any required attribute was not provided
-