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
-
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
- UsebuildArgs
while calculating the asset hash.- Returns:
this
-
buildSecrets
@Stability(Stable) public DockerImageAssetInvalidationOptions.Builder buildSecrets(Boolean buildSecrets) Sets the value ofDockerImageAssetInvalidationOptions.getBuildSecrets()
- Parameters:
buildSecrets
- UsebuildSecrets
while calculating the asset hash.- Returns:
this
-
buildSsh
Sets the value ofDockerImageAssetInvalidationOptions.getBuildSsh()
- Parameters:
buildSsh
- UsebuildSsh
while calculating the asset hash.- Returns:
this
-
extraHash
Sets the value ofDockerImageAssetInvalidationOptions.getExtraHash()
- Parameters:
extraHash
- UseextraHash
while calculating the asset hash.- Returns:
this
-
file
Sets the value ofDockerImageAssetInvalidationOptions.getFile()
- Parameters:
file
- Usefile
while calculating the asset hash.- Returns:
this
-
networkMode
@Stability(Stable) public DockerImageAssetInvalidationOptions.Builder networkMode(Boolean networkMode) Sets the value ofDockerImageAssetInvalidationOptions.getNetworkMode()
- Parameters:
networkMode
- UsenetworkMode
while calculating the asset hash.- Returns:
this
-
outputs
Sets the value ofDockerImageAssetInvalidationOptions.getOutputs()
- Parameters:
outputs
- Useoutputs
while calculating the asset hash.- Returns:
this
-
platform
Sets the value ofDockerImageAssetInvalidationOptions.getPlatform()
- Parameters:
platform
- Useplatform
while calculating the asset hash.- Returns:
this
-
repositoryName
@Stability(Stable) public DockerImageAssetInvalidationOptions.Builder repositoryName(Boolean repositoryName) Sets the value ofDockerImageAssetInvalidationOptions.getRepositoryName()
- Parameters:
repositoryName
- UserepositoryName
while calculating the asset hash.- Returns:
this
-
target
Sets the value ofDockerImageAssetInvalidationOptions.getTarget()
- Parameters:
target
- Usetarget
while calculating the asset hash.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<DockerImageAssetInvalidationOptions>
- Returns:
- a new instance of
DockerImageAssetInvalidationOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-