Class ScaleIOPersistentVolumeSource.Builder
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.core.v1.ScaleIOPersistentVolumeSource.Builder
-
- Enclosing class:
- ScaleIOPersistentVolumeSource
public static class ScaleIOPersistentVolumeSource.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScaleIOPersistentVolumeSource
build()
ScaleIOPersistentVolumeSource.Builder
fsType(java.lang.String fsType)
fsType is the filesystem type to mount.ScaleIOPersistentVolumeSource.Builder
gateway(@NonNull java.lang.String gateway)
gateway is the host address of the ScaleIO API Gateway.ScaleIOPersistentVolumeSource.Builder
protectionDomain(java.lang.String protectionDomain)
protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.ScaleIOPersistentVolumeSource.Builder
readOnly(java.lang.Boolean readOnly)
readOnly defaults to false (read/write).ScaleIOPersistentVolumeSource.Builder
secretRef(@NonNull SecretReference secretRef)
ScaleIOPersistentVolumeSource.Builder
sslEnabled(java.lang.Boolean sslEnabled)
sslEnabled is the flag to enable/disable SSL communication with Gateway, default falseScaleIOPersistentVolumeSource.Builder
storageMode(java.lang.String storageMode)
storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.ScaleIOPersistentVolumeSource.Builder
storagePool(java.lang.String storagePool)
storagePool is the ScaleIO Storage Pool associated with the protection domain.ScaleIOPersistentVolumeSource.Builder
system(@NonNull java.lang.String system)
system is the name of the storage system as configured in ScaleIO.java.lang.String
toString()
ScaleIOPersistentVolumeSource.Builder
volumeName(java.lang.String volumeName)
volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source.
-
-
-
Method Detail
-
fsType
public ScaleIOPersistentVolumeSource.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". Default is "xfs"- Returns:
this
.
-
gateway
public ScaleIOPersistentVolumeSource.Builder gateway(@NonNull @NonNull java.lang.String gateway)
gateway is the host address of the ScaleIO API Gateway.- Returns:
this
.
-
protectionDomain
public ScaleIOPersistentVolumeSource.Builder protectionDomain(java.lang.String protectionDomain)
protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.- Returns:
this
.
-
readOnly
public ScaleIOPersistentVolumeSource.Builder readOnly(java.lang.Boolean readOnly)
readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.- Returns:
this
.
-
secretRef
public ScaleIOPersistentVolumeSource.Builder secretRef(@NonNull @NonNull SecretReference secretRef)
- Returns:
this
.
-
sslEnabled
public ScaleIOPersistentVolumeSource.Builder sslEnabled(java.lang.Boolean sslEnabled)
sslEnabled is the flag to enable/disable SSL communication with Gateway, default false- Returns:
this
.
-
storageMode
public ScaleIOPersistentVolumeSource.Builder storageMode(java.lang.String storageMode)
storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.- Returns:
this
.
-
storagePool
public ScaleIOPersistentVolumeSource.Builder storagePool(java.lang.String storagePool)
storagePool is the ScaleIO Storage Pool associated with the protection domain.- Returns:
this
.
-
system
public ScaleIOPersistentVolumeSource.Builder system(@NonNull @NonNull java.lang.String system)
system is the name of the storage system as configured in ScaleIO.- Returns:
this
.
-
volumeName
public ScaleIOPersistentVolumeSource.Builder volumeName(java.lang.String volumeName)
volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source.- Returns:
this
.
-
build
public ScaleIOPersistentVolumeSource build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-