Package org.cdk8s.plus23.k8s
Class SecretReference.Builder
- java.lang.Object
-
- org.cdk8s.plus23.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 SecretReference
build()
Builds the configured instance.SecretReference.Builder
name(String name)
Sets the value ofSecretReference.getName()
SecretReference.Builder
namespace(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:
build
in interfacesoftware.amazon.jsii.Builder<SecretReference>
- Returns:
- a new instance of
SecretReference
- Throws:
NullPointerException
- if any required attribute was not provided
-
-