Package org.cdk8s.plus24.k8s
Class CephFsPersistentVolumeSource.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.CephFsPersistentVolumeSource.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CephFsPersistentVolumeSource>
- Enclosing interface:
- CephFsPersistentVolumeSource
@Stability(Stable) public static final class CephFsPersistentVolumeSource.Builder extends Object implements software.amazon.jsii.Builder<CephFsPersistentVolumeSource>
A builder forCephFsPersistentVolumeSource
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CephFsPersistentVolumeSource
build()
Builds the configured instance.CephFsPersistentVolumeSource.Builder
monitors(List<String> monitors)
Sets the value ofCephFsPersistentVolumeSource.getMonitors()
CephFsPersistentVolumeSource.Builder
path(String path)
Sets the value ofCephFsPersistentVolumeSource.getPath()
CephFsPersistentVolumeSource.Builder
readOnly(Boolean readOnly)
Sets the value ofCephFsPersistentVolumeSource.getReadOnly()
CephFsPersistentVolumeSource.Builder
secretFile(String secretFile)
Sets the value ofCephFsPersistentVolumeSource.getSecretFile()
CephFsPersistentVolumeSource.Builder
secretRef(SecretReference secretRef)
Sets the value ofCephFsPersistentVolumeSource.getSecretRef()
CephFsPersistentVolumeSource.Builder
user(String user)
Sets the value ofCephFsPersistentVolumeSource.getUser()
-
-
-
Method Detail
-
monitors
@Stability(Stable) public CephFsPersistentVolumeSource.Builder monitors(List<String> monitors)
Sets the value ofCephFsPersistentVolumeSource.getMonitors()
- Parameters:
monitors
- monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it. This parameter is required.- Returns:
this
-
path
@Stability(Stable) public CephFsPersistentVolumeSource.Builder path(String path)
Sets the value ofCephFsPersistentVolumeSource.getPath()
- Parameters:
path
- path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /.- Returns:
this
-
readOnly
@Stability(Stable) public CephFsPersistentVolumeSource.Builder readOnly(Boolean readOnly)
Sets the value ofCephFsPersistentVolumeSource.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/volumes/cephfs/README.md#how-to-use-it- Returns:
this
-
secretFile
@Stability(Stable) public CephFsPersistentVolumeSource.Builder secretFile(String secretFile)
Sets the value ofCephFsPersistentVolumeSource.getSecretFile()
- Parameters:
secretFile
- secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it.- Returns:
this
-
secretRef
@Stability(Stable) public CephFsPersistentVolumeSource.Builder secretRef(SecretReference secretRef)
Sets the value ofCephFsPersistentVolumeSource.getSecretRef()
- Parameters:
secretRef
- secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it- Returns:
this
-
user
@Stability(Stable) public CephFsPersistentVolumeSource.Builder user(String user)
Sets the value ofCephFsPersistentVolumeSource.getUser()
- Parameters:
user
- user is Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it.- Returns:
this
-
build
@Stability(Stable) public CephFsPersistentVolumeSource build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CephFsPersistentVolumeSource>
- Returns:
- a new instance of
CephFsPersistentVolumeSource
- Throws:
NullPointerException
- if any required attribute was not provided
-
-