Class V1NFSVolumeSource

java.lang.Object
io.kubernetes.client.openapi.models.V1NFSVolumeSource

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-12-05T08:14:34.919Z[Etc/UTC]") 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()
  • Method Details

    • path

      public V1NFSVolumeSource path(String path)
    • getPath

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

      public void setPath(String path)
    • readOnly

      public V1NFSVolumeSource readOnly(Boolean readOnly)
    • getReadOnly

      @Nullable 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:
      readOnly
    • setReadOnly

      public void setReadOnly(Boolean readOnly)
    • server

      public V1NFSVolumeSource server(String server)
    • 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:
      server
    • setServer

      public void setServer(String server)
    • 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