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. |
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 |
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:
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:
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:
Applies to
Azure SDK for Java