Package org.cdk8s.plus25.k8s
Class QuobyteVolumeSource.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.QuobyteVolumeSource.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<QuobyteVolumeSource>
- Enclosing interface:
- QuobyteVolumeSource
@Stability(Stable) public static final class QuobyteVolumeSource.Builder extends Object implements software.amazon.jsii.Builder<QuobyteVolumeSource>
A builder forQuobyteVolumeSource
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QuobyteVolumeSourcebuild()Builds the configured instance.QuobyteVolumeSource.Buildergroup(String group)Sets the value ofQuobyteVolumeSource.getGroup()QuobyteVolumeSource.BuilderreadOnly(Boolean readOnly)Sets the value ofQuobyteVolumeSource.getReadOnly()QuobyteVolumeSource.Builderregistry(String registry)Sets the value ofQuobyteVolumeSource.getRegistry()QuobyteVolumeSource.Buildertenant(String tenant)Sets the value ofQuobyteVolumeSource.getTenant()QuobyteVolumeSource.Builderuser(String user)Sets the value ofQuobyteVolumeSource.getUser()QuobyteVolumeSource.Buildervolume(String volume)Sets the value ofQuobyteVolumeSource.getVolume()
-
-
-
Method Detail
-
registry
@Stability(Stable) public QuobyteVolumeSource.Builder registry(String registry)
Sets the value ofQuobyteVolumeSource.getRegistry()- Parameters:
registry- registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes. This parameter is required.- Returns:
this
-
volume
@Stability(Stable) public QuobyteVolumeSource.Builder volume(String volume)
Sets the value ofQuobyteVolumeSource.getVolume()- Parameters:
volume- volume is a string that references an already created Quobyte volume by name. This parameter is required.- Returns:
this
-
group
@Stability(Stable) public QuobyteVolumeSource.Builder group(String group)
Sets the value ofQuobyteVolumeSource.getGroup()- Parameters:
group- group to map volume access to Default is no group.- Returns:
this
-
readOnly
@Stability(Stable) public QuobyteVolumeSource.Builder readOnly(Boolean readOnly)
Sets the value ofQuobyteVolumeSource.getReadOnly()- Parameters:
readOnly- readOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false.- Returns:
this
-
tenant
@Stability(Stable) public QuobyteVolumeSource.Builder tenant(String tenant)
Sets the value ofQuobyteVolumeSource.getTenant()- Parameters:
tenant- tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin.- Returns:
this
-
user
@Stability(Stable) public QuobyteVolumeSource.Builder user(String user)
Sets the value ofQuobyteVolumeSource.getUser()- Parameters:
user- user to map volume access to Defaults to serivceaccount user.- Returns:
this
-
build
@Stability(Stable) public QuobyteVolumeSource build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<QuobyteVolumeSource>- Returns:
- a new instance of
QuobyteVolumeSource - Throws:
NullPointerException- if any required attribute was not provided
-
-