Class ShareCreateOptions
java.lang.Object
com.azure.storage.file.share.options.ShareCreateOptions
Extended options that may be passed when creating a share.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the access tier for the share.Gets the metadata to associate with the share.Get the paidBurstingMaxBandwidthMibps property: Optional.Get the paidBurstingMaxIops property: Optional.Gets the protocols to enable on the share.Gets the size in GB to limit the share's growth.Gets the root squash to set for the share.Get the enablePaidBursting property: Optional.Get the enableSnapshotVirtualDirectoryAccess property: The EnableSnapshotVirtualDirectoryAccess property.setAccessTier(ShareAccessTier accessTier) Sets the access tier for the share.setMetadata(Map<String, String> metadata) Sets the metadata to associate with the share.setPaidBurstingEnabled(Boolean enablePaidBursting) Set the enablePaidBursting property: Optional.setPaidBurstingMaxBandwidthMibps(Long paidBurstingMaxBandwidthMibps) Set the paidBurstingMaxBandwidthMibps property: Optional.setPaidBurstingMaxIops(Long paidBurstingMaxIops) Set the paidBurstingMaxIops property: Optional.setProtocols(ShareProtocols protocols) Sets the protocols to enable on the share.setQuotaInGb(Integer quotaInGb) Sets the size in GB to limit the share's growth.setRootSquash(ShareRootSquash rootSquash) Sets the root squash to set for the share.setSnapshotVirtualDirectoryAccessEnabled(Boolean snapshotVirtualDirectoryAccessEnabled) Set the enableSnapshotVirtualDirectoryAccess property: Optional.
-
Constructor Details
-
ShareCreateOptions
public ShareCreateOptions()Creates a new instance ofShareCreateOptions.
-
-
Method Details
-
getQuotaInGb
Gets the size in GB to limit the share's growth.- Returns:
- Size in GB to limit the share's growth.
-
setQuotaInGb
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
Gets the metadata to associate with the share.- Returns:
- Metadata to associate with the share
-
setMetadata
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
Gets the access tier for the share.- Returns:
ShareAccessTier.
-
getProtocols
Gets the protocols to enable on the share.- Returns:
ShareProtocols
-
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.
-
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.
-
isPaidBurstingEnabled
Get the enablePaidBursting property: Optional. Supported in version 2023-11-03 and above. Only applicable for premium file storage accounts. This property enables paid bursting on premium file storage accounts.- Returns:
- the enablePaidBursting value.
-
setPaidBurstingEnabled
Set the enablePaidBursting property: Optional. Supported in version 2023-11-03 and above. Only applicable for premium file storage accounts. This property enables paid bursting on premium file storage accounts.- Parameters:
enablePaidBursting- the enablePaidBursting value to set.- Returns:
- the ShareCreateOptions object itself.
-
getPaidBurstingMaxIops
Get the paidBurstingMaxIops property: Optional. Supported in version 2023-11-03 and above. Only applicable for premium file storage accounts. Default if not specified is the maximum IOPS the file share can support. Current maximum for a file share is 102,400 IOPS.- Returns:
- the paidBurstingMaxIops value.
-
setPaidBurstingMaxIops
Set the paidBurstingMaxIops property: Optional. Supported in version 2023-11-03 and above. Only applicable for premium file storage accounts. Default if not specified is the maximum IOPS the file share can support. Current maximum for a file share is 102,400 IOPS.- Parameters:
paidBurstingMaxIops- the paidBurstingMaxIops value to set.- Returns:
- the ShareCreateOptions object itself.
-
getPaidBurstingMaxBandwidthMibps
Get the paidBurstingMaxBandwidthMibps property: Optional. Supported in version 2023-11-03 and above. Only applicable for premium file storage accounts. Default if not specified is the maximum throughput the file share can support. Current maximum for a file share is 10,340 MiB/sec.- Returns:
- the paidBurstingMaxBandwidthMibps value.
-
setPaidBurstingMaxBandwidthMibps
Set the paidBurstingMaxBandwidthMibps property: Optional. Supported in version 2023-11-03 and above. Only applicable for premium file storage accounts. Default if not specified is the maximum throughput the file share can support. Current maximum for a file share is 10,340 MiB/sec.- Parameters:
paidBurstingMaxBandwidthMibps- the paidBurstingMaxBandwidthMibps value to set.- Returns:
- the ShareCreateOptions object itself.
-