Package org.cdk8s.plus24.k8s
Class ProjectedVolumeSource.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.ProjectedVolumeSource.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ProjectedVolumeSource>
- Enclosing interface:
- ProjectedVolumeSource
@Stability(Stable) public static final class ProjectedVolumeSource.Builder extends Object implements software.amazon.jsii.Builder<ProjectedVolumeSource>
A builder forProjectedVolumeSource
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProjectedVolumeSource
build()
Builds the configured instance.ProjectedVolumeSource.Builder
defaultMode(Number defaultMode)
Sets the value ofProjectedVolumeSource.getDefaultMode()
ProjectedVolumeSource.Builder
sources(List<? extends VolumeProjection> sources)
Sets the value ofProjectedVolumeSource.getSources()
-
-
-
Method Detail
-
defaultMode
@Stability(Stable) public ProjectedVolumeSource.Builder defaultMode(Number defaultMode)
Sets the value ofProjectedVolumeSource.getDefaultMode()
- Parameters:
defaultMode
- defaultMode are the 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. 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
-
sources
@Stability(Stable) public ProjectedVolumeSource.Builder sources(List<? extends VolumeProjection> sources)
Sets the value ofProjectedVolumeSource.getSources()
- Parameters:
sources
- sources is the list of volume projections.- Returns:
this
-
build
@Stability(Stable) public ProjectedVolumeSource build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ProjectedVolumeSource>
- Returns:
- a new instance of
ProjectedVolumeSource
- Throws:
NullPointerException
- if any required attribute was not provided
-
-