Package org.cdk8s.plus23.k8s
Class CephFsVolumeSource.Builder
- java.lang.Object
-
- org.cdk8s.plus23.k8s.CephFsVolumeSource.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CephFsVolumeSource>
- Enclosing interface:
- CephFsVolumeSource
@Stability(Stable) public static final class CephFsVolumeSource.Builder extends Object implements software.amazon.jsii.Builder<CephFsVolumeSource>
A builder forCephFsVolumeSource
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CephFsVolumeSource
build()
Builds the configured instance.CephFsVolumeSource.Builder
monitors(List<String> monitors)
Sets the value ofCephFsVolumeSource.getMonitors()
CephFsVolumeSource.Builder
path(String path)
Sets the value ofCephFsVolumeSource.getPath()
CephFsVolumeSource.Builder
readOnly(Boolean readOnly)
Sets the value ofCephFsVolumeSource.getReadOnly()
CephFsVolumeSource.Builder
secretFile(String secretFile)
Sets the value ofCephFsVolumeSource.getSecretFile()
CephFsVolumeSource.Builder
secretRef(LocalObjectReference secretRef)
Sets the value ofCephFsVolumeSource.getSecretRef()
CephFsVolumeSource.Builder
user(String user)
Sets the value ofCephFsVolumeSource.getUser()
-
-
-
Method Detail
-
monitors
@Stability(Stable) public CephFsVolumeSource.Builder monitors(List<String> monitors)
Sets the value ofCephFsVolumeSource.getMonitors()
- Parameters:
monitors
- 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 CephFsVolumeSource.Builder path(String path)
Sets the value ofCephFsVolumeSource.getPath()
- Parameters:
path
- Optional: Used as the mounted root, rather than the full Ceph tree, default is /.- Returns:
this
-
readOnly
@Stability(Stable) public CephFsVolumeSource.Builder readOnly(Boolean readOnly)
Sets the value ofCephFsVolumeSource.getReadOnly()
- Parameters:
readOnly
- 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 CephFsVolumeSource.Builder secretFile(String secretFile)
Sets the value ofCephFsVolumeSource.getSecretFile()
- Parameters:
secretFile
- 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 CephFsVolumeSource.Builder secretRef(LocalObjectReference secretRef)
Sets the value ofCephFsVolumeSource.getSecretRef()
- Parameters:
secretRef
- 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 CephFsVolumeSource.Builder user(String user)
Sets the value ofCephFsVolumeSource.getUser()
- Parameters:
user
- 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 CephFsVolumeSource build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CephFsVolumeSource>
- Returns:
- a new instance of
CephFsVolumeSource
- Throws:
NullPointerException
- if any required attribute was not provided
-
-