Package org.cdk8s.plus25.k8s
Class SecretReference.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.SecretReference.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<SecretReference>
- Enclosing interface:
- SecretReference
@Stability(Stable) public static final class SecretReference.Builder extends Object implements software.amazon.jsii.Builder<SecretReference>
A builder forSecretReference
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecretReferencebuild()Builds the configured instance.SecretReference.Buildername(String name)Sets the value ofSecretReference.getName()SecretReference.Buildernamespace(String namespace)Sets the value ofSecretReference.getNamespace()
-
-
-
Method Detail
-
name
@Stability(Stable) public SecretReference.Builder name(String name)
Sets the value ofSecretReference.getName()- Parameters:
name- name is unique within a namespace to reference a secret resource.- Returns:
this
-
namespace
@Stability(Stable) public SecretReference.Builder namespace(String namespace)
Sets the value ofSecretReference.getNamespace()- Parameters:
namespace- namespace defines the space within which the secret name must be unique.- Returns:
this
-
build
@Stability(Stable) public SecretReference build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SecretReference>- Returns:
- a new instance of
SecretReference - Throws:
NullPointerException- if any required attribute was not provided
-
-