Class StorageOSVolumeSource
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.core.v1.StorageOSVolumeSource
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class StorageOSVolumeSource extends java.lang.Object implements com.marcnuri.yakc.model.Model
Represents a StorageOS persistent volume resource.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StorageOSVolumeSource.Builder
-
Constructor Summary
Constructors Constructor Description StorageOSVolumeSource()
StorageOSVolumeSource(java.lang.String fsType, java.lang.Boolean readOnly, LocalObjectReference secretRef, java.lang.String volumeName, java.lang.String volumeNamespace)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StorageOSVolumeSource.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.String
getFsType()
Filesystem type to mount.java.lang.Boolean
getReadOnly()
Defaults to false (read/write).LocalObjectReference
getSecretRef()
java.lang.String
getVolumeName()
VolumeName is the human-readable name of the StorageOS volume.java.lang.String
getVolumeNamespace()
VolumeNamespace specifies the scope of the volume within StorageOS.int
hashCode()
void
setFsType(java.lang.String fsType)
Filesystem type to mount.void
setReadOnly(java.lang.Boolean readOnly)
Defaults to false (read/write).void
setSecretRef(LocalObjectReference secretRef)
void
setVolumeName(java.lang.String volumeName)
VolumeName is the human-readable name of the StorageOS volume.void
setVolumeNamespace(java.lang.String volumeNamespace)
VolumeNamespace specifies the scope of the volume within StorageOS.StorageOSVolumeSource.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
StorageOSVolumeSource
public StorageOSVolumeSource(java.lang.String fsType, java.lang.Boolean readOnly, LocalObjectReference secretRef, java.lang.String volumeName, java.lang.String volumeNamespace)
-
StorageOSVolumeSource
public StorageOSVolumeSource()
-
-
Method Detail
-
builder
public static StorageOSVolumeSource.Builder builder()
-
toBuilder
public StorageOSVolumeSource.Builder toBuilder()
-
getFsType
public java.lang.String getFsType()
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.
-
getReadOnly
public java.lang.Boolean getReadOnly()
Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
-
getSecretRef
public LocalObjectReference getSecretRef()
-
getVolumeName
public java.lang.String getVolumeName()
VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.
-
getVolumeNamespace
public java.lang.String getVolumeNamespace()
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.
-
setFsType
public void setFsType(java.lang.String fsType)
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.
-
setReadOnly
public void setReadOnly(java.lang.Boolean readOnly)
Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
-
setSecretRef
public void setSecretRef(LocalObjectReference secretRef)
-
setVolumeName
public void setVolumeName(java.lang.String volumeName)
VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.
-
setVolumeNamespace
public void setVolumeNamespace(java.lang.String 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.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-