Package org.cdk8s.plus24.k8s
Class FcVolumeSource.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.FcVolumeSource.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<FcVolumeSource>
- Enclosing interface:
- FcVolumeSource
@Stability(Stable) public static final class FcVolumeSource.Builder extends Object implements software.amazon.jsii.Builder<FcVolumeSource>
A builder forFcVolumeSource
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FcVolumeSource
build()
Builds the configured instance.FcVolumeSource.Builder
fsType(String fsType)
Sets the value ofFcVolumeSource.getFsType()
FcVolumeSource.Builder
lun(Number lun)
Sets the value ofFcVolumeSource.getLun()
FcVolumeSource.Builder
readOnly(Boolean readOnly)
Sets the value ofFcVolumeSource.getReadOnly()
FcVolumeSource.Builder
targetWwNs(List<String> targetWwNs)
Sets the value ofFcVolumeSource.getTargetWwNs()
FcVolumeSource.Builder
wwids(List<String> wwids)
Sets the value ofFcVolumeSource.getWwids()
-
-
-
Method Detail
-
fsType
@Stability(Stable) public FcVolumeSource.Builder fsType(String fsType)
Sets the value ofFcVolumeSource.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
-
lun
@Stability(Stable) public FcVolumeSource.Builder lun(Number lun)
Sets the value ofFcVolumeSource.getLun()
- Parameters:
lun
- lun is Optional: FC target lun number.- Returns:
this
-
readOnly
@Stability(Stable) public FcVolumeSource.Builder readOnly(Boolean readOnly)
Sets the value ofFcVolumeSource.getReadOnly()
- Parameters:
readOnly
- readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.- Returns:
this
-
targetWwNs
@Stability(Stable) public FcVolumeSource.Builder targetWwNs(List<String> targetWwNs)
Sets the value ofFcVolumeSource.getTargetWwNs()
- Parameters:
targetWwNs
- targetWWNs is Optional: FC target worldwide names (WWNs).- Returns:
this
-
wwids
@Stability(Stable) public FcVolumeSource.Builder wwids(List<String> wwids)
Sets the value ofFcVolumeSource.getWwids()
- Parameters:
wwids
- wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.- Returns:
this
-
build
@Stability(Stable) public FcVolumeSource build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<FcVolumeSource>
- Returns:
- a new instance of
FcVolumeSource
- Throws:
NullPointerException
- if any required attribute was not provided
-
-