Package org.cdk8s.plus23.k8s
Class SecretKeySelector.Builder
- java.lang.Object
-
- org.cdk8s.plus23.k8s.SecretKeySelector.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<SecretKeySelector>
- Enclosing interface:
- SecretKeySelector
@Stability(Stable) public static final class SecretKeySelector.Builder extends Object implements software.amazon.jsii.Builder<SecretKeySelector>
A builder forSecretKeySelector
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecretKeySelector
build()
Builds the configured instance.SecretKeySelector.Builder
key(String key)
Sets the value ofSecretKeySelector.getKey()
SecretKeySelector.Builder
name(String name)
Sets the value ofSecretKeySelector.getName()
SecretKeySelector.Builder
optional(Boolean optional)
Sets the value ofSecretKeySelector.getOptional()
-
-
-
Method Detail
-
key
@Stability(Stable) public SecretKeySelector.Builder key(String key)
Sets the value ofSecretKeySelector.getKey()
- Parameters:
key
- The key of the secret to select from. This parameter is required. Must be a valid secret key.- Returns:
this
-
name
@Stability(Stable) public SecretKeySelector.Builder name(String name)
Sets the value ofSecretKeySelector.getName()
- Parameters:
name
- Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names- Returns:
this
-
optional
@Stability(Stable) public SecretKeySelector.Builder optional(Boolean optional)
Sets the value ofSecretKeySelector.getOptional()
- Parameters:
optional
- Specify whether the Secret or its key must be defined.- Returns:
this
-
build
@Stability(Stable) public SecretKeySelector build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<SecretKeySelector>
- Returns:
- a new instance of
SecretKeySelector
- Throws:
NullPointerException
- if any required attribute was not provided
-
-