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. |
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. |
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:
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:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for