Class ShareCreateOptions


  • public class ShareCreateOptions
    extends Object
    Extended options that may be passed when creating a share.
    • Constructor Detail

      • ShareCreateOptions

        public ShareCreateOptions()
    • Method Detail

      • getQuotaInGb

        public Integer getQuotaInGb()
        Returns:
        Size in GB to limit the share's growth.
      • setQuotaInGb

        public ShareCreateOptions setQuotaInGb​(Integer quotaInGb)
        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

        public Map<String,​String> getMetadata()
        Returns:
        Metadata to associate with the share
      • setMetadata

        public ShareCreateOptions setMetadata​(Map<String,​String> metadata)
        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.
      • getRootSquash

        public ShareRootSquash getRootSquash()
        Returns:
        The root squash to set for the share. Only valid for NFS.
      • setRootSquash

        public ShareCreateOptions setRootSquash​(ShareRootSquash rootSquash)
        Parameters:
        rootSquash - The root squash to set for the share. Only valid for NFS.
        Returns:
        The updated options.