Package org.cdk8s.plus24
Class SecretValue.Builder
- java.lang.Object
-
- org.cdk8s.plus24.SecretValue.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<SecretValue>
- Enclosing interface:
- SecretValue
@Stability(Stable) public static final class SecretValue.Builder extends Object implements software.amazon.jsii.Builder<SecretValue>
A builder forSecretValue
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecretValue
build()
Builds the configured instance.SecretValue.Builder
key(String key)
Sets the value ofSecretValue.getKey()
SecretValue.Builder
secret(ISecret secret)
Sets the value ofSecretValue.getSecret()
-
-
-
Method Detail
-
key
@Stability(Stable) public SecretValue.Builder key(String key)
Sets the value ofSecretValue.getKey()
- Parameters:
key
- The JSON key. This parameter is required.- Returns:
this
-
secret
@Stability(Stable) public SecretValue.Builder secret(ISecret secret)
Sets the value ofSecretValue.getSecret()
- Parameters:
secret
- The secret. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public SecretValue build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<SecretValue>
- Returns:
- a new instance of
SecretValue
- Throws:
NullPointerException
- if any required attribute was not provided
-
-