Package org.cdk8s.plus25.k8s
Class CephFsVolumeSource.Builder
- java.lang.Object
-
- org.cdk8s.plus25.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 CephFsVolumeSourcebuild()Builds the configured instance.CephFsVolumeSource.Buildermonitors(List<String> monitors)Sets the value ofCephFsVolumeSource.getMonitors()CephFsVolumeSource.Builderpath(String path)Sets the value ofCephFsVolumeSource.getPath()CephFsVolumeSource.BuilderreadOnly(Boolean readOnly)Sets the value ofCephFsVolumeSource.getReadOnly()CephFsVolumeSource.BuildersecretFile(String secretFile)Sets the value ofCephFsVolumeSource.getSecretFile()CephFsVolumeSource.BuildersecretRef(LocalObjectReference secretRef)Sets the value ofCephFsVolumeSource.getSecretRef()CephFsVolumeSource.Builderuser(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- 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 CephFsVolumeSource.Builder path(String path)
Sets the value ofCephFsVolumeSource.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 CephFsVolumeSource.Builder readOnly(Boolean readOnly)
Sets the value ofCephFsVolumeSource.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 CephFsVolumeSource.Builder secretFile(String secretFile)
Sets the value ofCephFsVolumeSource.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 CephFsVolumeSource.Builder secretRef(LocalObjectReference secretRef)
Sets the value ofCephFsVolumeSource.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 CephFsVolumeSource.Builder user(String user)
Sets the value ofCephFsVolumeSource.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 CephFsVolumeSource build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CephFsVolumeSource>- Returns:
- a new instance of
CephFsVolumeSource - Throws:
NullPointerException- if any required attribute was not provided
-
-