Package org.cdk8s.plus23.k8s
Class QuobyteVolumeSource.Builder
- java.lang.Object
-
- org.cdk8s.plus23.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 QuobyteVolumeSource
build()
Builds the configured instance.QuobyteVolumeSource.Builder
group(String group)
Sets the value ofQuobyteVolumeSource.getGroup()
QuobyteVolumeSource.Builder
readOnly(Boolean readOnly)
Sets the value ofQuobyteVolumeSource.getReadOnly()
QuobyteVolumeSource.Builder
registry(String registry)
Sets the value ofQuobyteVolumeSource.getRegistry()
QuobyteVolumeSource.Builder
tenant(String tenant)
Sets the value ofQuobyteVolumeSource.getTenant()
QuobyteVolumeSource.Builder
user(String user)
Sets the value ofQuobyteVolumeSource.getUser()
QuobyteVolumeSource.Builder
volume(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:
build
in interfacesoftware.amazon.jsii.Builder<QuobyteVolumeSource>
- Returns:
- a new instance of
QuobyteVolumeSource
- Throws:
NullPointerException
- if any required attribute was not provided
-
-