Class V1ISCSIPersistentVolumeSource

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

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1ISCSIPersistentVolumeSource extends Object
ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.
  • Field Details

  • Constructor Details

    • V1ISCSIPersistentVolumeSource

      public V1ISCSIPersistentVolumeSource(String iqn, Integer lun, String targetPortal)
  • Method Details

    • getIqn

      public String getIqn()
      iqn is Target iSCSI Qualified Name.
      Returns:
      the iqn property value
    • setIqn

      public void setIqn(String iqn)
      Set the iqn property value
      Parameters:
      iqn - property value to set
    • iqn

      Set iqn in a chainable fashion.
      Returns:
      The same instance of V1ISCSIPersistentVolumeSource for chaining.
    • getLun

      public Integer getLun()
      lun is iSCSI Target Lun number.
      Returns:
      the lun property value
    • setLun

      public void setLun(Integer lun)
      Set the lun property value
      Parameters:
      lun - property value to set
    • lun

      Set lun in a chainable fashion.
      Returns:
      The same instance of V1ISCSIPersistentVolumeSource for chaining.
    • getTargetPortal

      public String getTargetPortal()
      targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).
      Returns:
      the targetPortal property value
    • setTargetPortal

      public void setTargetPortal(String targetPortal)
      Set the targetPortal property value
      Parameters:
      targetPortal - property value to set
    • targetPortal

      public V1ISCSIPersistentVolumeSource targetPortal(String targetPortal)
      Set targetPortal in a chainable fashion.
      Returns:
      The same instance of V1ISCSIPersistentVolumeSource for chaining.
    • getChapAuthDiscovery

      public Boolean getChapAuthDiscovery()
      chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication
      Returns:
      the chapAuthDiscovery property value
    • setChapAuthDiscovery

      public void setChapAuthDiscovery(Boolean chapAuthDiscovery)
      Set the chapAuthDiscovery property value
      Parameters:
      chapAuthDiscovery - property value to set
    • chapAuthDiscovery

      public V1ISCSIPersistentVolumeSource chapAuthDiscovery(Boolean chapAuthDiscovery)
      Set chapAuthDiscovery in a chainable fashion.
      Returns:
      The same instance of V1ISCSIPersistentVolumeSource for chaining.
    • getChapAuthSession

      public Boolean getChapAuthSession()
      chapAuthSession defines whether support iSCSI Session CHAP authentication
      Returns:
      the chapAuthSession property value
    • setChapAuthSession

      public void setChapAuthSession(Boolean chapAuthSession)
      Set the chapAuthSession property value
      Parameters:
      chapAuthSession - property value to set
    • chapAuthSession

      public V1ISCSIPersistentVolumeSource chapAuthSession(Boolean chapAuthSession)
      Set chapAuthSession in a chainable fashion.
      Returns:
      The same instance of V1ISCSIPersistentVolumeSource for chaining.
    • getFsType

      public String getFsType()
      fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
      Returns:
      the fsType property value
    • setFsType

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

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

      public String getInitiatorName()
      initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface <target portal>:<volume name> will be created for the connection.
      Returns:
      the initiatorName property value
    • setInitiatorName

      public void setInitiatorName(String initiatorName)
      Set the initiatorName property value
      Parameters:
      initiatorName - property value to set
    • initiatorName

      public V1ISCSIPersistentVolumeSource initiatorName(String initiatorName)
      Set initiatorName in a chainable fashion.
      Returns:
      The same instance of V1ISCSIPersistentVolumeSource for chaining.
    • getIscsiInterface

      public String getIscsiInterface()
      iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).
      Returns:
      the iscsiInterface property value
    • setIscsiInterface

      public void setIscsiInterface(String iscsiInterface)
      Set the iscsiInterface property value
      Parameters:
      iscsiInterface - property value to set
    • iscsiInterface

      public V1ISCSIPersistentVolumeSource iscsiInterface(String iscsiInterface)
      Set iscsiInterface in a chainable fashion.
      Returns:
      The same instance of V1ISCSIPersistentVolumeSource for chaining.
    • getPortals

      public List<@NotNull String> getPortals()
      portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).
      Returns:
      the portals property value
    • setPortals

      public void setPortals(List<@NotNull String> portals)
      Set the portals property value
      Parameters:
      portals - property value to set
    • portals

      public V1ISCSIPersistentVolumeSource portals(List<@NotNull String> portals)
      Set portals in a chainable fashion.
      Returns:
      The same instance of V1ISCSIPersistentVolumeSource for chaining.
    • addportalsItem

      public V1ISCSIPersistentVolumeSource addportalsItem(String portalsItem)
      Add an item to the portals property in a chainable fashion.
      Returns:
      The same instance of V1ISCSIPersistentVolumeSource for chaining.
    • getReadOnly

      public Boolean getReadOnly()
      readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.
      Returns:
      the readOnly property value
    • setReadOnly

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

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

      public V1SecretReference getSecretRef()
      Returns:
      the secretRef property value
    • setSecretRef

      public void setSecretRef(V1SecretReference secretRef)
      Set the secretRef property value
      Parameters:
      secretRef - property value to set
    • secretRef

      public V1ISCSIPersistentVolumeSource secretRef(V1SecretReference secretRef)
      Set secretRef in a chainable fashion.
      Returns:
      The same instance of V1ISCSIPersistentVolumeSource 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