Class FilePosixProperties

java.lang.Object
com.azure.storage.file.share.models.FilePosixProperties

public final class FilePosixProperties extends Object
NFS properties. Note that these properties only apply to files or directories in premium NFS file accounts.
  • Constructor Details

    • FilePosixProperties

      public FilePosixProperties()
      Default constructor
  • Method Details

    • getFileMode

      public String getFileMode()
      Gets the file mode permissions.
      Returns:
      the file mode permissions.
    • getOwner

      public String getOwner()
      Gets the owner user identifier (UID).
      Returns:
      the owner user identifier (UID).
    • getGroup

      public String getGroup()
      Gets the owner group identifier (GID).
      Returns:
      the owner group identifier (GID).
    • getFileType

      public NfsFileType getFileType()
      Gets the file type.
      Returns:
      the file type.
    • getLinkCount

      public Long getLinkCount()
      Gets the link count of the file or directory.
      Returns:
      the link count of the file or directory.
    • setFileMode

      public FilePosixProperties setFileMode(String fileMode)
      Optional. Version 2025-05-05 and newer. The mode permissions to be set on the file or directory. This can be in either symbolic or octal notation.

      For more information, see this Wikipedia page.

      Parameters:
      fileMode - The mode permissions to be set on the file or directory.
      Returns:
      the FilePosixProperties object itself.
    • setOwner

      public FilePosixProperties setOwner(String owner)
      Optional. The owner user identifier (UID) to be set on the file or directory. The default value is 0 (root).
      Parameters:
      owner - the owner user identifier (UID) to set.
      Returns:
      the FilePosixProperties object itself.
    • setGroup

      public FilePosixProperties setGroup(String group)
      Optional. The owner group identifier (GID) to be set on the file or directory. The default value is 0 (root group).
      Parameters:
      group - the owner group identifier (GID) to set.
      Returns:
      the FilePosixProperties object itself.