Package org.cdk8s.plus24.k8s
Class DownwardApiVolumeSource.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.DownwardApiVolumeSource.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DownwardApiVolumeSource>
- Enclosing interface:
- DownwardApiVolumeSource
@Stability(Stable) public static final class DownwardApiVolumeSource.Builder extends Object implements software.amazon.jsii.Builder<DownwardApiVolumeSource>
A builder forDownwardApiVolumeSource
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DownwardApiVolumeSource
build()
Builds the configured instance.DownwardApiVolumeSource.Builder
defaultMode(Number defaultMode)
Sets the value ofDownwardApiVolumeSource.getDefaultMode()
DownwardApiVolumeSource.Builder
items(List<? extends DownwardApiVolumeFile> items)
Sets the value ofDownwardApiVolumeSource.getItems()
-
-
-
Method Detail
-
defaultMode
@Stability(Stable) public DownwardApiVolumeSource.Builder defaultMode(Number defaultMode)
Sets the value ofDownwardApiVolumeSource.getDefaultMode()
- Parameters:
defaultMode
- Optional: mode bits to use on created files by default. Must be a Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. 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 DownwardApiVolumeSource.Builder items(List<? extends DownwardApiVolumeFile> items)
Sets the value ofDownwardApiVolumeSource.getItems()
- Parameters:
items
- Items is a list of downward API volume file.- Returns:
this
-
build
@Stability(Stable) public DownwardApiVolumeSource build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<DownwardApiVolumeSource>
- Returns:
- a new instance of
DownwardApiVolumeSource
- Throws:
NullPointerException
- if any required attribute was not provided
-
-