Package org.cdk8s.plus25.k8s
Class CinderVolumeSource.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.CinderVolumeSource.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CinderVolumeSource>
- Enclosing interface:
- CinderVolumeSource
@Stability(Stable) public static final class CinderVolumeSource.Builder extends Object implements software.amazon.jsii.Builder<CinderVolumeSource>
A builder forCinderVolumeSource
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CinderVolumeSourcebuild()Builds the configured instance.CinderVolumeSource.BuilderfsType(String fsType)Sets the value ofCinderVolumeSource.getFsType()CinderVolumeSource.BuilderreadOnly(Boolean readOnly)Sets the value ofCinderVolumeSource.getReadOnly()CinderVolumeSource.BuildersecretRef(LocalObjectReference secretRef)Sets the value ofCinderVolumeSource.getSecretRef()CinderVolumeSource.BuildervolumeId(String volumeId)Sets the value ofCinderVolumeSource.getVolumeId()
-
-
-
Method Detail
-
volumeId
@Stability(Stable) public CinderVolumeSource.Builder volumeId(String volumeId)
Sets the value ofCinderVolumeSource.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 CinderVolumeSource.Builder fsType(String fsType)
Sets the value ofCinderVolumeSource.getFsType()- Parameters:
fsType- fsType is the 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 CinderVolumeSource.Builder readOnly(Boolean readOnly)
Sets the value ofCinderVolumeSource.getReadOnly()- Parameters:
readOnly- readOnly 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 CinderVolumeSource.Builder secretRef(LocalObjectReference secretRef)
Sets the value ofCinderVolumeSource.getSecretRef()- Parameters:
secretRef- secretRef is optional: points to a secret object containing parameters used to connect to OpenStack.- Returns:
this
-
build
@Stability(Stable) public CinderVolumeSource build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CinderVolumeSource>- Returns:
- a new instance of
CinderVolumeSource - Throws:
NullPointerException- if any required attribute was not provided
-
-