Package org.cdk8s.plus24
Class PersistentVolumeClaimVolumeOptions.Builder
- java.lang.Object
-
- org.cdk8s.plus24.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 PersistentVolumeClaimVolumeOptions
build()
Builds the configured instance.PersistentVolumeClaimVolumeOptions.Builder
name(String name)
Sets the value ofPersistentVolumeClaimVolumeOptions.getName()
PersistentVolumeClaimVolumeOptions.Builder
readOnly(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:
build
in interfacesoftware.amazon.jsii.Builder<PersistentVolumeClaimVolumeOptions>
- Returns:
- a new instance of
PersistentVolumeClaimVolumeOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-
-