Package org.cdk8s.plus24.k8s
Class CinderPersistentVolumeSource.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.CinderPersistentVolumeSource.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CinderPersistentVolumeSource>
- Enclosing interface:
- CinderPersistentVolumeSource
@Stability(Stable) public static final class CinderPersistentVolumeSource.Builder extends Object implements software.amazon.jsii.Builder<CinderPersistentVolumeSource>
A builder forCinderPersistentVolumeSource
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CinderPersistentVolumeSource
build()
Builds the configured instance.CinderPersistentVolumeSource.Builder
fsType(String fsType)
Sets the value ofCinderPersistentVolumeSource.getFsType()
CinderPersistentVolumeSource.Builder
readOnly(Boolean readOnly)
Sets the value ofCinderPersistentVolumeSource.getReadOnly()
CinderPersistentVolumeSource.Builder
secretRef(SecretReference secretRef)
Sets the value ofCinderPersistentVolumeSource.getSecretRef()
CinderPersistentVolumeSource.Builder
volumeId(String volumeId)
Sets the value ofCinderPersistentVolumeSource.getVolumeId()
-
-
-
Method Detail
-
volumeId
@Stability(Stable) public CinderPersistentVolumeSource.Builder volumeId(String volumeId)
Sets the value ofCinderPersistentVolumeSource.getVolumeId()
- Parameters:
volumeId
- volumeID used to identify the volume in cinder. This parameter is required. More info: https://examples.k8s.io/mysql-cinder-pd/README.md- Returns:
this
-
fsType
@Stability(Stable) public CinderPersistentVolumeSource.Builder fsType(String fsType)
Sets the value ofCinderPersistentVolumeSource.getFsType()
- Parameters:
fsType
- fsType Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md- Returns:
this
-
readOnly
@Stability(Stable) public CinderPersistentVolumeSource.Builder readOnly(Boolean readOnly)
Sets the value ofCinderPersistentVolumeSource.getReadOnly()
- Parameters:
readOnly
- readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md- Returns:
this
-
secretRef
@Stability(Stable) public CinderPersistentVolumeSource.Builder secretRef(SecretReference secretRef)
Sets the value ofCinderPersistentVolumeSource.getSecretRef()
- Parameters:
secretRef
- secretRef is Optional: points to a secret object containing parameters used to connect to OpenStack.- Returns:
this
-
build
@Stability(Stable) public CinderPersistentVolumeSource build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CinderPersistentVolumeSource>
- Returns:
- a new instance of
CinderPersistentVolumeSource
- Throws:
NullPointerException
- if any required attribute was not provided
-
-