Class GlusterfsPersistentVolumeSource.Builder
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.core.v1.GlusterfsPersistentVolumeSource.Builder
-
- Enclosing class:
- GlusterfsPersistentVolumeSource
public static class GlusterfsPersistentVolumeSource.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GlusterfsPersistentVolumeSource
build()
GlusterfsPersistentVolumeSource.Builder
endpoints(@NonNull java.lang.String endpoints)
endpoints is the endpoint name that details Glusterfs topology.GlusterfsPersistentVolumeSource.Builder
endpointsNamespace(java.lang.String endpointsNamespace)
endpointsNamespace is the namespace that contains Glusterfs endpoint.GlusterfsPersistentVolumeSource.Builder
path(@NonNull java.lang.String path)
path is the Glusterfs volume path.GlusterfsPersistentVolumeSource.Builder
readOnly(java.lang.Boolean readOnly)
readOnly here will force the Glusterfs volume to be mounted with read-only permissions.java.lang.String
toString()
-
-
-
Method Detail
-
endpoints
public GlusterfsPersistentVolumeSource.Builder endpoints(@NonNull @NonNull java.lang.String endpoints)
endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod- Returns:
this
.
-
endpointsNamespace
public GlusterfsPersistentVolumeSource.Builder endpointsNamespace(java.lang.String 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
.
-
path
public GlusterfsPersistentVolumeSource.Builder path(@NonNull @NonNull java.lang.String path)
path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod- Returns:
this
.
-
readOnly
public GlusterfsPersistentVolumeSource.Builder readOnly(java.lang.Boolean 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
public GlusterfsPersistentVolumeSource build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-