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