Package org.cdk8s.plus24.k8s
Class FlexPersistentVolumeSource.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.FlexPersistentVolumeSource.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<FlexPersistentVolumeSource>
- Enclosing interface:
- FlexPersistentVolumeSource
@Stability(Stable) public static final class FlexPersistentVolumeSource.Builder extends Object implements software.amazon.jsii.Builder<FlexPersistentVolumeSource>
A builder forFlexPersistentVolumeSource
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FlexPersistentVolumeSource
build()
Builds the configured instance.FlexPersistentVolumeSource.Builder
driver(String driver)
Sets the value ofFlexPersistentVolumeSource.getDriver()
FlexPersistentVolumeSource.Builder
fsType(String fsType)
Sets the value ofFlexPersistentVolumeSource.getFsType()
FlexPersistentVolumeSource.Builder
options(Map<String,String> options)
Sets the value ofFlexPersistentVolumeSource.getOptions()
FlexPersistentVolumeSource.Builder
readOnly(Boolean readOnly)
Sets the value ofFlexPersistentVolumeSource.getReadOnly()
FlexPersistentVolumeSource.Builder
secretRef(SecretReference secretRef)
Sets the value ofFlexPersistentVolumeSource.getSecretRef()
-
-
-
Method Detail
-
driver
@Stability(Stable) public FlexPersistentVolumeSource.Builder driver(String driver)
Sets the value ofFlexPersistentVolumeSource.getDriver()
- Parameters:
driver
- driver is the name of the driver to use for this volume. This parameter is required.- Returns:
this
-
fsType
@Stability(Stable) public FlexPersistentVolumeSource.Builder fsType(String fsType)
Sets the value ofFlexPersistentVolumeSource.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". The default filesystem depends on FlexVolume script.- Returns:
this
-
options
@Stability(Stable) public FlexPersistentVolumeSource.Builder options(Map<String,String> options)
Sets the value ofFlexPersistentVolumeSource.getOptions()
- Parameters:
options
- options is Optional: this field holds extra command options if any.- Returns:
this
-
readOnly
@Stability(Stable) public FlexPersistentVolumeSource.Builder readOnly(Boolean readOnly)
Sets the value ofFlexPersistentVolumeSource.getReadOnly()
- Parameters:
readOnly
- readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.- Returns:
this
-
secretRef
@Stability(Stable) public FlexPersistentVolumeSource.Builder secretRef(SecretReference secretRef)
Sets the value ofFlexPersistentVolumeSource.getSecretRef()
- Parameters:
secretRef
- secretRef is Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts.- Returns:
this
-
build
@Stability(Stable) public FlexPersistentVolumeSource build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<FlexPersistentVolumeSource>
- Returns:
- a new instance of
FlexPersistentVolumeSource
- Throws:
NullPointerException
- if any required attribute was not provided
-
-