@Stability(value=Stable) public static final class ConfigMapVolumeOptions.Builder extends Object implements software.amazon.jsii.Builder<ConfigMapVolumeOptions>
ConfigMapVolumeOptions| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ConfigMapVolumeOptions |
build()
Builds the configured instance.
|
ConfigMapVolumeOptions.Builder |
defaultMode(Number defaultMode)
Sets the value of
ConfigMapVolumeOptions.getDefaultMode() |
ConfigMapVolumeOptions.Builder |
items(Map<String,? extends PathMapping> items)
Sets the value of
ConfigMapVolumeOptions.getItems() |
ConfigMapVolumeOptions.Builder |
name(String name)
Sets the value of
ConfigMapVolumeOptions.getName() |
ConfigMapVolumeOptions.Builder |
optional(Boolean optional)
Sets the value of
ConfigMapVolumeOptions.getOptional() |
@Stability(value=Stable) public ConfigMapVolumeOptions.Builder defaultMode(Number defaultMode)
ConfigMapVolumeOptions.getDefaultMode()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.this@Stability(value=Stable) public ConfigMapVolumeOptions.Builder items(Map<String,? extends PathMapping> items)
ConfigMapVolumeOptions.getItems()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 '..'.this@Stability(value=Stable) public ConfigMapVolumeOptions.Builder name(String name)
ConfigMapVolumeOptions.getName()name - The volume name.this@Stability(value=Stable) public ConfigMapVolumeOptions.Builder optional(Boolean optional)
ConfigMapVolumeOptions.getOptional()optional - Specify whether the ConfigMap or its keys must be defined.this@Stability(value=Stable) public ConfigMapVolumeOptions build()
build in interface software.amazon.jsii.Builder<ConfigMapVolumeOptions>ConfigMapVolumeOptionsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.