Package org.cdk8s.plus24
Class SecretVolumeOptions.Builder
- java.lang.Object
-
- org.cdk8s.plus24.SecretVolumeOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<SecretVolumeOptions>
- Enclosing interface:
- SecretVolumeOptions
@Stability(Stable) public static final class SecretVolumeOptions.Builder extends Object implements software.amazon.jsii.Builder<SecretVolumeOptions>
A builder forSecretVolumeOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecretVolumeOptions
build()
Builds the configured instance.SecretVolumeOptions.Builder
defaultMode(Number defaultMode)
Sets the value ofSecretVolumeOptions.getDefaultMode()
SecretVolumeOptions.Builder
items(Map<String,? extends PathMapping> items)
Sets the value ofSecretVolumeOptions.getItems()
SecretVolumeOptions.Builder
name(String name)
Sets the value ofSecretVolumeOptions.getName()
SecretVolumeOptions.Builder
optional(Boolean optional)
Sets the value ofSecretVolumeOptions.getOptional()
-
-
-
Method Detail
-
defaultMode
@Stability(Stable) public SecretVolumeOptions.Builder defaultMode(Number defaultMode)
Sets the value ofSecretVolumeOptions.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 SecretVolumeOptions.Builder items(Map<String,? extends PathMapping> items)
Sets the value ofSecretVolumeOptions.getItems()
- Parameters:
items
- If unspecified, each key-value pair in the Data field of the referenced secret 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 secret, 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 SecretVolumeOptions.Builder name(String name)
Sets the value ofSecretVolumeOptions.getName()
- Parameters:
name
- The volume name.- Returns:
this
-
optional
@Stability(Stable) public SecretVolumeOptions.Builder optional(Boolean optional)
Sets the value ofSecretVolumeOptions.getOptional()
- Parameters:
optional
- Specify whether the secret or its keys must be defined.- Returns:
this
-
build
@Stability(Stable) public SecretVolumeOptions build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<SecretVolumeOptions>
- Returns:
- a new instance of
SecretVolumeOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-
-