Class RateLimitListParams
-
- All Implemented Interfaces:
-
com.anthropic.core.Params
public final class RateLimitListParams implements Params
List Messages API rate limits for your organization.
Each entry corresponds to one rate-limit group (either a model family or an API-surface category such as the Message Batches API or the web search tool) and contains the set of limiter values that apply to it.
When
limitis omitted, every matching entry is returned in a single page; whenlimittruncates the result, follownext_pageto fetch the remaining entries.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRateLimitListParams.BuilderA builder for RateLimitListParams.
public final classRateLimitListParams.GroupTypeFilter by group type.
-
Method Summary
Modifier and Type Method Description final Optional<RateLimitListParams.GroupType>groupType()Filter by group type. final Optional<Long>limit()Maximum number of items to return per page. final Optional<String>model()Filter to the single entry containing this model. final Optional<String>page()Opaque cursor from a previous response's next_page.final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final RateLimitListParams.BuildertoBuilder()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 RateLimitListParamsnone()final static RateLimitListParams.Builderbuilder()Returns a mutable builder for constructing an instance of RateLimitListParams. -
-
Method Detail
-
groupType
final Optional<RateLimitListParams.GroupType> groupType()
Filter by group type.
-
limit
final Optional<Long> limit()
Maximum number of items to return per page. Ranges from
1to1000.When omitted, every remaining entry is returned in a single page and
next_pageisnull.
-
model
final Optional<String> model()
Filter to the single entry containing this model. Accepts full model names and aliases. Returns 404 if the model is not found or has no rate limits for this organization.
-
_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 RateLimitListParams.Builder toBuilder()
-
_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.
-
none
final static RateLimitListParams none()
-
builder
final static RateLimitListParams.Builder builder()
Returns a mutable builder for constructing an instance of RateLimitListParams.
-
-
-
-