Class RateLimitsUpdatedEvent.RateLimit
-
- All Implemented Interfaces:
public final class RateLimitsUpdatedEvent.RateLimit
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRateLimitsUpdatedEvent.RateLimit.BuilderA builder for RateLimit.
public final classRateLimitsUpdatedEvent.RateLimit.NameThe name of the rate limit (
requests,tokens).
-
Method Summary
Modifier and Type Method Description final Optional<Long>limit()The maximum allowed value for the rate limit. final Optional<RateLimitsUpdatedEvent.RateLimit.Name>name()The name of the rate limit ( requests,tokens).final Optional<Long>remaining()The remaining value before the limit is reached. final Optional<Double>resetSeconds()Seconds until the rate limit resets. final JsonField<Long>_limit()Returns the raw JSON value of limit. final JsonField<RateLimitsUpdatedEvent.RateLimit.Name>_name()Returns the raw JSON value of name. final JsonField<Long>_remaining()Returns the raw JSON value of remaining. final JsonField<Double>_resetSeconds()Returns the raw JSON value of resetSeconds. final Map<String, JsonValue>_additionalProperties()final RateLimitsUpdatedEvent.RateLimit.BuildertoBuilder()final RateLimitsUpdatedEvent.RateLimitvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static RateLimitsUpdatedEvent.RateLimit.Builderbuilder()Returns a mutable builder for constructing an instance of RateLimit. -
-
Method Detail
-
name
final Optional<RateLimitsUpdatedEvent.RateLimit.Name> name()
The name of the rate limit (
requests,tokens).
-
resetSeconds
final Optional<Double> resetSeconds()
Seconds until the rate limit resets.
-
_limit
final JsonField<Long> _limit()
Returns the raw JSON value of limit.
Unlike limit, this method doesn't throw if the JSON field has an unexpected type.
-
_name
final JsonField<RateLimitsUpdatedEvent.RateLimit.Name> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_remaining
final JsonField<Long> _remaining()
Returns the raw JSON value of remaining.
Unlike remaining, this method doesn't throw if the JSON field has an unexpected type.
-
_resetSeconds
final JsonField<Double> _resetSeconds()
Returns the raw JSON value of resetSeconds.
Unlike resetSeconds, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final RateLimitsUpdatedEvent.RateLimit.Builder toBuilder()
-
validate
final RateLimitsUpdatedEvent.RateLimit validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static RateLimitsUpdatedEvent.RateLimit.Builder builder()
Returns a mutable builder for constructing an instance of RateLimit.
-
-
-
-