Class UserProfileListParams
-
- All Implemented Interfaces:
-
com.anthropic.core.Params
public final class UserProfileListParams implements Params
List User Profiles
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classUserProfileListParams.BuilderA builder for UserProfileListParams.
-
Method Summary
Modifier and Type Method Description final Optional<List<UserProfileEnforcementStatus>>enforcementStatus()Return only the user profiles whose enforcement_statusis one of these values:unrestricted,pending,restrictedorbanned.final Optional<Integer>limit()The maximum number of user profiles to return, from 1 to 100. final Optional<UserProfileListOrder>order()The sort direction, applied to the field that order_byselects.final Optional<UserProfileListOrderBy>orderBy()The field to sort user profiles by, in the direction that ordersets.final Optional<String>page()The cursor for the page to return, taken from next_pagein a previous response.final Optional<String>workspaceId()Optional header to select the Workspace for this request. final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final UserProfileListParams.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 UserProfileListParamsnone()final static UserProfileListParams.Builderbuilder()Returns a mutable builder for constructing an instance of UserProfileListParams. -
-
Method Detail
-
enforcementStatus
final Optional<List<UserProfileEnforcementStatus>> enforcementStatus()
Return only the user profiles whose
enforcement_statusis one of these values:unrestricted,pending,restrictedorbanned. Repeat the parameter to match any of several. With it set, a page may hold fewer thanlimitprofiles, or none, and still carry anext_page: the service examines a bounded number of profiles per request, and only a nullnext_pagemeans the listing is complete. Rejected withinvalid_request_errorunder theuser-profiles-2026-09-04and earlier beta headers. Fails withoverloaded_errorwhen a profile's enforcement actions cannot be read for the moment.
-
limit
final Optional<Integer> limit()
The maximum number of user profiles to return, from 1 to 100. Defaults to 20.
-
order
final Optional<UserProfileListOrder> order()
The sort direction, applied to the field that
order_byselects. Defaults todesc.
-
orderBy
final Optional<UserProfileListOrderBy> orderBy()
The field to sort user profiles by, in the direction that
ordersets. Defaults tocreated_at.
-
page
final Optional<String> page()
The cursor for the page to return, taken from
next_pagein a previous response.Leave it out to get the first page.
-
workspaceId
final Optional<String> workspaceId()
Optional header to select the Workspace for this request. The value is a Workspace ID (for example,
wrkspc_011CZkZaBF1tNoB5wlCeusgy).Only needed for credentials that can act on more than one Workspace. A credential that belongs to a specific Workspace may omit it; if sent, it must match that Workspace.
-
_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 UserProfileListParams.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 UserProfileListParams none()
-
builder
final static UserProfileListParams.Builder builder()
Returns a mutable builder for constructing an instance of UserProfileListParams.
-
-
-
-