Class V1NFSVolumeSource

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

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1NFSVolumeSource extends Object
Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.
  • Field Details

  • Constructor Details

    • V1NFSVolumeSource

      public V1NFSVolumeSource(String path, String server)
  • Method Details

    • getPath

      public String getPath()
      path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
      Returns:
      the path property value
    • setPath

      public void setPath(String path)
      Set the path property value
    • path

      public V1NFSVolumeSource path(String path)
      Set path in a chainable fashion.
      Returns:
      The same instance of V1NFSVolumeSource for chaining.
    • getReadOnly

      public Boolean getReadOnly()
      readOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
      Returns:
      the readOnly property value
    • setReadOnly

      public void setReadOnly(Boolean readOnly)
      Set the readOnly property value
    • readOnly

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

      public String getServer()
      server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
      Returns:
      the server property value
    • setServer

      public void setServer(String server)
      Set the server property value
    • server

      public V1NFSVolumeSource server(String server)
      Set server in a chainable fashion.
      Returns:
      The same instance of V1NFSVolumeSource 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