Class CSIVolumeSource.Builder
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.core.v1.CSIVolumeSource.Builder
-
- Enclosing class:
- CSIVolumeSource
public static class CSIVolumeSource.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CSIVolumeSource
build()
CSIVolumeSource.Builder
clearVolumeAttributes()
CSIVolumeSource.Builder
driver(@NonNull java.lang.String driver)
Driver is the name of the CSI driver that handles this volume.CSIVolumeSource.Builder
fsType(java.lang.String fsType)
Filesystem type to mount.CSIVolumeSource.Builder
nodePublishSecretRef(LocalObjectReference nodePublishSecretRef)
CSIVolumeSource.Builder
putInVolumeAttributes(java.lang.String putInVolumeAttributesKey, java.lang.String putInVolumeAttributesValue)
CSIVolumeSource.Builder
readOnly(java.lang.Boolean readOnly)
Specifies a read-only configuration for the volume.java.lang.String
toString()
CSIVolumeSource.Builder
volumeAttributes(java.util.Map<? extends java.lang.String,? extends java.lang.String> volumeAttributes)
-
-
-
Method Detail
-
driver
public CSIVolumeSource.Builder driver(@NonNull @NonNull java.lang.String driver)
Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.- Returns:
this
.
-
fsType
public CSIVolumeSource.Builder fsType(java.lang.String fsType)
Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply.- Returns:
this
.
-
nodePublishSecretRef
public CSIVolumeSource.Builder nodePublishSecretRef(LocalObjectReference nodePublishSecretRef)
- Returns:
this
.
-
readOnly
public CSIVolumeSource.Builder readOnly(java.lang.Boolean readOnly)
Specifies a read-only configuration for the volume. Defaults to false (read/write).- Returns:
this
.
-
putInVolumeAttributes
public CSIVolumeSource.Builder putInVolumeAttributes(java.lang.String putInVolumeAttributesKey, java.lang.String putInVolumeAttributesValue)
-
volumeAttributes
public CSIVolumeSource.Builder volumeAttributes(java.util.Map<? extends java.lang.String,? extends java.lang.String> volumeAttributes)
-
clearVolumeAttributes
public CSIVolumeSource.Builder clearVolumeAttributes()
-
build
public CSIVolumeSource build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-