Class RateLimitsUpdatedEvent.RateLimit.Builder
-
- All Implemented Interfaces:
public final class RateLimitsUpdatedEvent.RateLimit.Builder
A builder for RateLimit.
-
-
Method Summary
-
-
Method Detail
-
limit
final RateLimitsUpdatedEvent.RateLimit.Builder limit(Long limit)
The maximum allowed value for the rate limit.
-
limit
final RateLimitsUpdatedEvent.RateLimit.Builder limit(JsonField<Long> limit)
Sets Builder.limit to an arbitrary JSON value.
You should usually call Builder.limit with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
name
final RateLimitsUpdatedEvent.RateLimit.Builder name(RateLimitsUpdatedEvent.RateLimit.Name name)
The name of the rate limit (
requests
,tokens
).
-
name
final RateLimitsUpdatedEvent.RateLimit.Builder name(JsonField<RateLimitsUpdatedEvent.RateLimit.Name> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name with a well-typed Name value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
remaining
final RateLimitsUpdatedEvent.RateLimit.Builder remaining(Long remaining)
The remaining value before the limit is reached.
-
remaining
final RateLimitsUpdatedEvent.RateLimit.Builder remaining(JsonField<Long> remaining)
Sets Builder.remaining to an arbitrary JSON value.
You should usually call Builder.remaining with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
resetSeconds
final RateLimitsUpdatedEvent.RateLimit.Builder resetSeconds(Double resetSeconds)
Seconds until the rate limit resets.
-
resetSeconds
final RateLimitsUpdatedEvent.RateLimit.Builder resetSeconds(JsonField<Double> resetSeconds)
Sets Builder.resetSeconds to an arbitrary JSON value.
You should usually call Builder.resetSeconds with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final RateLimitsUpdatedEvent.RateLimit.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final RateLimitsUpdatedEvent.RateLimit.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RateLimitsUpdatedEvent.RateLimit.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RateLimitsUpdatedEvent.RateLimit.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RateLimitsUpdatedEvent.RateLimit.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final RateLimitsUpdatedEvent.RateLimit build()
Returns an immutable instance of RateLimit.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-