Package org.cdk8s.plus24
Class DockerConfigSecretProps.Builder
- java.lang.Object
-
- org.cdk8s.plus24.DockerConfigSecretProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DockerConfigSecretProps>
- Enclosing interface:
- DockerConfigSecretProps
@Stability(Stable) public static final class DockerConfigSecretProps.Builder extends Object implements software.amazon.jsii.Builder<DockerConfigSecretProps>
A builder forDockerConfigSecretProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DockerConfigSecretProps
build()
Builds the configured instance.DockerConfigSecretProps.Builder
data(Map<String,? extends Object> data)
Sets the value ofDockerConfigSecretProps.getData()
DockerConfigSecretProps.Builder
immutable(Boolean immutable)
Sets the value ofCommonSecretProps.getImmutable()
DockerConfigSecretProps.Builder
metadata(org.cdk8s.ApiObjectMetadata metadata)
Sets the value ofResourceProps.getMetadata()
-
-
-
Method Detail
-
data
@Stability(Stable) public DockerConfigSecretProps.Builder data(Map<String,? extends Object> data)
Sets the value ofDockerConfigSecretProps.getData()
- Parameters:
data
- JSON content to provide for the~/.docker/config.json
file. This will be stringified and inserted as stringData. This parameter is required.- Returns:
this
-
immutable
@Stability(Stable) public DockerConfigSecretProps.Builder immutable(Boolean immutable)
Sets the value ofCommonSecretProps.getImmutable()
- Parameters:
immutable
- If set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time.- Returns:
this
-
metadata
@Stability(Stable) public DockerConfigSecretProps.Builder metadata(org.cdk8s.ApiObjectMetadata metadata)
Sets the value ofResourceProps.getMetadata()
- Parameters:
metadata
- Metadata that all persisted resources must have, which includes all objects users must create.- Returns:
this
-
build
@Stability(Stable) public DockerConfigSecretProps build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<DockerConfigSecretProps>
- Returns:
- a new instance of
DockerConfigSecretProps
- Throws:
NullPointerException
- if any required attribute was not provided
-
-