Package org.cdk8s.plus24
Class SecretProps.Builder
- java.lang.Object
-
- org.cdk8s.plus24.SecretProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<SecretProps>
- Enclosing interface:
- SecretProps
@Stability(Stable) public static final class SecretProps.Builder extends Object implements software.amazon.jsii.Builder<SecretProps>
A builder forSecretProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecretProps
build()
Builds the configured instance.SecretProps.Builder
immutable(Boolean immutable)
Sets the value ofCommonSecretProps.getImmutable()
SecretProps.Builder
metadata(org.cdk8s.ApiObjectMetadata metadata)
Sets the value ofResourceProps.getMetadata()
SecretProps.Builder
stringData(Map<String,String> stringData)
Sets the value ofSecretProps.getStringData()
SecretProps.Builder
type(String type)
Sets the value ofSecretProps.getType()
-
-
-
Method Detail
-
stringData
@Stability(Stable) public SecretProps.Builder stringData(Map<String,String> stringData)
Sets the value ofSecretProps.getStringData()
- Parameters:
stringData
- stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API.- Returns:
this
-
type
@Stability(Stable) public SecretProps.Builder type(String type)
Sets the value ofSecretProps.getType()
- Parameters:
type
- Optional type associated with the secret. Used to facilitate programmatic handling of secret data by various controllers.- Returns:
this
-
immutable
@Stability(Stable) public SecretProps.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 SecretProps.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 SecretProps build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<SecretProps>
- Returns:
- a new instance of
SecretProps
- Throws:
NullPointerException
- if any required attribute was not provided
-
-