Class BetaOrganizationRateLimit
-
- All Implemented Interfaces:
public final class BetaOrganizationRateLimit
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaOrganizationRateLimit.BuilderA builder for BetaOrganizationRateLimit.
public final classBetaOrganizationRateLimit.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 BetaOrganizationRateLimit.Groupgroup()The rate-limit group this entry's limits apply to. final List<BetaOrganizationRateLimitValue>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<BetaOrganizationRateLimit.Group>_group()Returns the raw JSON value of group. final JsonField<List<BetaOrganizationRateLimitValue>>_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 BetaOrganizationRateLimit.BuildertoBuilder()final BetaOrganizationRateLimitvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaOrganizationRateLimit.Builderbuilder()Returns a mutable builder for constructing an instance of BetaOrganizationRateLimit. -
-
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 BetaOrganizationRateLimit.Group group()
The rate-limit group this entry's limits apply to.
-
limits
final List<BetaOrganizationRateLimitValue> 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<BetaOrganizationRateLimit.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<BetaOrganizationRateLimitValue>> _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 BetaOrganizationRateLimit.Builder toBuilder()
-
validate
final BetaOrganizationRateLimit 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 BetaOrganizationRateLimit.Builder builder()
Returns a mutable builder for constructing an instance of BetaOrganizationRateLimit.
The following fields are required:
.id() .group() .limits() .models()
-
-
-
-