Package org.cdk8s.plus25.k8s
Class ScaleIoVolumeSource.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.ScaleIoVolumeSource.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ScaleIoVolumeSource>
- Enclosing interface:
- ScaleIoVolumeSource
@Stability(Stable) public static final class ScaleIoVolumeSource.Builder extends Object implements software.amazon.jsii.Builder<ScaleIoVolumeSource>
A builder forScaleIoVolumeSource
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
gateway
@Stability(Stable) public ScaleIoVolumeSource.Builder gateway(String gateway)
Sets the value ofScaleIoVolumeSource.getGateway()- Parameters:
gateway- gateway is the host address of the ScaleIO API Gateway. This parameter is required.- Returns:
this
-
secretRef
@Stability(Stable) public ScaleIoVolumeSource.Builder secretRef(LocalObjectReference secretRef)
Sets the value ofScaleIoVolumeSource.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 ScaleIoVolumeSource.Builder system(String system)
Sets the value ofScaleIoVolumeSource.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 ScaleIoVolumeSource.Builder fsType(String fsType)
Sets the value ofScaleIoVolumeSource.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 ScaleIoVolumeSource.Builder protectionDomain(String protectionDomain)
Sets the value ofScaleIoVolumeSource.getProtectionDomain()- Parameters:
protectionDomain- protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.- Returns:
this
-
readOnly
@Stability(Stable) public ScaleIoVolumeSource.Builder readOnly(Boolean readOnly)
Sets the value ofScaleIoVolumeSource.getReadOnly()- Parameters:
readOnly- readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.- Returns:
this
-
sslEnabled
@Stability(Stable) public ScaleIoVolumeSource.Builder sslEnabled(Boolean sslEnabled)
Sets the value ofScaleIoVolumeSource.getSslEnabled()- Parameters:
sslEnabled- sslEnabled Flag enable/disable SSL communication with Gateway, default false.- Returns:
this
-
storageMode
@Stability(Stable) public ScaleIoVolumeSource.Builder storageMode(String storageMode)
Sets the value ofScaleIoVolumeSource.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 ScaleIoVolumeSource.Builder storagePool(String storagePool)
Sets the value ofScaleIoVolumeSource.getStoragePool()- Parameters:
storagePool- storagePool is the ScaleIO Storage Pool associated with the protection domain.- Returns:
this
-
volumeName
@Stability(Stable) public ScaleIoVolumeSource.Builder volumeName(String volumeName)
Sets the value ofScaleIoVolumeSource.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 ScaleIoVolumeSource build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ScaleIoVolumeSource>- Returns:
- a new instance of
ScaleIoVolumeSource - Throws:
NullPointerException- if any required attribute was not provided
-
-