Package org.cdk8s.plus24.k8s
Class SecretEnvSource.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.SecretEnvSource.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<SecretEnvSource>
- Enclosing interface:
- SecretEnvSource
@Stability(Stable) public static final class SecretEnvSource.Builder extends Object implements software.amazon.jsii.Builder<SecretEnvSource>
A builder forSecretEnvSource
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecretEnvSource
build()
Builds the configured instance.SecretEnvSource.Builder
name(String name)
Sets the value ofSecretEnvSource.getName()
SecretEnvSource.Builder
optional(Boolean optional)
Sets the value ofSecretEnvSource.getOptional()
-
-
-
Method Detail
-
name
@Stability(Stable) public SecretEnvSource.Builder name(String name)
Sets the value ofSecretEnvSource.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 SecretEnvSource.Builder optional(Boolean optional)
Sets the value ofSecretEnvSource.getOptional()
- Parameters:
optional
- Specify whether the Secret must be defined.- Returns:
this
-
build
@Stability(Stable) public SecretEnvSource build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<SecretEnvSource>
- Returns:
- a new instance of
SecretEnvSource
- Throws:
NullPointerException
- if any required attribute was not provided
-
-