Interface QuotaSettings.Builder

    • Method Detail

      • limit

        QuotaSettings.Builder limit​(Integer limit)

        The target maximum number of requests that can be made in a given time period.

        Parameters:
        limit - The target maximum number of requests that can be made in a given time period.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • offset

        QuotaSettings.Builder offset​(Integer offset)

        The number of requests subtracted from the given limit in the initial time period.

        Parameters:
        offset - The number of requests subtracted from the given limit in the initial time period.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • period

        QuotaSettings.Builder period​(String period)

        The time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH".

        Parameters:
        period - The time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH".
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        QuotaPeriodType, QuotaPeriodType
      • period

        QuotaSettings.Builder period​(QuotaPeriodType period)

        The time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH".

        Parameters:
        period - The time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH".
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        QuotaPeriodType, QuotaPeriodType