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 TypeMethodDescriptionsetAccessTier
(ShareAccessTier accessTier) setMetadata
(Map<String, String> metadata) setProtocols
(ShareProtocols protocols) setQuotaInGb
(Integer quotaInGb) setRootSquash
(ShareRootSquash rootSquash)
-
Constructor Details
-
ShareCreateOptions
public ShareCreateOptions()
-
-
Method Details
-
getQuotaInGb
- Returns:
- Size in GB to limit the share's growth.
-
setQuotaInGb
- 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
- Returns:
- Metadata to associate with the share
-
setMetadata
- 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
- Returns:
ShareAccessTier
.
-
getProtocols
- Returns:
ShareProtocols
-
getRootSquash
- Returns:
- The root squash to set for the share. Only valid for NFS.
-