Class WorkspaceListParams
-
- All Implemented Interfaces:
-
com.anthropic.core.Params
public final class WorkspaceListParams implements Params
List Workspaces
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classWorkspaceListParams.BuilderA builder for WorkspaceListParams.
-
Method Summary
Modifier and Type Method Description final Optional<String>afterId()ID of the object to use as a cursor for pagination. final Optional<String>beforeId()ID of the object to use as a cursor for pagination. final Optional<List<String>>ids()Only the Workspaces with these IDs, at most 100. final Optional<Boolean>includeArchived()Whether to include Workspaces that have been archived in the response final Optional<Boolean>includeDefault()Whether to include the organization's default Workspace in the response final Optional<Long>limit()Number of items to return per page. final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final WorkspaceListParams.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 WorkspaceListParamsnone()final static WorkspaceListParams.Builderbuilder()Returns a mutable builder for constructing an instance of WorkspaceListParams. -
-
Method Detail
-
afterId
final Optional<String> afterId()
ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately after this object.
-
beforeId
final Optional<String> beforeId()
ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately before this object.
-
ids
final Optional<List<String>> ids()
Only the Workspaces with these IDs, at most 100.
include_archivedandinclude_defaultstill apply, and IDs of Workspaces the caller can't list are left out.
-
includeArchived
final Optional<Boolean> includeArchived()
Whether to include Workspaces that have been archived in the response
-
includeDefault
final Optional<Boolean> includeDefault()
Whether to include the organization's default Workspace in the response
-
limit
final Optional<Long> limit()
Number of items to return per page.
Defaults to
20. Ranges from1to1000.
-
_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 WorkspaceListParams.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 WorkspaceListParams none()
-
builder
final static WorkspaceListParams.Builder builder()
Returns a mutable builder for constructing an instance of WorkspaceListParams.
-
-
-
-