Class CSIPersistentVolumeSource
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.core.v1.CSIPersistentVolumeSource
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class CSIPersistentVolumeSource extends java.lang.Object implements com.marcnuri.yakc.model.Model
Represents storage that is managed by an external CSI volume driver (Beta feature)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CSIPersistentVolumeSource.Builder
-
Constructor Summary
Constructors Constructor Description CSIPersistentVolumeSource()
CSIPersistentVolumeSource(SecretReference controllerExpandSecretRef, SecretReference controllerPublishSecretRef, @NonNull java.lang.String driver, java.lang.String fsType, SecretReference nodePublishSecretRef, SecretReference nodeStageSecretRef, java.lang.Boolean readOnly, java.util.Map<java.lang.String,java.lang.String> volumeAttributes, @NonNull java.lang.String volumeHandle)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CSIPersistentVolumeSource.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
SecretReference
getControllerExpandSecretRef()
SecretReference
getControllerPublishSecretRef()
@NonNull java.lang.String
getDriver()
Driver is the name of the driver to use for this volume.java.lang.String
getFsType()
Filesystem type to mount.SecretReference
getNodePublishSecretRef()
SecretReference
getNodeStageSecretRef()
java.lang.Boolean
getReadOnly()
Optional: The value to pass to ControllerPublishVolumeRequest.java.util.Map<java.lang.String,java.lang.String>
getVolumeAttributes()
Attributes of the volume to publish.@NonNull java.lang.String
getVolumeHandle()
VolumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls.int
hashCode()
void
setControllerExpandSecretRef(SecretReference controllerExpandSecretRef)
void
setControllerPublishSecretRef(SecretReference controllerPublishSecretRef)
void
setDriver(@NonNull java.lang.String driver)
Driver is the name of the driver to use for this volume.void
setFsType(java.lang.String fsType)
Filesystem type to mount.void
setNodePublishSecretRef(SecretReference nodePublishSecretRef)
void
setNodeStageSecretRef(SecretReference nodeStageSecretRef)
void
setReadOnly(java.lang.Boolean readOnly)
Optional: The value to pass to ControllerPublishVolumeRequest.void
setVolumeAttributes(java.util.Map<java.lang.String,java.lang.String> volumeAttributes)
Attributes of the volume to publish.void
setVolumeHandle(@NonNull java.lang.String volumeHandle)
VolumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls.CSIPersistentVolumeSource.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
CSIPersistentVolumeSource
public CSIPersistentVolumeSource(SecretReference controllerExpandSecretRef, SecretReference controllerPublishSecretRef, @NonNull @NonNull java.lang.String driver, java.lang.String fsType, SecretReference nodePublishSecretRef, SecretReference nodeStageSecretRef, java.lang.Boolean readOnly, java.util.Map<java.lang.String,java.lang.String> volumeAttributes, @NonNull @NonNull java.lang.String volumeHandle)
-
CSIPersistentVolumeSource
public CSIPersistentVolumeSource()
-
-
Method Detail
-
builder
public static CSIPersistentVolumeSource.Builder builder()
-
toBuilder
public CSIPersistentVolumeSource.Builder toBuilder()
-
getControllerExpandSecretRef
public SecretReference getControllerExpandSecretRef()
-
getControllerPublishSecretRef
public SecretReference getControllerPublishSecretRef()
-
getDriver
@NonNull public @NonNull java.lang.String getDriver()
Driver is the name of the driver to use for this volume. Required.
-
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".
-
getNodePublishSecretRef
public SecretReference getNodePublishSecretRef()
-
getNodeStageSecretRef
public SecretReference getNodeStageSecretRef()
-
getReadOnly
public java.lang.Boolean getReadOnly()
Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write).
-
getVolumeAttributes
public java.util.Map<java.lang.String,java.lang.String> getVolumeAttributes()
Attributes of the volume to publish.
-
getVolumeHandle
@NonNull public @NonNull java.lang.String getVolumeHandle()
VolumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required.
-
setControllerExpandSecretRef
public void setControllerExpandSecretRef(SecretReference controllerExpandSecretRef)
-
setControllerPublishSecretRef
public void setControllerPublishSecretRef(SecretReference controllerPublishSecretRef)
-
setDriver
public void setDriver(@NonNull @NonNull java.lang.String driver)
Driver is the name of the driver to use for this volume. Required.
-
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".
-
setNodePublishSecretRef
public void setNodePublishSecretRef(SecretReference nodePublishSecretRef)
-
setNodeStageSecretRef
public void setNodeStageSecretRef(SecretReference nodeStageSecretRef)
-
setReadOnly
public void setReadOnly(java.lang.Boolean readOnly)
Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write).
-
setVolumeAttributes
public void setVolumeAttributes(java.util.Map<java.lang.String,java.lang.String> volumeAttributes)
Attributes of the volume to publish.
-
setVolumeHandle
public void setVolumeHandle(@NonNull @NonNull java.lang.String volumeHandle)
VolumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required.
-
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
-
-