Class V1CSIPersistentVolumeSource

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1CSIPersistentVolumeSource

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1CSIPersistentVolumeSource extends Object
Represents storage that is managed by an external CSI volume driver (Beta feature)
  • Field Details

  • Constructor Details

    • V1CSIPersistentVolumeSource

      public V1CSIPersistentVolumeSource(String driver, String volumeHandle)
  • Method Details

    • getDriver

      public String getDriver()
      driver is the name of the driver to use for this volume. Required.
      Returns:
      the driver property value
    • setDriver

      public void setDriver(String driver)
      Set the driver property value
      Parameters:
      driver - property value to set
    • driver

      public V1CSIPersistentVolumeSource driver(String driver)
      Set driver in a chainable fashion.
      Returns:
      The same instance of V1CSIPersistentVolumeSource for chaining.
    • getVolumeHandle

      public 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.
      Returns:
      the volumeHandle property value
    • setVolumeHandle

      public void setVolumeHandle(String volumeHandle)
      Set the volumeHandle property value
      Parameters:
      volumeHandle - property value to set
    • volumeHandle

      public V1CSIPersistentVolumeSource volumeHandle(String volumeHandle)
      Set volumeHandle in a chainable fashion.
      Returns:
      The same instance of V1CSIPersistentVolumeSource for chaining.
    • getControllerExpandSecretRef

      public V1SecretReference getControllerExpandSecretRef()
      Returns:
      the controllerExpandSecretRef property value
    • setControllerExpandSecretRef

      public void setControllerExpandSecretRef(V1SecretReference controllerExpandSecretRef)
      Set the controllerExpandSecretRef property value
      Parameters:
      controllerExpandSecretRef - property value to set
    • controllerExpandSecretRef

      public V1CSIPersistentVolumeSource controllerExpandSecretRef(V1SecretReference controllerExpandSecretRef)
      Set controllerExpandSecretRef in a chainable fashion.
      Returns:
      The same instance of V1CSIPersistentVolumeSource for chaining.
    • getControllerPublishSecretRef

      public V1SecretReference getControllerPublishSecretRef()
      Returns:
      the controllerPublishSecretRef property value
    • setControllerPublishSecretRef

      public void setControllerPublishSecretRef(V1SecretReference controllerPublishSecretRef)
      Set the controllerPublishSecretRef property value
      Parameters:
      controllerPublishSecretRef - property value to set
    • controllerPublishSecretRef

      public V1CSIPersistentVolumeSource controllerPublishSecretRef(V1SecretReference controllerPublishSecretRef)
      Set controllerPublishSecretRef in a chainable fashion.
      Returns:
      The same instance of V1CSIPersistentVolumeSource for chaining.
    • getFsType

      public String getFsType()
      fsType to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\".
      Returns:
      the fsType property value
    • setFsType

      public void setFsType(String fsType)
      Set the fsType property value
      Parameters:
      fsType - property value to set
    • fsType

      public V1CSIPersistentVolumeSource fsType(String fsType)
      Set fsType in a chainable fashion.
      Returns:
      The same instance of V1CSIPersistentVolumeSource for chaining.
    • getNodeExpandSecretRef

      public V1SecretReference getNodeExpandSecretRef()
      Returns:
      the nodeExpandSecretRef property value
    • setNodeExpandSecretRef

      public void setNodeExpandSecretRef(V1SecretReference nodeExpandSecretRef)
      Set the nodeExpandSecretRef property value
      Parameters:
      nodeExpandSecretRef - property value to set
    • nodeExpandSecretRef

      public V1CSIPersistentVolumeSource nodeExpandSecretRef(V1SecretReference nodeExpandSecretRef)
      Set nodeExpandSecretRef in a chainable fashion.
      Returns:
      The same instance of V1CSIPersistentVolumeSource for chaining.
    • getNodePublishSecretRef

      public V1SecretReference getNodePublishSecretRef()
      Returns:
      the nodePublishSecretRef property value
    • setNodePublishSecretRef

      public void setNodePublishSecretRef(V1SecretReference nodePublishSecretRef)
      Set the nodePublishSecretRef property value
      Parameters:
      nodePublishSecretRef - property value to set
    • nodePublishSecretRef

      public V1CSIPersistentVolumeSource nodePublishSecretRef(V1SecretReference nodePublishSecretRef)
      Set nodePublishSecretRef in a chainable fashion.
      Returns:
      The same instance of V1CSIPersistentVolumeSource for chaining.
    • getNodeStageSecretRef

      public V1SecretReference getNodeStageSecretRef()
      Returns:
      the nodeStageSecretRef property value
    • setNodeStageSecretRef

      public void setNodeStageSecretRef(V1SecretReference nodeStageSecretRef)
      Set the nodeStageSecretRef property value
      Parameters:
      nodeStageSecretRef - property value to set
    • nodeStageSecretRef

      public V1CSIPersistentVolumeSource nodeStageSecretRef(V1SecretReference nodeStageSecretRef)
      Set nodeStageSecretRef in a chainable fashion.
      Returns:
      The same instance of V1CSIPersistentVolumeSource for chaining.
    • getReadOnly

      public Boolean getReadOnly()
      readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write).
      Returns:
      the readOnly property value
    • setReadOnly

      public void setReadOnly(Boolean readOnly)
      Set the readOnly property value
      Parameters:
      readOnly - property value to set
    • readOnly

      public V1CSIPersistentVolumeSource readOnly(Boolean readOnly)
      Set readOnly in a chainable fashion.
      Returns:
      The same instance of V1CSIPersistentVolumeSource for chaining.
    • getVolumeAttributes

      public Map<String,@NotNull String> getVolumeAttributes()
      volumeAttributes of the volume to publish.
      Returns:
      the volumeAttributes property value
    • setVolumeAttributes

      public void setVolumeAttributes(Map<String,@NotNull String> volumeAttributes)
      Set the volumeAttributes property value
      Parameters:
      volumeAttributes - property value to set
    • volumeAttributes

      public V1CSIPersistentVolumeSource volumeAttributes(Map<String,@NotNull String> volumeAttributes)
      Set volumeAttributes in a chainable fashion.
      Returns:
      The same instance of V1CSIPersistentVolumeSource for chaining.
    • putvolumeAttributesItem

      public V1CSIPersistentVolumeSource putvolumeAttributesItem(String key, String volumeAttributesItem)
      Set the value for the key for the volumeAttributes map property in a chainable fashion.
      Returns:
      The same instance of V1CSIPersistentVolumeSource for chaining.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object