Class QuotaRule.Builder

  • Enclosing class:
    QuotaRule

    public static class QuotaRule.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public QuotaRule.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 QuotaRule.Builder fileSystemId​(String fileSystemId)
        The OCID of the file System.
        Parameters:
        fileSystemId - the value to set
        Returns:
        this builder
      • principalType

        public QuotaRule.Builder principalType​(QuotaRule.PrincipalType principalType)
        The type of the owner of this quota rule and usage.
        Parameters:
        principalType - the value to set
        Returns:
        this builder
      • principalId

        public QuotaRule.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 QuotaRule.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 QuotaRule.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
      • quotaLimitInGigabytes

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

        public QuotaRule.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 QuotaRule.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