Package org.cdk8s.plus25.k8s
Class RbdPersistentVolumeSource.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.RbdPersistentVolumeSource.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<RbdPersistentVolumeSource>
- Enclosing interface:
- RbdPersistentVolumeSource
@Stability(Stable) public static final class RbdPersistentVolumeSource.Builder extends Object implements software.amazon.jsii.Builder<RbdPersistentVolumeSource>
A builder forRbdPersistentVolumeSource
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
image
@Stability(Stable) public RbdPersistentVolumeSource.Builder image(String image)
Sets the value ofRbdPersistentVolumeSource.getImage()- Parameters:
image- image is the rados image name. This parameter is required. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it- Returns:
this
-
monitors
@Stability(Stable) public RbdPersistentVolumeSource.Builder monitors(List<String> monitors)
Sets the value ofRbdPersistentVolumeSource.getMonitors()- Parameters:
monitors- monitors is a collection of Ceph monitors. This parameter is required. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it- Returns:
this
-
fsType
@Stability(Stable) public RbdPersistentVolumeSource.Builder fsType(String fsType)
Sets the value ofRbdPersistentVolumeSource.getFsType()- Parameters:
fsType- fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd- Returns:
this
-
keyring
@Stability(Stable) public RbdPersistentVolumeSource.Builder keyring(String keyring)
Sets the value ofRbdPersistentVolumeSource.getKeyring()- Parameters:
keyring- keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it- Returns:
this
-
pool
@Stability(Stable) public RbdPersistentVolumeSource.Builder pool(String pool)
Sets the value ofRbdPersistentVolumeSource.getPool()- Parameters:
pool- pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it- Returns:
this
-
readOnly
@Stability(Stable) public RbdPersistentVolumeSource.Builder readOnly(Boolean readOnly)
Sets the value ofRbdPersistentVolumeSource.getReadOnly()- Parameters:
readOnly- readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it- Returns:
this
-
secretRef
@Stability(Stable) public RbdPersistentVolumeSource.Builder secretRef(SecretReference secretRef)
Sets the value ofRbdPersistentVolumeSource.getSecretRef()- Parameters:
secretRef- secretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it- Returns:
this
-
user
@Stability(Stable) public RbdPersistentVolumeSource.Builder user(String user)
Sets the value ofRbdPersistentVolumeSource.getUser()- Parameters:
user- user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it- Returns:
this
-
build
@Stability(Stable) public RbdPersistentVolumeSource build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<RbdPersistentVolumeSource>- Returns:
- a new instance of
RbdPersistentVolumeSource - Throws:
NullPointerException- if any required attribute was not provided
-
-