Package org.cdk8s.plus25.k8s
Class ConfigMapProjection.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.ConfigMapProjection.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ConfigMapProjection>
- Enclosing interface:
- ConfigMapProjection
@Stability(Stable) public static final class ConfigMapProjection.Builder extends Object implements software.amazon.jsii.Builder<ConfigMapProjection>
A builder forConfigMapProjection
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigMapProjectionbuild()Builds the configured instance.ConfigMapProjection.Builderitems(List<? extends KeyToPath> items)Sets the value ofConfigMapProjection.getItems()ConfigMapProjection.Buildername(String name)Sets the value ofConfigMapProjection.getName()ConfigMapProjection.Builderoptional(Boolean optional)Sets the value ofConfigMapProjection.getOptional()
-
-
-
Method Detail
-
items
@Stability(Stable) public ConfigMapProjection.Builder items(List<? extends KeyToPath> items)
Sets the value ofConfigMapProjection.getItems()- Parameters:
items- items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.- Returns:
this
-
name
@Stability(Stable) public ConfigMapProjection.Builder name(String name)
Sets the value ofConfigMapProjection.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 ConfigMapProjection.Builder optional(Boolean optional)
Sets the value ofConfigMapProjection.getOptional()- Parameters:
optional- optional specify whether the ConfigMap or its keys must be defined.- Returns:
this
-
build
@Stability(Stable) public ConfigMapProjection build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ConfigMapProjection>- Returns:
- a new instance of
ConfigMapProjection - Throws:
NullPointerException- if any required attribute was not provided
-
-