Class OrganizationRateLimit
-
- All Implemented Interfaces:
public final class OrganizationRateLimit
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classOrganizationRateLimit.BuilderA builder for OrganizationRateLimit.
public final classOrganizationRateLimit.GroupThe rate-limit group this entry's limits apply to.
-
Method Summary
Modifier and Type Method Description final Stringid()Identifier of this rate-limit entry. final OrganizationRateLimit.Groupgroup()The rate-limit group this entry's limits apply to. final List<OrganizationRateLimitValue>limits()The limiter values that apply to this group. final Optional<List<String>>models()Model names this entry's limits apply to, including aliases. final JsonValue_type()Object type. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<OrganizationRateLimit.Group>_group()Returns the raw JSON value of group. final JsonField<List<OrganizationRateLimitValue>>_limits()Returns the raw JSON value of limits. final JsonField<List<String>>_models()Returns the raw JSON value of models. final Map<String, JsonValue>_additionalProperties()final OrganizationRateLimit.BuildertoBuilder()final OrganizationRateLimitvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static OrganizationRateLimit.Builderbuilder()Returns a mutable builder for constructing an instance of OrganizationRateLimit. -
-
Method Detail
-
id
final String id()
Identifier of this rate-limit entry. It is stable within the organization and differs between organizations; the group's own identifier is
group.id. Pass it asrate_limit_idto set a workspace's overrides for this group.
-
group
final OrganizationRateLimit.Group group()
The rate-limit group this entry's limits apply to.
-
limits
final List<OrganizationRateLimitValue> limits()
The limiter values that apply to this group.
-
models
final Optional<List<String>> models()
Model names this entry's limits apply to, including aliases.
nullwhengroup.typeis not"model_group". The list covers the models your organization has access to, so it can differ between organizations.
-
_type
final JsonValue _type()
Object type. Always
rate_limitfor organization rate-limit entries.Expected to always return the following:
JsonValue.from("rate_limit")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_group
final JsonField<OrganizationRateLimit.Group> _group()
Returns the raw JSON value of group.
Unlike group, this method doesn't throw if the JSON field has an unexpected type.
-
_limits
final JsonField<List<OrganizationRateLimitValue>> _limits()
Returns the raw JSON value of limits.
Unlike limits, this method doesn't throw if the JSON field has an unexpected type.
-
_models
final JsonField<List<String>> _models()
Returns the raw JSON value of models.
Unlike models, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final OrganizationRateLimit.Builder toBuilder()
-
validate
final OrganizationRateLimit 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 OrganizationRateLimit.Builder builder()
Returns a mutable builder for constructing an instance of OrganizationRateLimit.
The following fields are required:
.id() .group() .limits() .models()
-
-
-
-