Class RateLimitUpdateParams
-
- All Implemented Interfaces:
-
com.anthropic.core.Params
public final class RateLimitUpdateParams implements Params
Set or clear rate-limit overrides for one rate-limit group in a workspace.
Only the limiter types named in
limitschange: an integervaluesets that type's override andnullclears it. Types not named keep their current value. A value above the organization's own limit is stored, but the organization limit still applies, so the lower of the two is enforced.Returns the targeted group's entry with this request applied, in the shape
GET /v1/organizations/workspaces/{workspace_id}/rate_limitsreturns. Changes take effect within about an hour.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRateLimitUpdateParams.BuilderA builder for RateLimitUpdateParams.
public final classRateLimitUpdateParams.Body
-
Method Summary
Modifier and Type Method Description final StringworkspaceId()The ID of the workspace. final Optional<String>rateLimitId()The idof the organization's rate-limit entry to set overrides for.final List<WorkspaceRateLimitUpdateValue>limits()Limits to set or clear. final JsonField<List<WorkspaceRateLimitUpdateValue>>_limits()Returns the raw JSON value of limits. final Map<String, JsonValue>_additionalBodyProperties()final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final RateLimitUpdateParams.BuildertoBuilder()final RateLimitUpdateParams.Body_body()final String_pathParam(Integer index)Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. SpanData_spanData()The data for the OpenTelemetry span of a call to the method with these parameters. Booleanequals(Object other)IntegerhashCode()StringtoString()final static RateLimitUpdateParams.Builderbuilder()Returns a mutable builder for constructing an instance of RateLimitUpdateParams. -
-
Method Detail
-
workspaceId
final String workspaceId()
The ID of the workspace.
-
rateLimitId
final Optional<String> rateLimitId()
The
idof the organization's rate-limit entry to set overrides for.
-
limits
final List<WorkspaceRateLimitUpdateValue> limits()
Limits to set or clear. Unspecified limit types are unchanged.
-
_limits
final JsonField<List<WorkspaceRateLimitUpdateValue>> _limits()
Returns the raw JSON value of limits.
Unlike limits, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_additionalHeaders
final Headers _additionalHeaders()
Additional headers to send with the request.
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
Additional query param to send with the request.
-
toBuilder
final RateLimitUpdateParams.Builder toBuilder()
-
_body
final RateLimitUpdateParams.Body _body()
-
_pathParam
final String _pathParam(Integer index)
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
_spanData
SpanData _spanData()
The data for the OpenTelemetry span of a call to the method with these parameters.
-
builder
final static RateLimitUpdateParams.Builder builder()
Returns a mutable builder for constructing an instance of RateLimitUpdateParams.
The following fields are required:
.workspaceId() .limits()
-
-
-
-