Class BetaWorkspaceRateLimit
-
- All Implemented Interfaces:
public final class BetaWorkspaceRateLimit
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaWorkspaceRateLimit.BuilderA builder for BetaWorkspaceRateLimit.
public final classBetaWorkspaceRateLimit.GroupThe rate-limit group this entry's limits apply to.
-
Method Summary
Modifier and Type Method Description final BetaWorkspaceRateLimit.Groupgroup()The rate-limit group this entry's limits apply to. final List<BetaWorkspaceRateLimitValue>limits()The workspace's limiter values for this group. final Optional<List<String>>models()Model names this entry's limits apply to, including aliases. final StringrateLimitId()The idof the organization's RateLimit entry this entry applies to.final StringworkspaceId()ID of the Workspace this entry applies to. final JsonValue_type()Object type. final JsonField<BetaWorkspaceRateLimit.Group>_group()Returns the raw JSON value of group. final JsonField<List<BetaWorkspaceRateLimitValue>>_limits()Returns the raw JSON value of limits. final JsonField<List<String>>_models()Returns the raw JSON value of models. final JsonField<String>_rateLimitId()Returns the raw JSON value of rateLimitId. final JsonField<String>_workspaceId()Returns the raw JSON value of workspaceId. final Map<String, JsonValue>_additionalProperties()final BetaWorkspaceRateLimit.BuildertoBuilder()final BetaWorkspaceRateLimitvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaWorkspaceRateLimit.Builderbuilder()Returns a mutable builder for constructing an instance of BetaWorkspaceRateLimit. -
-
Method Detail
-
group
final BetaWorkspaceRateLimit.Group group()
The rate-limit group this entry's limits apply to.
-
limits
final List<BetaWorkspaceRateLimitValue> limits()
The workspace's limiter values for this group. By default only the limiter types with a workspace-level override are listed. With
include_inheritedset totrue, the limiter types the workspace inherits from the organization are listed too, each marked bysource.
-
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 this workspace has access to, so it can differ between workspaces.
-
rateLimitId
final String rateLimitId()
The
idof the organization's RateLimit entry this entry applies to.
-
workspaceId
final String workspaceId()
ID of the Workspace this entry applies to.
-
_type
final JsonValue _type()
Object type. Always
workspace_rate_limitfor workspace rate-limit entries.Expected to always return the following:
JsonValue.from("workspace_rate_limit")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_group
final JsonField<BetaWorkspaceRateLimit.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<BetaWorkspaceRateLimitValue>> _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.
-
_rateLimitId
final JsonField<String> _rateLimitId()
Returns the raw JSON value of rateLimitId.
Unlike rateLimitId, this method doesn't throw if the JSON field has an unexpected type.
-
_workspaceId
final JsonField<String> _workspaceId()
Returns the raw JSON value of workspaceId.
Unlike workspaceId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaWorkspaceRateLimit.Builder toBuilder()
-
validate
final BetaWorkspaceRateLimit 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 BetaWorkspaceRateLimit.Builder builder()
Returns a mutable builder for constructing an instance of BetaWorkspaceRateLimit.
The following fields are required:
.group() .limits() .models() .rateLimitId() .workspaceId()
-
-
-
-