Package org.cdk8s.plus25.k8s
Class GlusterfsVolumeSource.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.GlusterfsVolumeSource.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<GlusterfsVolumeSource>
- Enclosing interface:
- GlusterfsVolumeSource
@Stability(Stable) public static final class GlusterfsVolumeSource.Builder extends Object implements software.amazon.jsii.Builder<GlusterfsVolumeSource>
A builder forGlusterfsVolumeSource
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GlusterfsVolumeSourcebuild()Builds the configured instance.GlusterfsVolumeSource.Builderendpoints(String endpoints)Sets the value ofGlusterfsVolumeSource.getEndpoints()GlusterfsVolumeSource.Builderpath(String path)Sets the value ofGlusterfsVolumeSource.getPath()GlusterfsVolumeSource.BuilderreadOnly(Boolean readOnly)Sets the value ofGlusterfsVolumeSource.getReadOnly()
-
-
-
Method Detail
-
endpoints
@Stability(Stable) public GlusterfsVolumeSource.Builder endpoints(String endpoints)
Sets the value ofGlusterfsVolumeSource.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 GlusterfsVolumeSource.Builder path(String path)
Sets the value ofGlusterfsVolumeSource.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
-
readOnly
@Stability(Stable) public GlusterfsVolumeSource.Builder readOnly(Boolean readOnly)
Sets the value ofGlusterfsVolumeSource.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 GlusterfsVolumeSource build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<GlusterfsVolumeSource>- Returns:
- a new instance of
GlusterfsVolumeSource - Throws:
NullPointerException- if any required attribute was not provided
-
-