Class ShareFileCreateOptions

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

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

    • ShareFileCreateOptions

      public ShareFileCreateOptions(long size)
      Creates a new instance of ShareFileCreateOptions.
      Parameters:
      size - Specifies the maximum size for the file share.
  • Method Details

    • getSize

      public long getSize()
      Gets the maximum size for the file share.
      Returns:
      Specifies the maximum size for the file share.
    • getShareFileHttpHeaders

      public ShareFileHttpHeaders getShareFileHttpHeaders()
      Gets the file's http headers.
      Returns:
      the file's http headers.
    • setShareFileHttpHeaders

      public ShareFileCreateOptions setShareFileHttpHeaders(ShareFileHttpHeaders headers)
      Sets the file's http headers.
      Parameters:
      headers - the http headers.
      Returns:
      the updated options.
    • getSmbProperties

      public FileSmbProperties getSmbProperties()
      Gets the optional SMB properties to set on the destination file or 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 ShareFileCreateOptions setSmbProperties(FileSmbProperties smbProperties)
      Sets the optional SMB properties to set on the destination file or 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 share.
      Returns:
      Metadata to associate with the share
    • setMetadata

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

      public ShareRequestConditions getRequestConditions()
      Returns:
      ShareRequestConditions
    • setRequestConditions

      public ShareFileCreateOptions setRequestConditions(ShareRequestConditions requestConditions)
      Parameters:
      requestConditions - ShareRequestConditions
      Returns:
      The updated options.
    • getFilePermission

      public String getFilePermission()
      Gets the file permission.
      Returns:
      file permission.
    • setFilePermission

      public ShareFileCreateOptions setFilePermission(String filePermissionKey)
      Sets the file permission.
      Parameters:
      filePermissionKey - the file permission.
      Returns:
      The updated options.
    • getFilePermissionFormat

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

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

      public FilePosixProperties getPosixProperties()
      Optional properties to set on NFS files. Note that this property is only applicable to files created in NFS shares.
      Returns:
      FilePosixProperties
    • setPosixProperties

      public ShareFileCreateOptions setPosixProperties(FilePosixProperties posixProperties)
      Optional properties to set on NFS files. Note that this property is only applicable to files created in NFS shares.
      Parameters:
      posixProperties - FilePosixProperties
      Returns:
      The updated options.