Package org.cdk8s.plus25.k8s
Class GcePersistentDiskVolumeSource.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.GcePersistentDiskVolumeSource.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<GcePersistentDiskVolumeSource>
- Enclosing interface:
- GcePersistentDiskVolumeSource
@Stability(Stable) public static final class GcePersistentDiskVolumeSource.Builder extends Object implements software.amazon.jsii.Builder<GcePersistentDiskVolumeSource>
A builder forGcePersistentDiskVolumeSource
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GcePersistentDiskVolumeSourcebuild()Builds the configured instance.GcePersistentDiskVolumeSource.BuilderfsType(String fsType)Sets the value ofGcePersistentDiskVolumeSource.getFsType()GcePersistentDiskVolumeSource.Builderpartition(Number partition)Sets the value ofGcePersistentDiskVolumeSource.getPartition()GcePersistentDiskVolumeSource.BuilderpdName(String pdName)Sets the value ofGcePersistentDiskVolumeSource.getPdName()GcePersistentDiskVolumeSource.BuilderreadOnly(Boolean readOnly)Sets the value ofGcePersistentDiskVolumeSource.getReadOnly()
-
-
-
Method Detail
-
pdName
@Stability(Stable) public GcePersistentDiskVolumeSource.Builder pdName(String pdName)
Sets the value ofGcePersistentDiskVolumeSource.getPdName()- Parameters:
pdName- pdName is unique name of the PD resource in GCE. This parameter is required. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk- Returns:
this
-
fsType
@Stability(Stable) public GcePersistentDiskVolumeSource.Builder fsType(String fsType)
Sets the value ofGcePersistentDiskVolumeSource.getFsType()- Parameters:
fsType- fsType is filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk- Returns:
this
-
partition
@Stability(Stable) public GcePersistentDiskVolumeSource.Builder partition(Number partition)
Sets the value ofGcePersistentDiskVolumeSource.getPartition()- Parameters:
partition- partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk- Returns:
this
-
readOnly
@Stability(Stable) public GcePersistentDiskVolumeSource.Builder readOnly(Boolean readOnly)
Sets the value ofGcePersistentDiskVolumeSource.getReadOnly()- Parameters:
readOnly- readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk- Returns:
this
-
build
@Stability(Stable) public GcePersistentDiskVolumeSource build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<GcePersistentDiskVolumeSource>- Returns:
- a new instance of
GcePersistentDiskVolumeSource - Throws:
NullPointerException- if any required attribute was not provided
-
-