Class FlexVolumeSource.Builder
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.core.v1.FlexVolumeSource.Builder
-
- Enclosing class:
- FlexVolumeSource
public static class FlexVolumeSource.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FlexVolumeSource
build()
FlexVolumeSource.Builder
clearOptions()
FlexVolumeSource.Builder
driver(@NonNull java.lang.String driver)
driver is the name of the driver to use for this volume.FlexVolumeSource.Builder
fsType(java.lang.String fsType)
fsType is the filesystem type to mount.FlexVolumeSource.Builder
options(java.util.Map<? extends java.lang.String,? extends java.lang.String> options)
FlexVolumeSource.Builder
putInOptions(java.lang.String putInOptionsKey, java.lang.String putInOptionsValue)
FlexVolumeSource.Builder
readOnly(java.lang.Boolean readOnly)
readOnly is Optional: defaults to false (read/write).FlexVolumeSource.Builder
secretRef(LocalObjectReference secretRef)
java.lang.String
toString()
-
-
-
Method Detail
-
driver
public FlexVolumeSource.Builder driver(@NonNull @NonNull java.lang.String driver)
driver is the name of the driver to use for this volume.- Returns:
this
.
-
fsType
public FlexVolumeSource.Builder fsType(java.lang.String 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
.
-
putInOptions
public FlexVolumeSource.Builder putInOptions(java.lang.String putInOptionsKey, java.lang.String putInOptionsValue)
-
options
public FlexVolumeSource.Builder options(java.util.Map<? extends java.lang.String,? extends java.lang.String> options)
-
clearOptions
public FlexVolumeSource.Builder clearOptions()
-
readOnly
public FlexVolumeSource.Builder readOnly(java.lang.Boolean readOnly)
readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.- Returns:
this
.
-
secretRef
public FlexVolumeSource.Builder secretRef(LocalObjectReference secretRef)
- Returns:
this
.
-
build
public FlexVolumeSource build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-