Package org.cdk8s.plus24
Class GCEPersistentDiskVolumeOptions.Builder
- java.lang.Object
-
- org.cdk8s.plus24.GCEPersistentDiskVolumeOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<GCEPersistentDiskVolumeOptions>
- Enclosing interface:
- GCEPersistentDiskVolumeOptions
@Stability(Stable) public static final class GCEPersistentDiskVolumeOptions.Builder extends Object implements software.amazon.jsii.Builder<GCEPersistentDiskVolumeOptions>
A builder forGCEPersistentDiskVolumeOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GCEPersistentDiskVolumeOptionsbuild()Builds the configured instance.GCEPersistentDiskVolumeOptions.BuilderfsType(String fsType)Sets the value ofGCEPersistentDiskVolumeOptions.getFsType()GCEPersistentDiskVolumeOptions.Buildername(String name)Sets the value ofGCEPersistentDiskVolumeOptions.getName()GCEPersistentDiskVolumeOptions.Builderpartition(Number partition)Sets the value ofGCEPersistentDiskVolumeOptions.getPartition()GCEPersistentDiskVolumeOptions.BuilderreadOnly(Boolean readOnly)Sets the value ofGCEPersistentDiskVolumeOptions.getReadOnly()
-
-
-
Method Detail
-
fsType
@Stability(Stable) public GCEPersistentDiskVolumeOptions.Builder fsType(String fsType)
Sets the value ofGCEPersistentDiskVolumeOptions.getFsType()- Parameters:
fsType- Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system.- Returns:
this
-
name
@Stability(Stable) public GCEPersistentDiskVolumeOptions.Builder name(String name)
Sets the value ofGCEPersistentDiskVolumeOptions.getName()- Parameters:
name- The volume name.- Returns:
this
-
partition
@Stability(Stable) public GCEPersistentDiskVolumeOptions.Builder partition(Number partition)
Sets the value ofGCEPersistentDiskVolumeOptions.getPartition()- Parameters:
partition- 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).- Returns:
this
-
readOnly
@Stability(Stable) public GCEPersistentDiskVolumeOptions.Builder readOnly(Boolean readOnly)
Sets the value ofGCEPersistentDiskVolumeOptions.getReadOnly()- Parameters:
readOnly- Specify "true" to force and set the ReadOnly property in VolumeMounts to "true".- Returns:
this
-
build
@Stability(Stable) public GCEPersistentDiskVolumeOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<GCEPersistentDiskVolumeOptions>- Returns:
- a new instance of
GCEPersistentDiskVolumeOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-