Class QuotaRuleSummary.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public QuotaRuleSummary.Builder id​(String id)
        The identifier of the quota rule.

        It is the base64 encoded string of the tuple <principalId, principalType, isHardQuota>.

        Parameters:
        id - the value to set
        Returns:
        this builder
      • fileSystemId

        public QuotaRuleSummary.Builder fileSystemId​(String fileSystemId)
        The OCID of the file system.
        Parameters:
        fileSystemId - the value to set
        Returns:
        this builder
      • principalId

        public QuotaRuleSummary.Builder principalId​(Integer principalId)
        An identifier for the user or the group associated with quota rule and usage.

        UNIX-like operating systems use this integer value to identify a user or group to manage access control.

        Parameters:
        principalId - the value to set
        Returns:
        this builder
      • isHardQuota

        public QuotaRuleSummary.Builder isHardQuota​(Boolean isHardQuota)
        Whether the quota rule will be enforced.

        If isHardQuota is true, the quota rule is enforced so that the write is blocked if usage exceeds the hard quota limit. If isHardQuota is false, writes succeed even if usage exceeds the soft quota limit, but the quota rule is violated.

        Parameters:
        isHardQuota - the value to set
        Returns:
        this builder
      • displayName

        public QuotaRuleSummary.Builder displayName​(String displayName)
        A user-friendly name.

        It does not have to be unique, and it is changeable. Avoid entering confidential information. Example: UserXYZ’s quota

        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • usageInBytes

        public QuotaRuleSummary.Builder usageInBytes​(Long usageInBytes)
        The usage value corresponding to this principal in bytes.
        Parameters:
        usageInBytes - the value to set
        Returns:
        this builder
      • quotaLimitInGigabytes

        public QuotaRuleSummary.Builder quotaLimitInGigabytes​(Integer quotaLimitInGigabytes)
        The value of the quota rule in gigabytes.
        Parameters:
        quotaLimitInGigabytes - the value to set
        Returns:
        this builder
      • timeCreated

        public QuotaRuleSummary.Builder timeCreated​(Date timeCreated)
        The date and time the quota rule was created, expressed in RFC 3339 timestamp format.

        Example: 2016-08-25T21:10:29.600Z

        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • timeUpdated

        public QuotaRuleSummary.Builder timeUpdated​(Date timeUpdated)
        The date and time the quota rule was last updated, expressed in RFC 3339 timestamp format.

        Example: 2016-08-25T21:10:29.600Z

        Parameters:
        timeUpdated - the value to set
        Returns:
        this builder
      • areViolatorsOnly

        public QuotaRuleSummary.Builder areViolatorsOnly​(Boolean areViolatorsOnly)
        An option to display only the users or groups that violate their quota rules.

        If areViolatorsOnly is false, results report all the quota and usage. If areViolatorsOnly is true, results only report the quota and usage for the users or groups that violate their quota rules.

        Parameters:
        areViolatorsOnly - the value to set
        Returns:
        this builder