Package org.cdk8s.plus22
Class PersistentVolumeClaimVolumeOptions.Builder
- java.lang.Object
-
- org.cdk8s.plus22.PersistentVolumeClaimVolumeOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<PersistentVolumeClaimVolumeOptions>
- Enclosing interface:
- PersistentVolumeClaimVolumeOptions
@Stability(Stable) public static final class PersistentVolumeClaimVolumeOptions.Builder extends Object implements software.amazon.jsii.Builder<PersistentVolumeClaimVolumeOptions>
A builder forPersistentVolumeClaimVolumeOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PersistentVolumeClaimVolumeOptionsbuild()Builds the configured instance.PersistentVolumeClaimVolumeOptions.Buildername(String name)Sets the value ofPersistentVolumeClaimVolumeOptions.getName()PersistentVolumeClaimVolumeOptions.BuilderreadOnly(Boolean readOnly)Sets the value ofPersistentVolumeClaimVolumeOptions.getReadOnly()
-
-
-
Method Detail
-
name
@Stability(Stable) public PersistentVolumeClaimVolumeOptions.Builder name(String name)
Sets the value ofPersistentVolumeClaimVolumeOptions.getName()- Parameters:
name- The volume name.- Returns:
this
-
readOnly
@Stability(Stable) public PersistentVolumeClaimVolumeOptions.Builder readOnly(Boolean readOnly)
Sets the value ofPersistentVolumeClaimVolumeOptions.getReadOnly()- Parameters:
readOnly- Will force the ReadOnly setting in VolumeMounts.- Returns:
this
-
build
@Stability(Stable) public PersistentVolumeClaimVolumeOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PersistentVolumeClaimVolumeOptions>- Returns:
- a new instance of
PersistentVolumeClaimVolumeOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-