Package org.cdk8s.plus25.k8s
Class ScaleIoPersistentVolumeSource.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.ScaleIoPersistentVolumeSource.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ScaleIoPersistentVolumeSource>
- Enclosing interface:
- ScaleIoPersistentVolumeSource
@Stability(Stable) public static final class ScaleIoPersistentVolumeSource.Builder extends Object implements software.amazon.jsii.Builder<ScaleIoPersistentVolumeSource>
A builder forScaleIoPersistentVolumeSource
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
gateway
@Stability(Stable) public ScaleIoPersistentVolumeSource.Builder gateway(String gateway)
Sets the value ofScaleIoPersistentVolumeSource.getGateway()- Parameters:
gateway- gateway is the host address of the ScaleIO API Gateway. This parameter is required.- Returns:
this
-
secretRef
@Stability(Stable) public ScaleIoPersistentVolumeSource.Builder secretRef(SecretReference secretRef)
Sets the value ofScaleIoPersistentVolumeSource.getSecretRef()- Parameters:
secretRef- secretRef references to the secret for ScaleIO user and other sensitive information. This parameter is required. If this is not provided, Login operation will fail.- Returns:
this
-
system
@Stability(Stable) public ScaleIoPersistentVolumeSource.Builder system(String system)
Sets the value ofScaleIoPersistentVolumeSource.getSystem()- Parameters:
system- system is the name of the storage system as configured in ScaleIO. This parameter is required.- Returns:
this
-
fsType
@Stability(Stable) public ScaleIoPersistentVolumeSource.Builder fsType(String fsType)
Sets the value ofScaleIoPersistentVolumeSource.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". Default is "xfs"- Returns:
this
-
protectionDomain
@Stability(Stable) public ScaleIoPersistentVolumeSource.Builder protectionDomain(String protectionDomain)
Sets the value ofScaleIoPersistentVolumeSource.getProtectionDomain()- Parameters:
protectionDomain- protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.- Returns:
this
-
readOnly
@Stability(Stable) public ScaleIoPersistentVolumeSource.Builder readOnly(Boolean readOnly)
Sets the value ofScaleIoPersistentVolumeSource.getReadOnly()- Parameters:
readOnly- readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.- Returns:
this
-
sslEnabled
@Stability(Stable) public ScaleIoPersistentVolumeSource.Builder sslEnabled(Boolean sslEnabled)
Sets the value ofScaleIoPersistentVolumeSource.getSslEnabled()- Parameters:
sslEnabled- sslEnabled is the flag to enable/disable SSL communication with Gateway, default false.- Returns:
this
-
storageMode
@Stability(Stable) public ScaleIoPersistentVolumeSource.Builder storageMode(String storageMode)
Sets the value ofScaleIoPersistentVolumeSource.getStorageMode()- Parameters:
storageMode- storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.- Returns:
this
-
storagePool
@Stability(Stable) public ScaleIoPersistentVolumeSource.Builder storagePool(String storagePool)
Sets the value ofScaleIoPersistentVolumeSource.getStoragePool()- Parameters:
storagePool- storagePool is the ScaleIO Storage Pool associated with the protection domain.- Returns:
this
-
volumeName
@Stability(Stable) public ScaleIoPersistentVolumeSource.Builder volumeName(String volumeName)
Sets the value ofScaleIoPersistentVolumeSource.getVolumeName()- Parameters:
volumeName- volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source.- Returns:
this
-
build
@Stability(Stable) public ScaleIoPersistentVolumeSource build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ScaleIoPersistentVolumeSource>- Returns:
- a new instance of
ScaleIoPersistentVolumeSource - Throws:
NullPointerException- if any required attribute was not provided
-
-