Package org.cdk8s.plus25.k8s
Class PhotonPersistentDiskVolumeSource.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.PhotonPersistentDiskVolumeSource.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<PhotonPersistentDiskVolumeSource>
- Enclosing interface:
- PhotonPersistentDiskVolumeSource
@Stability(Stable) public static final class PhotonPersistentDiskVolumeSource.Builder extends Object implements software.amazon.jsii.Builder<PhotonPersistentDiskVolumeSource>
A builder forPhotonPersistentDiskVolumeSource
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PhotonPersistentDiskVolumeSourcebuild()Builds the configured instance.PhotonPersistentDiskVolumeSource.BuilderfsType(String fsType)Sets the value ofPhotonPersistentDiskVolumeSource.getFsType()PhotonPersistentDiskVolumeSource.BuilderpdId(String pdId)Sets the value ofPhotonPersistentDiskVolumeSource.getPdId()
-
-
-
Method Detail
-
pdId
@Stability(Stable) public PhotonPersistentDiskVolumeSource.Builder pdId(String pdId)
Sets the value ofPhotonPersistentDiskVolumeSource.getPdId()- Parameters:
pdId- pdID is the ID that identifies Photon Controller persistent disk. This parameter is required.- Returns:
this
-
fsType
@Stability(Stable) public PhotonPersistentDiskVolumeSource.Builder fsType(String fsType)
Sets the value ofPhotonPersistentDiskVolumeSource.getFsType()- Parameters:
fsType- fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.- Returns:
this
-
build
@Stability(Stable) public PhotonPersistentDiskVolumeSource build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PhotonPersistentDiskVolumeSource>- Returns:
- a new instance of
PhotonPersistentDiskVolumeSource - Throws:
NullPointerException- if any required attribute was not provided
-
-