Package org.cdk8s.plus25.k8s
Class StorageOsPersistentVolumeSource.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.StorageOsPersistentVolumeSource.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<StorageOsPersistentVolumeSource>
- Enclosing interface:
- StorageOsPersistentVolumeSource
@Stability(Stable) public static final class StorageOsPersistentVolumeSource.Builder extends Object implements software.amazon.jsii.Builder<StorageOsPersistentVolumeSource>
A builder forStorageOsPersistentVolumeSource
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StorageOsPersistentVolumeSourcebuild()Builds the configured instance.StorageOsPersistentVolumeSource.BuilderfsType(String fsType)Sets the value ofStorageOsPersistentVolumeSource.getFsType()StorageOsPersistentVolumeSource.BuilderreadOnly(Boolean readOnly)Sets the value ofStorageOsPersistentVolumeSource.getReadOnly()StorageOsPersistentVolumeSource.BuildersecretRef(ObjectReference secretRef)Sets the value ofStorageOsPersistentVolumeSource.getSecretRef()StorageOsPersistentVolumeSource.BuildervolumeName(String volumeName)Sets the value ofStorageOsPersistentVolumeSource.getVolumeName()StorageOsPersistentVolumeSource.BuildervolumeNamespace(String volumeNamespace)Sets the value ofStorageOsPersistentVolumeSource.getVolumeNamespace()
-
-
-
Method Detail
-
fsType
@Stability(Stable) public StorageOsPersistentVolumeSource.Builder fsType(String fsType)
Sets the value ofStorageOsPersistentVolumeSource.getFsType()- Parameters:
fsType- fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.- Returns:
this
-
readOnly
@Stability(Stable) public StorageOsPersistentVolumeSource.Builder readOnly(Boolean readOnly)
Sets the value ofStorageOsPersistentVolumeSource.getReadOnly()- Parameters:
readOnly- readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.- Returns:
this
-
secretRef
@Stability(Stable) public StorageOsPersistentVolumeSource.Builder secretRef(ObjectReference secretRef)
Sets the value ofStorageOsPersistentVolumeSource.getSecretRef()- Parameters:
secretRef- secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted.- Returns:
this
-
volumeName
@Stability(Stable) public StorageOsPersistentVolumeSource.Builder volumeName(String volumeName)
Sets the value ofStorageOsPersistentVolumeSource.getVolumeName()- Parameters:
volumeName- volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.- Returns:
this
-
volumeNamespace
@Stability(Stable) public StorageOsPersistentVolumeSource.Builder volumeNamespace(String volumeNamespace)
Sets the value ofStorageOsPersistentVolumeSource.getVolumeNamespace()- Parameters:
volumeNamespace- volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.- Returns:
this
-
build
@Stability(Stable) public StorageOsPersistentVolumeSource build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<StorageOsPersistentVolumeSource>- Returns:
- a new instance of
StorageOsPersistentVolumeSource - Throws:
NullPointerException- if any required attribute was not provided
-
-