Class CSIVolumeSource
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.core.v1.CSIVolumeSource
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class CSIVolumeSource extends java.lang.Object implements com.marcnuri.yakc.model.Model
Represents a source location of a volume to mount, managed by an external CSI driver
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CSIVolumeSource.Builder
-
Constructor Summary
Constructors Constructor Description CSIVolumeSource()
CSIVolumeSource(@NonNull java.lang.String driver, java.lang.String fsType, LocalObjectReference nodePublishSecretRef, java.lang.Boolean readOnly, java.util.Map<java.lang.String,java.lang.String> volumeAttributes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CSIVolumeSource.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
@NonNull java.lang.String
getDriver()
driver is the name of the CSI driver that handles this volume.java.lang.String
getFsType()
fsType to mount.LocalObjectReference
getNodePublishSecretRef()
java.lang.Boolean
getReadOnly()
readOnly specifies a read-only configuration for the volume.java.util.Map<java.lang.String,java.lang.String>
getVolumeAttributes()
volumeAttributes stores driver-specific properties that are passed to the CSI driver.int
hashCode()
void
setDriver(@NonNull java.lang.String driver)
driver is the name of the CSI driver that handles this volume.void
setFsType(java.lang.String fsType)
fsType to mount.void
setNodePublishSecretRef(LocalObjectReference nodePublishSecretRef)
void
setReadOnly(java.lang.Boolean readOnly)
readOnly specifies a read-only configuration for the volume.void
setVolumeAttributes(java.util.Map<java.lang.String,java.lang.String> volumeAttributes)
volumeAttributes stores driver-specific properties that are passed to the CSI driver.CSIVolumeSource.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
CSIVolumeSource
public CSIVolumeSource(@NonNull @NonNull java.lang.String driver, java.lang.String fsType, LocalObjectReference nodePublishSecretRef, java.lang.Boolean readOnly, java.util.Map<java.lang.String,java.lang.String> volumeAttributes)
-
CSIVolumeSource
public CSIVolumeSource()
-
-
Method Detail
-
builder
public static CSIVolumeSource.Builder builder()
-
toBuilder
public CSIVolumeSource.Builder toBuilder()
-
getDriver
@NonNull public @NonNull java.lang.String getDriver()
driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.
-
getFsType
public java.lang.String getFsType()
fsType to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply.
-
getNodePublishSecretRef
public LocalObjectReference getNodePublishSecretRef()
-
getReadOnly
public java.lang.Boolean getReadOnly()
readOnly specifies a read-only configuration for the volume. Defaults to false (read/write).
-
getVolumeAttributes
public java.util.Map<java.lang.String,java.lang.String> getVolumeAttributes()
volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.
-
setDriver
public void setDriver(@NonNull @NonNull java.lang.String driver)
driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.
-
setFsType
public void setFsType(java.lang.String fsType)
fsType to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply.
-
setNodePublishSecretRef
public void setNodePublishSecretRef(LocalObjectReference nodePublishSecretRef)
-
setReadOnly
public void setReadOnly(java.lang.Boolean readOnly)
readOnly specifies a read-only configuration for the volume. Defaults to false (read/write).
-
setVolumeAttributes
public void setVolumeAttributes(java.util.Map<java.lang.String,java.lang.String> volumeAttributes)
volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.
-
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
-
-