Package org.cdk8s.plus25.k8s
Class GlusterfsPersistentVolumeSource.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.GlusterfsPersistentVolumeSource.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<GlusterfsPersistentVolumeSource>
- Enclosing interface:
- GlusterfsPersistentVolumeSource
@Stability(Stable) public static final class GlusterfsPersistentVolumeSource.Builder extends Object implements software.amazon.jsii.Builder<GlusterfsPersistentVolumeSource>
A builder forGlusterfsPersistentVolumeSource
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GlusterfsPersistentVolumeSourcebuild()Builds the configured instance.GlusterfsPersistentVolumeSource.Builderendpoints(String endpoints)Sets the value ofGlusterfsPersistentVolumeSource.getEndpoints()GlusterfsPersistentVolumeSource.BuilderendpointsNamespace(String endpointsNamespace)Sets the value ofGlusterfsPersistentVolumeSource.getEndpointsNamespace()GlusterfsPersistentVolumeSource.Builderpath(String path)Sets the value ofGlusterfsPersistentVolumeSource.getPath()GlusterfsPersistentVolumeSource.BuilderreadOnly(Boolean readOnly)Sets the value ofGlusterfsPersistentVolumeSource.getReadOnly()
-
-
-
Method Detail
-
endpoints
@Stability(Stable) public GlusterfsPersistentVolumeSource.Builder endpoints(String endpoints)
Sets the value ofGlusterfsPersistentVolumeSource.getEndpoints()- Parameters:
endpoints- endpoints is the endpoint name that details Glusterfs topology. This parameter is required. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod- Returns:
this
-
path
@Stability(Stable) public GlusterfsPersistentVolumeSource.Builder path(String path)
Sets the value ofGlusterfsPersistentVolumeSource.getPath()- Parameters:
path- path is the Glusterfs volume path. This parameter is required. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod- Returns:
this
-
endpointsNamespace
@Stability(Stable) public GlusterfsPersistentVolumeSource.Builder endpointsNamespace(String endpointsNamespace)
Sets the value ofGlusterfsPersistentVolumeSource.getEndpointsNamespace()- Parameters:
endpointsNamespace- endpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod- Returns:
this
-
readOnly
@Stability(Stable) public GlusterfsPersistentVolumeSource.Builder readOnly(Boolean readOnly)
Sets the value ofGlusterfsPersistentVolumeSource.getReadOnly()- Parameters:
readOnly- readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod- Returns:
this
-
build
@Stability(Stable) public GlusterfsPersistentVolumeSource build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<GlusterfsPersistentVolumeSource>- Returns:
- a new instance of
GlusterfsPersistentVolumeSource - Throws:
NullPointerException- if any required attribute was not provided
-
-