Package org.cdk8s.plus24.k8s
Class EnvFromSource.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.EnvFromSource.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<EnvFromSource>
- Enclosing interface:
- EnvFromSource
@Stability(Stable) public static final class EnvFromSource.Builder extends Object implements software.amazon.jsii.Builder<EnvFromSource>
A builder forEnvFromSource
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EnvFromSource
build()
Builds the configured instance.EnvFromSource.Builder
configMapRef(ConfigMapEnvSource configMapRef)
Sets the value ofEnvFromSource.getConfigMapRef()
EnvFromSource.Builder
prefix(String prefix)
Sets the value ofEnvFromSource.getPrefix()
EnvFromSource.Builder
secretRef(SecretEnvSource secretRef)
Sets the value ofEnvFromSource.getSecretRef()
-
-
-
Method Detail
-
configMapRef
@Stability(Stable) public EnvFromSource.Builder configMapRef(ConfigMapEnvSource configMapRef)
Sets the value ofEnvFromSource.getConfigMapRef()
- Parameters:
configMapRef
- The ConfigMap to select from.- Returns:
this
-
prefix
@Stability(Stable) public EnvFromSource.Builder prefix(String prefix)
Sets the value ofEnvFromSource.getPrefix()
- Parameters:
prefix
- An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.- Returns:
this
-
secretRef
@Stability(Stable) public EnvFromSource.Builder secretRef(SecretEnvSource secretRef)
Sets the value ofEnvFromSource.getSecretRef()
- Parameters:
secretRef
- The Secret to select from.- Returns:
this
-
build
@Stability(Stable) public EnvFromSource build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<EnvFromSource>
- Returns:
- a new instance of
EnvFromSource
- Throws:
NullPointerException
- if any required attribute was not provided
-
-