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