Class ShareDirectoryCreateOptions

java.lang.Object
com.azure.storage.file.share.options.ShareDirectoryCreateOptions

public class ShareDirectoryCreateOptions extends Object
Extended options that may be passed when creating a share directory.
  • Constructor Details

  • Method Details

    • getFilePermission

      public String getFilePermission()
      Gets the file permission key.
      Returns:
      The file's permission key.
    • setFilePermission

      public ShareDirectoryCreateOptions setFilePermission(String filePermissionKey)
      Sets the file permission key.
      Parameters:
      filePermissionKey - The file permission key.
      Returns:
      the updated options.
    • getSmbProperties

      public FileSmbProperties getSmbProperties()
      Gets the SMB properties to set on the destination directory.
      Returns:
      Optional SMB properties to set on the destination file or directory. The only properties that are considered are file attributes, file creation time, file last write time, and file permission key. The rest are ignored.
    • setSmbProperties

      public ShareDirectoryCreateOptions setSmbProperties(FileSmbProperties smbProperties)
      Sets the SMB properties to set on the destination directory.
      Parameters:
      smbProperties - Optional SMB properties to set on the destination file or directory. The only properties that are considered are file attributes, file creation time, file last write time, and file permission key. The rest are ignored.
      Returns:
      The updated options.
    • getMetadata

      public Map<String,String> getMetadata()
      Gets the metadata to associate with the directory.
      Returns:
      Metadata to associate with the directory.
    • setMetadata

      public ShareDirectoryCreateOptions setMetadata(Map<String,String> metadata)
      Sets the metadata to associate with the directory.
      Parameters:
      metadata - Metadata to associate with the directory. If there is leading or trailing whitespace in any metadata key or value, it must be removed or encoded.
      Returns:
      The updated options.
    • getFilePermissionFormat

      public FilePermissionFormat getFilePermissionFormat()
      Gets the file permission format.
      Returns:
      file permission format.
    • setFilePermissionFormat

      public ShareDirectoryCreateOptions setFilePermissionFormat(FilePermissionFormat filePermissionFormat)
      Sets the file permission format.
      Parameters:
      filePermissionFormat - the file permission format.
      Returns:
      The updated options.