你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ShareCreateOptions Class
- java.
lang. Object - com.
azure. storage. file. share. options. ShareCreateOptions
- com.
public class ShareCreateOptions
Extended options that may be passed when creating a share.
Constructor Summary
Constructor | Description |
---|---|
ShareCreateOptions() |
Creates a new instance of ShareCreateOptions. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Share |
getAccessTier()
Gets the access tier for the share. |
Map<String,String> |
getMetadata()
Gets the metadata to associate with the share. |
Long |
getPaidBurstingMaxBandwidthMibps()
Get the paid |
Long |
getPaidBurstingMaxIops()
Get the paid |
Share |
getProtocols()
Gets the protocols to enable on the share. |
Long |
getProvisionedMaxBandwidthMibps()
Get the provisioned |
Long |
getProvisionedMaxIops()
Get the provisioned |
Integer |
getQuotaInGb()
Gets the size in GB to limit the share's growth. |
Share |
getRootSquash()
Gets the root squash to set for the share. |
Boolean |
isPaidBurstingEnabled()
Get the enable |
Boolean |
isSnapshotVirtualDirectoryAccessEnabled()
Get the enable |
Share |
setAccessTier(ShareAccessTier accessTier)
Sets the access tier for the share. |
Share |
setMetadata(Map<String,String> metadata)
Sets the metadata to associate with the share. |
Share |
setPaidBurstingEnabled(Boolean enablePaidBursting)
Set the enable |
Share |
setPaidBurstingMaxBandwidthMibps(Long paidBurstingMaxBandwidthMibps)
Set the paid |
Share |
setPaidBurstingMaxIops(Long paidBurstingMaxIops)
Set the paid |
Share |
setProtocols(ShareProtocols protocols)
Sets the protocols to enable on the share. |
Share |
setProvisionedMaxBandwidthMibps(Long provisionedMaxBandwidthMibps)
Set the provisioned |
Share |
setProvisionedMaxIops(Long provisionedMaxIops)
Set the provisioned |
Share |
setQuotaInGb(Integer quotaInGb)
Sets the size in GB to limit the share's growth. |
Share |
setRootSquash(ShareRootSquash rootSquash)
Sets the root squash to set for the share. |
Share |
setSnapshotVirtualDirectoryAccessEnabled(Boolean snapshotVirtualDirectoryAccessEnabled)
Set the enable |
Methods inherited from java.lang.Object
Constructor Details
ShareCreateOptions
public ShareCreateOptions()
Creates a new instance of ShareCreateOptions.
Method Details
getAccessTier
public ShareAccessTier getAccessTier()
Gets the access tier for the share.
Returns:
getMetadata
public Map
Gets the metadata to associate with the share.
Returns:
getPaidBurstingMaxBandwidthMibps
public Long 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:
getPaidBurstingMaxIops
public Long 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:
getProtocols
public ShareProtocols getProtocols()
Gets the protocols to enable on the share.
Returns:
getProvisionedMaxBandwidthMibps
public Long getProvisionedMaxBandwidthMibps()
Get the provisionedMaxBandwidthMibps property: Optional. Only applicable to provisioned v2 storage accounts. The provisioned throughput of the share. For SSD, minimum throughput is 125 MiB/sec and maximum is 10,340 MiB/sec. For HDD, minimum throughput is 60 MiB/sec and maximum is 5,125 MiB/sec.
Returns:
getProvisionedMaxIops
public Long getProvisionedMaxIops()
Get the provisionedMaxIops property: Optional. Only applicable to provisioned v2 storage accounts. The provisioned IOPS of the share. For SSD, minimum IOPS is 3,000 and maximum is 100,000. For HDD, minimum IOPS is 500 and maximum is 50,000.
Returns:
getQuotaInGb
public Integer getQuotaInGb()
Gets the size in GB to limit the share's growth.
Returns:
getRootSquash
public ShareRootSquash getRootSquash()
Gets the root squash to set for the share. Only valid for NFS.
Returns:
isPaidBurstingEnabled
public Boolean 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:
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:
setAccessTier
public ShareCreateOptions setAccessTier(ShareAccessTier accessTier)
Sets the access tier for the share.
Parameters:
Returns:
setMetadata
public ShareCreateOptions setMetadata(Map
Sets the metadata to associate with the share.
Parameters:
Returns:
setPaidBurstingEnabled
public ShareCreateOptions setPaidBurstingEnabled(Boolean enablePaidBursting)
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:
Returns:
setPaidBurstingMaxBandwidthMibps
public ShareCreateOptions setPaidBurstingMaxBandwidthMibps(Long paidBurstingMaxBandwidthMibps)
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:
Returns:
setPaidBurstingMaxIops
public ShareCreateOptions setPaidBurstingMaxIops(Long paidBurstingMaxIops)
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:
Returns:
setProtocols
public ShareCreateOptions setProtocols(ShareProtocols protocols)
Sets the protocols to enable on the share.
Parameters:
Returns:
setProvisionedMaxBandwidthMibps
public ShareCreateOptions setProvisionedMaxBandwidthMibps(Long provisionedMaxBandwidthMibps)
Set the provisionedMaxBandwidthMibps property: Optional. Only applicable to provisioned v2 storage accounts. The provisioned throughput of the share. For SSD, minimum throughput is 125 MiB/sec and maximum is 10,340 MiB/sec. For HDD, minimum throughput is 60 MiB/sec and maximum is 5,125 MiB/sec.
Parameters:
Returns:
setProvisionedMaxIops
public ShareCreateOptions setProvisionedMaxIops(Long provisionedMaxIops)
Set the provisionedMaxIops property: Optional. Only applicable to provisioned v2 storage accounts. The provisioned IOPS of the share. For SSD, minimum IOPS is 3,000 and maximum is 100,000. For HDD, minimum IOPS is 500 and maximum is 50,000.
Parameters:
Returns:
setQuotaInGb
public ShareCreateOptions setQuotaInGb(Integer quotaInGb)
Sets the size in GB to limit the share's growth.
Parameters:
Returns:
setRootSquash
public ShareCreateOptions setRootSquash(ShareRootSquash rootSquash)
Sets the root squash to set for the share. Only valid for NFS.
Parameters:
Returns:
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:
Returns: