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