Class DockerImageAssetInvalidationOptions.Builder
java.lang.Object
software.amazon.awscdk.services.ecr.assets.DockerImageAssetInvalidationOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DockerImageAssetInvalidationOptions>
- Enclosing interface:
DockerImageAssetInvalidationOptions
@Stability(Stable)
public static final class DockerImageAssetInvalidationOptions.Builder
extends Object
implements software.amazon.jsii.Builder<DockerImageAssetInvalidationOptions>
A builder for
DockerImageAssetInvalidationOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofDockerImageAssetInvalidationOptions.getBuildArgs()buildSecrets(Boolean buildSecrets) Sets the value ofDockerImageAssetInvalidationOptions.getBuildSecrets()Sets the value ofDockerImageAssetInvalidationOptions.getBuildSsh()Sets the value ofDockerImageAssetInvalidationOptions.getExtraHash()Sets the value ofDockerImageAssetInvalidationOptions.getFile()networkMode(Boolean networkMode) Sets the value ofDockerImageAssetInvalidationOptions.getNetworkMode()Sets the value ofDockerImageAssetInvalidationOptions.getOutputs()Sets the value ofDockerImageAssetInvalidationOptions.getPlatform()repositoryName(Boolean repositoryName) Sets the value ofDockerImageAssetInvalidationOptions.getRepositoryName()Sets the value ofDockerImageAssetInvalidationOptions.getTarget()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
buildArgs
Sets the value ofDockerImageAssetInvalidationOptions.getBuildArgs()- Parameters:
buildArgs- UsebuildArgswhile calculating the asset hash.- Returns:
this
-
buildSecrets
@Stability(Stable) public DockerImageAssetInvalidationOptions.Builder buildSecrets(Boolean buildSecrets) Sets the value ofDockerImageAssetInvalidationOptions.getBuildSecrets()- Parameters:
buildSecrets- UsebuildSecretswhile calculating the asset hash.- Returns:
this
-
buildSsh
Sets the value ofDockerImageAssetInvalidationOptions.getBuildSsh()- Parameters:
buildSsh- UsebuildSshwhile calculating the asset hash.- Returns:
this
-
extraHash
Sets the value ofDockerImageAssetInvalidationOptions.getExtraHash()- Parameters:
extraHash- UseextraHashwhile calculating the asset hash.- Returns:
this
-
file
Sets the value ofDockerImageAssetInvalidationOptions.getFile()- Parameters:
file- Usefilewhile calculating the asset hash.- Returns:
this
-
networkMode
@Stability(Stable) public DockerImageAssetInvalidationOptions.Builder networkMode(Boolean networkMode) Sets the value ofDockerImageAssetInvalidationOptions.getNetworkMode()- Parameters:
networkMode- UsenetworkModewhile calculating the asset hash.- Returns:
this
-
outputs
Sets the value ofDockerImageAssetInvalidationOptions.getOutputs()- Parameters:
outputs- Useoutputswhile calculating the asset hash.- Returns:
this
-
platform
Sets the value ofDockerImageAssetInvalidationOptions.getPlatform()- Parameters:
platform- Useplatformwhile calculating the asset hash.- Returns:
this
-
repositoryName
@Stability(Stable) public DockerImageAssetInvalidationOptions.Builder repositoryName(Boolean repositoryName) Sets the value ofDockerImageAssetInvalidationOptions.getRepositoryName()- Parameters:
repositoryName- UserepositoryNamewhile calculating the asset hash.- Returns:
this
-
target
Sets the value ofDockerImageAssetInvalidationOptions.getTarget()- Parameters:
target- Usetargetwhile calculating the asset hash.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DockerImageAssetInvalidationOptions>- Returns:
- a new instance of
DockerImageAssetInvalidationOptions - Throws:
NullPointerException- if any required attribute was not provided
-