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. |
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 |
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 |
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:
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:
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:
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
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin