Package org.cdk8s.plus24.k8s
Class StorageOsVolumeSource.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.StorageOsVolumeSource.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<StorageOsVolumeSource>
- Enclosing interface:
- StorageOsVolumeSource
@Stability(Stable) public static final class StorageOsVolumeSource.Builder extends Object implements software.amazon.jsii.Builder<StorageOsVolumeSource>
A builder forStorageOsVolumeSource
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StorageOsVolumeSource
build()
Builds the configured instance.StorageOsVolumeSource.Builder
fsType(String fsType)
Sets the value ofStorageOsVolumeSource.getFsType()
StorageOsVolumeSource.Builder
readOnly(Boolean readOnly)
Sets the value ofStorageOsVolumeSource.getReadOnly()
StorageOsVolumeSource.Builder
secretRef(LocalObjectReference secretRef)
Sets the value ofStorageOsVolumeSource.getSecretRef()
StorageOsVolumeSource.Builder
volumeName(String volumeName)
Sets the value ofStorageOsVolumeSource.getVolumeName()
StorageOsVolumeSource.Builder
volumeNamespace(String volumeNamespace)
Sets the value ofStorageOsVolumeSource.getVolumeNamespace()
-
-
-
Method Detail
-
fsType
@Stability(Stable) public StorageOsVolumeSource.Builder fsType(String fsType)
Sets the value ofStorageOsVolumeSource.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 StorageOsVolumeSource.Builder readOnly(Boolean readOnly)
Sets the value ofStorageOsVolumeSource.getReadOnly()
- Parameters:
readOnly
- readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.- Returns:
this
-
secretRef
@Stability(Stable) public StorageOsVolumeSource.Builder secretRef(LocalObjectReference secretRef)
Sets the value ofStorageOsVolumeSource.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 StorageOsVolumeSource.Builder volumeName(String volumeName)
Sets the value ofStorageOsVolumeSource.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 StorageOsVolumeSource.Builder volumeNamespace(String volumeNamespace)
Sets the value ofStorageOsVolumeSource.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 StorageOsVolumeSource build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<StorageOsVolumeSource>
- Returns:
- a new instance of
StorageOsVolumeSource
- Throws:
NullPointerException
- if any required attribute was not provided
-
-