Package org.cdk8s.plus24
Class ConfigMapVolumeOptions.Builder
- java.lang.Object
-
- org.cdk8s.plus24.ConfigMapVolumeOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ConfigMapVolumeOptions>
- Enclosing interface:
- ConfigMapVolumeOptions
@Stability(Stable) public static final class ConfigMapVolumeOptions.Builder extends Object implements software.amazon.jsii.Builder<ConfigMapVolumeOptions>
A builder forConfigMapVolumeOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigMapVolumeOptions
build()
Builds the configured instance.ConfigMapVolumeOptions.Builder
defaultMode(Number defaultMode)
Sets the value ofConfigMapVolumeOptions.getDefaultMode()
ConfigMapVolumeOptions.Builder
items(Map<String,? extends PathMapping> items)
Sets the value ofConfigMapVolumeOptions.getItems()
ConfigMapVolumeOptions.Builder
name(String name)
Sets the value ofConfigMapVolumeOptions.getName()
ConfigMapVolumeOptions.Builder
optional(Boolean optional)
Sets the value ofConfigMapVolumeOptions.getOptional()
-
-
-
Method Detail
-
defaultMode
@Stability(Stable) public ConfigMapVolumeOptions.Builder defaultMode(Number defaultMode)
Sets the value ofConfigMapVolumeOptions.getDefaultMode()
- Parameters:
defaultMode
- Mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.- Returns:
this
-
items
@Stability(Stable) public ConfigMapVolumeOptions.Builder items(Map<String,? extends PathMapping> items)
Sets the value ofConfigMapVolumeOptions.getItems()
- Parameters:
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 ConfigMapVolumeOptions.Builder name(String name)
Sets the value ofConfigMapVolumeOptions.getName()
- Parameters:
name
- The volume name.- Returns:
this
-
optional
@Stability(Stable) public ConfigMapVolumeOptions.Builder optional(Boolean optional)
Sets the value ofConfigMapVolumeOptions.getOptional()
- Parameters:
optional
- Specify whether the ConfigMap or its keys must be defined.- Returns:
this
-
build
@Stability(Stable) public ConfigMapVolumeOptions build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ConfigMapVolumeOptions>
- Returns:
- a new instance of
ConfigMapVolumeOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-
-