Class ShareCreateOptions

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

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

    • ShareCreateOptions

      public ShareCreateOptions()
      Creates a new instance of ShareCreateOptions.
  • Method Details

    • getQuotaInGb

      public Integer getQuotaInGb()
      Gets the size in GB to limit the share's growth.
      Returns:
      Size in GB to limit the share's growth.
    • setQuotaInGb

      public ShareCreateOptions setQuotaInGb(Integer quotaInGb)
      Sets the size in GB to limit the share's growth.
      Parameters:
      quotaInGb - Size in GB to limit the share's growth. The quota in GB must be between 1 and 5120.
      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 ShareCreateOptions 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.
    • getAccessTier

      public ShareAccessTier getAccessTier()
      Gets the access tier for the share.
      Returns:
      ShareAccessTier.
    • setAccessTier

      public ShareCreateOptions setAccessTier(ShareAccessTier accessTier)
      Sets the access tier for the share.
      Parameters:
      accessTier - ShareAccessTier.
      Returns:
      The updated options.
    • getProtocols

      public ShareProtocols getProtocols()
      Gets the protocols to enable on the share.
      Returns:
      ShareProtocols
    • setProtocols

      public ShareCreateOptions setProtocols(ShareProtocols protocols)
      Sets the protocols to enable on the share.
      Parameters:
      protocols - ShareProtocols
      Returns:
      The updated options.
    • getRootSquash

      public ShareRootSquash getRootSquash()
      Gets the root squash to set for the share. Only valid for NFS.
      Returns:
      The root squash to set for the share. Only valid for NFS.
    • setRootSquash

      public ShareCreateOptions setRootSquash(ShareRootSquash rootSquash)
      Sets the root squash to set for the share. Only valid for NFS.
      Parameters:
      rootSquash - The root squash to set for the share. Only valid for NFS.
      Returns:
      The updated options.
    • isSnapshotVirtualDirectoryAccessEnabled

      public Boolean isSnapshotVirtualDirectoryAccessEnabled()
      Get the enableSnapshotVirtualDirectoryAccess property: The EnableSnapshotVirtualDirectoryAccess property. Optional. Supported in version 2023-08-03 and above. Only applicable for premium file storage accounts. Specifies whether the snapshot virtual directory should be accessible at the root of share mount point when NFS is enabled. If not specified, the default is true.
      Returns:
      the enableSnapshotVirtualDirectoryAccess value.
    • setSnapshotVirtualDirectoryAccessEnabled

      public ShareCreateOptions setSnapshotVirtualDirectoryAccessEnabled(Boolean snapshotVirtualDirectoryAccessEnabled)
      Set the enableSnapshotVirtualDirectoryAccess property: Optional. Supported in version 2023-08-03 and above. Only applicable for premium file storage accounts. Specifies whether the snapshot virtual directory should be accessible at the root of share mount point when NFS is enabled. If not specified, the default is true.
      Parameters:
      snapshotVirtualDirectoryAccessEnabled - the enableSnapshotVirtualDirectoryAccess value to set.
      Returns:
      the ShareCreateOptions object itself.