Package org.cdk8s.plus25.k8s
Class FlexVolumeSource.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.FlexVolumeSource.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<FlexVolumeSource>
- Enclosing interface:
- FlexVolumeSource
@Stability(Stable) public static final class FlexVolumeSource.Builder extends Object implements software.amazon.jsii.Builder<FlexVolumeSource>
A builder forFlexVolumeSource
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FlexVolumeSourcebuild()Builds the configured instance.FlexVolumeSource.Builderdriver(String driver)Sets the value ofFlexVolumeSource.getDriver()FlexVolumeSource.BuilderfsType(String fsType)Sets the value ofFlexVolumeSource.getFsType()FlexVolumeSource.Builderoptions(Map<String,String> options)Sets the value ofFlexVolumeSource.getOptions()FlexVolumeSource.BuilderreadOnly(Boolean readOnly)Sets the value ofFlexVolumeSource.getReadOnly()FlexVolumeSource.BuildersecretRef(LocalObjectReference secretRef)Sets the value ofFlexVolumeSource.getSecretRef()
-
-
-
Method Detail
-
driver
@Stability(Stable) public FlexVolumeSource.Builder driver(String driver)
Sets the value ofFlexVolumeSource.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 FlexVolumeSource.Builder fsType(String fsType)
Sets the value ofFlexVolumeSource.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 FlexVolumeSource.Builder options(Map<String,String> options)
Sets the value ofFlexVolumeSource.getOptions()- Parameters:
options- options is Optional: this field holds extra command options if any.- Returns:
this
-
readOnly
@Stability(Stable) public FlexVolumeSource.Builder readOnly(Boolean readOnly)
Sets the value ofFlexVolumeSource.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 FlexVolumeSource.Builder secretRef(LocalObjectReference secretRef)
Sets the value ofFlexVolumeSource.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 FlexVolumeSource build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<FlexVolumeSource>- Returns:
- a new instance of
FlexVolumeSource - Throws:
NullPointerException- if any required attribute was not provided
-
-