Class RateLimitListParams
-
- All Implemented Interfaces:
-
com.anthropic.core.Params
public final class RateLimitListParams implements Params
List a workspace's rate limits.
By default, returns only the groups and limiter types that have a workspace-level override. With
include_inherited=true, returns every group with organization-level limits the workspace can see, listing for each the values it inherits from the organization as well as its own overrides. Each value'ssourcesays which it is.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<String>workspaceId()The ID of the workspace. final Optional<RateLimitListParams.GroupType>groupType()Filter by group type. final Optional<Boolean>includeInherited()Also list the limiter values the workspace inherits from the organization, including groups with no workspace-level override. final Optional<Long>limit()Maximum number of items to return per page. 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()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 RateLimitListParamsnone()final static RateLimitListParams.Builderbuilder()Returns a mutable builder for constructing an instance of RateLimitListParams. -
-
Method Detail
-
workspaceId
final Optional<String> workspaceId()
The ID of the workspace.
-
groupType
final Optional<RateLimitListParams.GroupType> groupType()
Filter by group type.
-
includeInherited
final Optional<Boolean> includeInherited()
Also list the limiter values the workspace inherits from the organization, including groups with no workspace-level override.
-
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.
-
_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()
-
_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.
-
none
final static RateLimitListParams none()
-
builder
final static RateLimitListParams.Builder builder()
Returns a mutable builder for constructing an instance of RateLimitListParams.
-
-
-
-