Class NfsVolumeSource.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • path

        @Stability(Stable)
        public NfsVolumeSource.Builder path​(String path)
        Sets the value of NfsVolumeSource.getPath()
        Parameters:
        path - Path that is exported by the NFS server. This parameter is required. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
        Returns:
        this
      • server

        @Stability(Stable)
        public NfsVolumeSource.Builder server​(String server)
        Sets the value of NfsVolumeSource.getServer()
        Parameters:
        server - Server is the hostname or IP address of the NFS server. This parameter is required. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
        Returns:
        this
      • readOnly

        @Stability(Stable)
        public NfsVolumeSource.Builder readOnly​(Boolean readOnly)
        Parameters:
        readOnly - 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:
        this