Package org.cdk8s.plus25.k8s
Class PortworxVolumeSource.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.PortworxVolumeSource.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<PortworxVolumeSource>
- Enclosing interface:
- PortworxVolumeSource
@Stability(Stable) public static final class PortworxVolumeSource.Builder extends Object implements software.amazon.jsii.Builder<PortworxVolumeSource>
A builder forPortworxVolumeSource
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PortworxVolumeSourcebuild()Builds the configured instance.PortworxVolumeSource.BuilderfsType(String fsType)Sets the value ofPortworxVolumeSource.getFsType()PortworxVolumeSource.BuilderreadOnly(Boolean readOnly)Sets the value ofPortworxVolumeSource.getReadOnly()PortworxVolumeSource.BuildervolumeId(String volumeId)Sets the value ofPortworxVolumeSource.getVolumeId()
-
-
-
Method Detail
-
volumeId
@Stability(Stable) public PortworxVolumeSource.Builder volumeId(String volumeId)
Sets the value ofPortworxVolumeSource.getVolumeId()- Parameters:
volumeId- volumeID uniquely identifies a Portworx volume. This parameter is required.- Returns:
this
-
fsType
@Stability(Stable) public PortworxVolumeSource.Builder fsType(String fsType)
Sets the value ofPortworxVolumeSource.getFsType()- Parameters:
fsType- fSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified.- Returns:
this
-
readOnly
@Stability(Stable) public PortworxVolumeSource.Builder readOnly(Boolean readOnly)
Sets the value ofPortworxVolumeSource.getReadOnly()- Parameters:
readOnly- readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.- Returns:
this
-
build
@Stability(Stable) public PortworxVolumeSource build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PortworxVolumeSource>- Returns:
- a new instance of
PortworxVolumeSource - Throws:
NullPointerException- if any required attribute was not provided
-
-