Class BetaAnalyticsUsageGroup.Builder
-
- All Implemented Interfaces:
public final class BetaAnalyticsUsageGroup.BuilderA builder for BetaAnalyticsUsageGroup.
-
-
Method Summary
Modifier and Type Method Description final BetaAnalyticsUsageGroup.Builderactor(BetaAnalyticsActor actor)The identity the usage is attributed to: the user if one is attributed, else the service account, else the federated (cloud-platform) identity, else the API key. final BetaAnalyticsUsageGroup.Builderactor(Optional<BetaAnalyticsActor> actor)Alias for calling Builder.actor with actor.orElse(null).final BetaAnalyticsUsageGroup.Builderactor(JsonField<BetaAnalyticsActor> actor)Sets Builder.actor to an arbitrary JSON value. final BetaAnalyticsUsageGroup.Builderactor(BetaAnalyticsReportUserActor user)Alias for calling actor with BetaAnalyticsActor.ofUser(user).final BetaAnalyticsUsageGroup.Builderactor(BetaAnalyticsServiceAccountActor serviceAccount)Alias for calling actor with BetaAnalyticsActor.ofServiceAccount(serviceAccount).final BetaAnalyticsUsageGroup.Builderactor(BetaAnalyticsFederatedActor federated)Alias for calling actor with BetaAnalyticsActor.ofFederated(federated).final BetaAnalyticsUsageGroup.Builderactor(BetaAnalyticsApiActor api)Alias for calling actor with BetaAnalyticsActor.ofApi(api).final BetaAnalyticsUsageGroup.BuilderactorType(BetaAnalyticsActorType actorType)Kind of identity the usage is attributed to; matches actor.typewhenactoris set.final BetaAnalyticsUsageGroup.BuilderactorType(Optional<BetaAnalyticsActorType> actorType)Alias for calling Builder.actorType with actorType.orElse(null).final BetaAnalyticsUsageGroup.BuilderactorType(JsonField<BetaAnalyticsActorType> actorType)Sets Builder.actorType to an arbitrary JSON value. final BetaAnalyticsUsageGroup.BuilderagentId(String agentId)Claude Managed Agents agent whose session incurred the usage. final BetaAnalyticsUsageGroup.BuilderagentId(Optional<String> agentId)Alias for calling Builder.agentId with agentId.orElse(null).final BetaAnalyticsUsageGroup.BuilderagentId(JsonField<String> agentId)Sets Builder.agentId to an arbitrary JSON value. final BetaAnalyticsUsageGroup.BuilderapiKeyId(String apiKeyId)API key that authenticated the requests, as a tagged API key ID, whichever identity actorresolves to.final BetaAnalyticsUsageGroup.BuilderapiKeyId(Optional<String> apiKeyId)Alias for calling Builder.apiKeyId with apiKeyId.orElse(null).final BetaAnalyticsUsageGroup.BuilderapiKeyId(JsonField<String> apiKeyId)Sets Builder.apiKeyId to an arbitrary JSON value. final BetaAnalyticsUsageGroup.BuilderclaudeTagCategory(BetaAnalyticsClaudeTagCategory claudeTagCategory)Claude Tag (Claude in Slack) spend category: engaged(a person addressed Claude in a channel or thread),proactive(Claude responded without being addressed),scheduled(a scheduled routine ran),monitoring(Claude watching a channel it was asked to monitor), ordm(direct messages with Claude).final BetaAnalyticsUsageGroup.BuilderclaudeTagCategory(Optional<BetaAnalyticsClaudeTagCategory> claudeTagCategory)Alias for calling Builder.claudeTagCategory with claudeTagCategory.orElse(null).final BetaAnalyticsUsageGroup.BuilderclaudeTagCategory(JsonField<BetaAnalyticsClaudeTagCategory> claudeTagCategory)Sets Builder.claudeTagCategory to an arbitrary JSON value. final BetaAnalyticsUsageGroup.BuilderclaudeTagUserId(String claudeTagUserId)Slack user ID (for example U0123ABCDEF) of the member the Claude Tag (Claude in Slack) usage is attributed to, not a claude.ai user ID.final BetaAnalyticsUsageGroup.BuilderclaudeTagUserId(Optional<String> claudeTagUserId)Alias for calling Builder.claudeTagUserId with claudeTagUserId.orElse(null).final BetaAnalyticsUsageGroup.BuilderclaudeTagUserId(JsonField<String> claudeTagUserId)Sets Builder.claudeTagUserId to an arbitrary JSON value. final BetaAnalyticsUsageGroup.BuildercontextWindow(BetaAnalyticsContextWindow contextWindow)Context-window pricing tier of the usage or cost. final BetaAnalyticsUsageGroup.BuildercontextWindow(Optional<BetaAnalyticsContextWindow> contextWindow)Alias for calling Builder.contextWindow with contextWindow.orElse(null).final BetaAnalyticsUsageGroup.BuildercontextWindow(JsonField<BetaAnalyticsContextWindow> contextWindow)Sets Builder.contextWindow to an arbitrary JSON value. final BetaAnalyticsUsageGroup.BuilderdeploymentId(String deploymentId)Deployment that started the Claude Managed Agents session. final BetaAnalyticsUsageGroup.BuilderdeploymentId(Optional<String> deploymentId)Alias for calling Builder.deploymentId with deploymentId.orElse(null).final BetaAnalyticsUsageGroup.BuilderdeploymentId(JsonField<String> deploymentId)Sets Builder.deploymentId to an arbitrary JSON value. final BetaAnalyticsUsageGroup.BuilderenvironmentId(String environmentId)Claude Managed Agents environment the session ran in. final BetaAnalyticsUsageGroup.BuilderenvironmentId(Optional<String> environmentId)Alias for calling Builder.environmentId with environmentId.orElse(null).final BetaAnalyticsUsageGroup.BuilderenvironmentId(JsonField<String> environmentId)Sets Builder.environmentId to an arbitrary JSON value. final BetaAnalyticsUsageGroup.BuilderinferenceGeo(BetaAnalyticsUsageCostInferenceGeo inferenceGeo)Inference region of the usage or cost. final BetaAnalyticsUsageGroup.BuilderinferenceGeo(Optional<BetaAnalyticsUsageCostInferenceGeo> inferenceGeo)Alias for calling Builder.inferenceGeo with inferenceGeo.orElse(null).final BetaAnalyticsUsageGroup.BuilderinferenceGeo(JsonField<BetaAnalyticsUsageCostInferenceGeo> inferenceGeo)Sets Builder.inferenceGeo to an arbitrary JSON value. final BetaAnalyticsUsageGroup.Buildermodel(String model)Model that produced the usage or cost, as a model name in the form the models[]filter accepts (for example,claude-opus-5-5).final BetaAnalyticsUsageGroup.Buildermodel(Optional<String> model)Alias for calling Builder.model with model.orElse(null).final BetaAnalyticsUsageGroup.Buildermodel(JsonField<String> model)Sets Builder.model to an arbitrary JSON value. final BetaAnalyticsUsageGroup.BuilderorganizationId(String organizationId)UUID of the child organization the usage belongs to, on a parent organization's report across its children. final BetaAnalyticsUsageGroup.BuilderorganizationId(Optional<String> organizationId)Alias for calling Builder.organizationId with organizationId.orElse(null).final BetaAnalyticsUsageGroup.BuilderorganizationId(JsonField<String> organizationId)Sets Builder.organizationId to an arbitrary JSON value. final BetaAnalyticsUsageGroup.Builderproduct(String product)Product surface that produced the usage or cost. final BetaAnalyticsUsageGroup.Builderproduct(Optional<String> product)Alias for calling Builder.product with product.orElse(null).final BetaAnalyticsUsageGroup.Builderproduct(JsonField<String> product)Sets Builder.product to an arbitrary JSON value. final BetaAnalyticsUsageGroup.BuilderrbacGroupId(String rbacGroupId)RBAC group (team) the usage is attributed to, in the public tagged rbac_group_...spelling — the same spelling the activity resources use for this key, so the same team has one id across resources and it round-trips as anrbac_group_ids[]filter value.final BetaAnalyticsUsageGroup.BuilderrbacGroupId(Optional<String> rbacGroupId)Alias for calling Builder.rbacGroupId with rbacGroupId.orElse(null).final BetaAnalyticsUsageGroup.BuilderrbacGroupId(JsonField<String> rbacGroupId)Sets Builder.rbacGroupId to an arbitrary JSON value. final BetaAnalyticsUsageGroup.BuilderserviceTier(BetaAnalyticsServiceTier serviceTier)Service tier the usage was served at. final BetaAnalyticsUsageGroup.BuilderserviceTier(Optional<BetaAnalyticsServiceTier> serviceTier)Alias for calling Builder.serviceTier with serviceTier.orElse(null).final BetaAnalyticsUsageGroup.BuilderserviceTier(JsonField<BetaAnalyticsServiceTier> serviceTier)Sets Builder.serviceTier to an arbitrary JSON value. final BetaAnalyticsUsageGroup.BuildersessionId(String sessionId)Claude Managed Agents session that incurred the usage. final BetaAnalyticsUsageGroup.BuildersessionId(Optional<String> sessionId)Alias for calling Builder.sessionId with sessionId.orElse(null).final BetaAnalyticsUsageGroup.BuildersessionId(JsonField<String> sessionId)Sets Builder.sessionId to an arbitrary JSON value. final BetaAnalyticsUsageGroup.BuilderslackChannelId(String slackChannelId)Slack channel the usage originated from. final BetaAnalyticsUsageGroup.BuilderslackChannelId(Optional<String> slackChannelId)Alias for calling Builder.slackChannelId with slackChannelId.orElse(null).final BetaAnalyticsUsageGroup.BuilderslackChannelId(JsonField<String> slackChannelId)Sets Builder.slackChannelId to an arbitrary JSON value. final BetaAnalyticsUsageGroup.Builderspeed(BetaAnalyticsSpeed speed)Inference speed mode of the usage or cost: fastorstandard.final BetaAnalyticsUsageGroup.Builderspeed(Optional<BetaAnalyticsSpeed> speed)Alias for calling Builder.speed with speed.orElse(null).final BetaAnalyticsUsageGroup.Builderspeed(JsonField<BetaAnalyticsSpeed> speed)Sets Builder.speed to an arbitrary JSON value. final BetaAnalyticsUsageGroup.BuilderuserProfileId(String userProfileId)User profile the usage was attributed to, as a tagged uprof_ID.final BetaAnalyticsUsageGroup.BuilderuserProfileId(Optional<String> userProfileId)Alias for calling Builder.userProfileId with userProfileId.orElse(null).final BetaAnalyticsUsageGroup.BuilderuserProfileId(JsonField<String> userProfileId)Sets Builder.userProfileId to an arbitrary JSON value. final BetaAnalyticsUsageGroup.BuilderworkspaceId(String workspaceId)Workspace the usage occurred in, as a tagged workspace ID, including the organization's default workspace. final BetaAnalyticsUsageGroup.BuilderworkspaceId(Optional<String> workspaceId)Alias for calling Builder.workspaceId with workspaceId.orElse(null).final BetaAnalyticsUsageGroup.BuilderworkspaceId(JsonField<String> workspaceId)Sets Builder.workspaceId to an arbitrary JSON value. final BetaAnalyticsUsageGroup.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final BetaAnalyticsUsageGroup.BuilderserviceAccountActor(String serviceAccountId)Alias for calling actor with the following: BetaAnalyticsServiceAccountActor.builder() .serviceAccountId(serviceAccountId) .build()final BetaAnalyticsUsageGroup.BuilderapiActor(String apiKeyId)Alias for calling actor with the following: BetaAnalyticsApiActor.builder() .apiKeyId(apiKeyId) .build()final BetaAnalyticsUsageGroup.BuilderputAdditionalProperty(String key, JsonValue value)final BetaAnalyticsUsageGroup.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final BetaAnalyticsUsageGroup.BuilderremoveAdditionalProperty(String key)final BetaAnalyticsUsageGroup.BuilderremoveAllAdditionalProperties(Set<String> keys)final BetaAnalyticsUsageGroupbuild()Returns an immutable instance of BetaAnalyticsUsageGroup. -
-
Method Detail
-
actor
final BetaAnalyticsUsageGroup.Builder actor(BetaAnalyticsActor actor)
The identity the usage is attributed to: the user if one is attributed, else the service account, else the federated (cloud-platform) identity, else the API key. Populated only when
actoris ingroup_by[]; null for usage with no attributable identity, and for users' and federated identities' usage when the reader is a member who can see only some workspaces. Distinct identities the server cannot render also read null, each as its own row.
-
actor
final BetaAnalyticsUsageGroup.Builder actor(Optional<BetaAnalyticsActor> actor)
Alias for calling Builder.actor with
actor.orElse(null).
-
actor
final BetaAnalyticsUsageGroup.Builder actor(JsonField<BetaAnalyticsActor> actor)
Sets Builder.actor to an arbitrary JSON value.
You should usually call Builder.actor with a well-typed BetaAnalyticsActor value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
actor
final BetaAnalyticsUsageGroup.Builder actor(BetaAnalyticsReportUserActor user)
Alias for calling actor with
BetaAnalyticsActor.ofUser(user).
-
actor
final BetaAnalyticsUsageGroup.Builder actor(BetaAnalyticsServiceAccountActor serviceAccount)
Alias for calling actor with
BetaAnalyticsActor.ofServiceAccount(serviceAccount).
-
actor
final BetaAnalyticsUsageGroup.Builder actor(BetaAnalyticsFederatedActor federated)
Alias for calling actor with
BetaAnalyticsActor.ofFederated(federated).
-
actor
final BetaAnalyticsUsageGroup.Builder actor(BetaAnalyticsApiActor api)
Alias for calling actor with
BetaAnalyticsActor.ofApi(api).
-
actorType
final BetaAnalyticsUsageGroup.Builder actorType(BetaAnalyticsActorType actorType)
Kind of identity the usage is attributed to; matches
actor.typewhenactoris set. Populated only whenactor_typeis ingroup_by[].
-
actorType
final BetaAnalyticsUsageGroup.Builder actorType(Optional<BetaAnalyticsActorType> actorType)
Alias for calling Builder.actorType with
actorType.orElse(null).
-
actorType
final BetaAnalyticsUsageGroup.Builder actorType(JsonField<BetaAnalyticsActorType> actorType)
Sets Builder.actorType to an arbitrary JSON value.
You should usually call Builder.actorType with a well-typed BetaAnalyticsActorType value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
agentId
final BetaAnalyticsUsageGroup.Builder agentId(String agentId)
Claude Managed Agents agent whose session incurred the usage. Populated only when
agent_idis ingroup_by[]; null for usage outside a managed session.
-
agentId
final BetaAnalyticsUsageGroup.Builder agentId(Optional<String> agentId)
Alias for calling Builder.agentId with
agentId.orElse(null).
-
agentId
final BetaAnalyticsUsageGroup.Builder agentId(JsonField<String> agentId)
Sets Builder.agentId to an arbitrary JSON value.
You should usually call Builder.agentId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
apiKeyId
final BetaAnalyticsUsageGroup.Builder apiKeyId(String apiKeyId)
API key that authenticated the requests, as a tagged API key ID, whichever identity
actorresolves to. Populated only whenapi_key_idis ingroup_by[]; null for usage not authenticated by an API key.
-
apiKeyId
final BetaAnalyticsUsageGroup.Builder apiKeyId(Optional<String> apiKeyId)
Alias for calling Builder.apiKeyId with
apiKeyId.orElse(null).
-
apiKeyId
final BetaAnalyticsUsageGroup.Builder apiKeyId(JsonField<String> apiKeyId)
Sets Builder.apiKeyId to an arbitrary JSON value.
You should usually call Builder.apiKeyId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
claudeTagCategory
final BetaAnalyticsUsageGroup.Builder claudeTagCategory(BetaAnalyticsClaudeTagCategory claudeTagCategory)
Claude Tag (Claude in Slack) spend category:
engaged(a person addressed Claude in a channel or thread),proactive(Claude responded without being addressed),scheduled(a scheduled routine ran),monitoring(Claude watching a channel it was asked to monitor), ordm(direct messages with Claude). Populated only whenclaude_tag_categoryis ingroup_by[]; null for usage that is not Claude Tag. New categories may be added over time.
-
claudeTagCategory
final BetaAnalyticsUsageGroup.Builder claudeTagCategory(Optional<BetaAnalyticsClaudeTagCategory> claudeTagCategory)
Alias for calling Builder.claudeTagCategory with
claudeTagCategory.orElse(null).
-
claudeTagCategory
final BetaAnalyticsUsageGroup.Builder claudeTagCategory(JsonField<BetaAnalyticsClaudeTagCategory> claudeTagCategory)
Sets Builder.claudeTagCategory to an arbitrary JSON value.
You should usually call Builder.claudeTagCategory with a well-typed BetaAnalyticsClaudeTagCategory value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
claudeTagUserId
final BetaAnalyticsUsageGroup.Builder claudeTagUserId(String claudeTagUserId)
Slack user ID (for example
U0123ABCDEF) of the member the Claude Tag (Claude in Slack) usage is attributed to, not a claude.ai user ID. Populated only whenclaude_tag_user_idis ingroup_by[]; null for usage that is not Claude Tag and for Claude Tag usage that is not attributed to a single user (for examplemonitoring, andproactiveusage Claude initiated), so per-user rows can sum to less than the Claude Tag total. Cannot be combined withgroup_by[]=rbac_group_idor therbac_group_ids[]filter.
-
claudeTagUserId
final BetaAnalyticsUsageGroup.Builder claudeTagUserId(Optional<String> claudeTagUserId)
Alias for calling Builder.claudeTagUserId with
claudeTagUserId.orElse(null).
-
claudeTagUserId
final BetaAnalyticsUsageGroup.Builder claudeTagUserId(JsonField<String> claudeTagUserId)
Sets Builder.claudeTagUserId to an arbitrary JSON value.
You should usually call Builder.claudeTagUserId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
contextWindow
final BetaAnalyticsUsageGroup.Builder contextWindow(BetaAnalyticsContextWindow contextWindow)
Context-window pricing tier of the usage or cost. Null unless
context_windowis ingroup_by[]; it can also be null on grouped rows with no context-window tier, such as code execution.
-
contextWindow
final BetaAnalyticsUsageGroup.Builder contextWindow(Optional<BetaAnalyticsContextWindow> contextWindow)
Alias for calling Builder.contextWindow with
contextWindow.orElse(null).
-
contextWindow
final BetaAnalyticsUsageGroup.Builder contextWindow(JsonField<BetaAnalyticsContextWindow> contextWindow)
Sets Builder.contextWindow to an arbitrary JSON value.
You should usually call Builder.contextWindow with a well-typed BetaAnalyticsContextWindow value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
deploymentId
final BetaAnalyticsUsageGroup.Builder deploymentId(String deploymentId)
Deployment that started the Claude Managed Agents session. Populated only when
deployment_idis ingroup_by[]; null for usage outside a managed session and for sessions no deployment started.
-
deploymentId
final BetaAnalyticsUsageGroup.Builder deploymentId(Optional<String> deploymentId)
Alias for calling Builder.deploymentId with
deploymentId.orElse(null).
-
deploymentId
final BetaAnalyticsUsageGroup.Builder deploymentId(JsonField<String> deploymentId)
Sets Builder.deploymentId to an arbitrary JSON value.
You should usually call Builder.deploymentId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
environmentId
final BetaAnalyticsUsageGroup.Builder environmentId(String environmentId)
Claude Managed Agents environment the session ran in. Populated only when
environment_idis ingroup_by[]; null for usage outside a managed session.
-
environmentId
final BetaAnalyticsUsageGroup.Builder environmentId(Optional<String> environmentId)
Alias for calling Builder.environmentId with
environmentId.orElse(null).
-
environmentId
final BetaAnalyticsUsageGroup.Builder environmentId(JsonField<String> environmentId)
Sets Builder.environmentId to an arbitrary JSON value.
You should usually call Builder.environmentId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
inferenceGeo
final BetaAnalyticsUsageGroup.Builder inferenceGeo(BetaAnalyticsUsageCostInferenceGeo inferenceGeo)
Inference region of the usage or cost. Null unless
inference_geois ingroup_by[]; it can also be null on grouped rows where the region is not set (the rows thatinference_geos[]=not_availablematches).
-
inferenceGeo
final BetaAnalyticsUsageGroup.Builder inferenceGeo(Optional<BetaAnalyticsUsageCostInferenceGeo> inferenceGeo)
Alias for calling Builder.inferenceGeo with
inferenceGeo.orElse(null).
-
inferenceGeo
final BetaAnalyticsUsageGroup.Builder inferenceGeo(JsonField<BetaAnalyticsUsageCostInferenceGeo> inferenceGeo)
Sets Builder.inferenceGeo to an arbitrary JSON value.
You should usually call Builder.inferenceGeo with a well-typed BetaAnalyticsUsageCostInferenceGeo value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
model
final BetaAnalyticsUsageGroup.Builder model(String model)
Model that produced the usage or cost, as a model name in the form the
models[]filter accepts (for example,claude-opus-5-5). Null unlessmodelis ingroup_by[]; it can also be null on grouped rows whose usage or cost is not attributed to a specific model, such as code execution.
-
model
final BetaAnalyticsUsageGroup.Builder model(Optional<String> model)
Alias for calling Builder.model with
model.orElse(null).
-
model
final BetaAnalyticsUsageGroup.Builder model(JsonField<String> model)
Sets Builder.model to an arbitrary JSON value.
You should usually call Builder.model with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
organizationId
final BetaAnalyticsUsageGroup.Builder organizationId(String organizationId)
UUID of the child organization the usage belongs to, on a parent organization's report across its children. Null unless
organization_idis ingroup_by[].
-
organizationId
final BetaAnalyticsUsageGroup.Builder organizationId(Optional<String> organizationId)
Alias for calling Builder.organizationId with
organizationId.orElse(null).
-
organizationId
final BetaAnalyticsUsageGroup.Builder organizationId(JsonField<String> organizationId)
Sets Builder.organizationId to an arbitrary JSON value.
You should usually call Builder.organizationId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
product
final BetaAnalyticsUsageGroup.Builder product(String product)
Product surface that produced the usage or cost. Null unless product is in
group_by[]; it can also be null on grouped rows whose usage cannot be attributed to a known surface. Values includechat,claude_code,cowork,office_agent,claude_in_chrome,claude_design,claude_tag, andchat_cowork_unified.claude_tagis Claude Tag, the Claude product in Slack.chat_cowork_unifiedis Chat and Cowork unified, Cowork's features inside claude.ai chat: chat and Cowork usage by a member who has it turned on is reported under this value instead ofchatorcowork. It is accepted as a filter only where Chat and Cowork unified is available. Some unattributed usage is reported as "other".
-
product
final BetaAnalyticsUsageGroup.Builder product(Optional<String> product)
Alias for calling Builder.product with
product.orElse(null).
-
product
final BetaAnalyticsUsageGroup.Builder product(JsonField<String> product)
Sets Builder.product to an arbitrary JSON value.
You should usually call Builder.product with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
rbacGroupId
final BetaAnalyticsUsageGroup.Builder rbacGroupId(String rbacGroupId)
RBAC group (team) the usage is attributed to, in the public tagged
rbac_group_...spelling — the same spelling the activity resources use for this key, so the same team has one id across resources and it round-trips as anrbac_group_ids[]filter value. Populated only whenrbac_group_idis ingroup_by[]. Any-membership semantics: a user in several groups contributes their full usage to each of those groups' rows, so the named-group rows overlap and their sum can exceed the org total. A null value is the single unassigned row: users in no group on that (UTC) day. For the true org total, run the same query withoutgroup_by[].
-
rbacGroupId
final BetaAnalyticsUsageGroup.Builder rbacGroupId(Optional<String> rbacGroupId)
Alias for calling Builder.rbacGroupId with
rbacGroupId.orElse(null).
-
rbacGroupId
final BetaAnalyticsUsageGroup.Builder rbacGroupId(JsonField<String> rbacGroupId)
Sets Builder.rbacGroupId to an arbitrary JSON value.
You should usually call Builder.rbacGroupId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
serviceTier
final BetaAnalyticsUsageGroup.Builder serviceTier(BetaAnalyticsServiceTier serviceTier)
Service tier the usage was served at. Populated only when
service_tieris ingroup_by[]; null for usage with no service tier (for example, code execution) and for Claude Enterprise usage.
-
serviceTier
final BetaAnalyticsUsageGroup.Builder serviceTier(Optional<BetaAnalyticsServiceTier> serviceTier)
Alias for calling Builder.serviceTier with
serviceTier.orElse(null).
-
serviceTier
final BetaAnalyticsUsageGroup.Builder serviceTier(JsonField<BetaAnalyticsServiceTier> serviceTier)
Sets Builder.serviceTier to an arbitrary JSON value.
You should usually call Builder.serviceTier with a well-typed BetaAnalyticsServiceTier value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
sessionId
final BetaAnalyticsUsageGroup.Builder sessionId(String sessionId)
Claude Managed Agents session that incurred the usage. Populated only when
session_idis ingroup_by[]; null for usage outside a managed session.
-
sessionId
final BetaAnalyticsUsageGroup.Builder sessionId(Optional<String> sessionId)
Alias for calling Builder.sessionId with
sessionId.orElse(null).
-
sessionId
final BetaAnalyticsUsageGroup.Builder sessionId(JsonField<String> sessionId)
Sets Builder.sessionId to an arbitrary JSON value.
You should usually call Builder.sessionId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
slackChannelId
final BetaAnalyticsUsageGroup.Builder slackChannelId(String slackChannelId)
Slack channel the usage originated from. Populated only when
slack_channel_idis ingroup_by[]; null for usage outside Slack, for some Claude Tag usage that has no channel recorded, and for usage recorded before channel attribution was enabled.
-
slackChannelId
final BetaAnalyticsUsageGroup.Builder slackChannelId(Optional<String> slackChannelId)
Alias for calling Builder.slackChannelId with
slackChannelId.orElse(null).
-
slackChannelId
final BetaAnalyticsUsageGroup.Builder slackChannelId(JsonField<String> slackChannelId)
Sets Builder.slackChannelId to an arbitrary JSON value.
You should usually call Builder.slackChannelId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
speed
final BetaAnalyticsUsageGroup.Builder speed(BetaAnalyticsSpeed speed)
Inference speed mode of the usage or cost:
fastorstandard. Null unlessspeedis ingroup_by[].
-
speed
final BetaAnalyticsUsageGroup.Builder speed(Optional<BetaAnalyticsSpeed> speed)
Alias for calling Builder.speed with
speed.orElse(null).
-
speed
final BetaAnalyticsUsageGroup.Builder speed(JsonField<BetaAnalyticsSpeed> speed)
Sets Builder.speed to an arbitrary JSON value.
You should usually call Builder.speed with a well-typed BetaAnalyticsSpeed value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
userProfileId
final BetaAnalyticsUsageGroup.Builder userProfileId(String userProfileId)
User profile the usage was attributed to, as a tagged
uprof_ID. Populated only whenuser_profile_idis ingroup_by[]; null for usage that named no profile and for Claude Enterprise usage.
-
userProfileId
final BetaAnalyticsUsageGroup.Builder userProfileId(Optional<String> userProfileId)
Alias for calling Builder.userProfileId with
userProfileId.orElse(null).
-
userProfileId
final BetaAnalyticsUsageGroup.Builder userProfileId(JsonField<String> userProfileId)
Sets Builder.userProfileId to an arbitrary JSON value.
You should usually call Builder.userProfileId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
workspaceId
final BetaAnalyticsUsageGroup.Builder workspaceId(String workspaceId)
Workspace the usage occurred in, as a tagged workspace ID, including the organization's default workspace. Populated only when
workspace_idis ingroup_by[]; null for Claude Enterprise usage.
-
workspaceId
final BetaAnalyticsUsageGroup.Builder workspaceId(Optional<String> workspaceId)
Alias for calling Builder.workspaceId with
workspaceId.orElse(null).
-
workspaceId
final BetaAnalyticsUsageGroup.Builder workspaceId(JsonField<String> workspaceId)
Sets Builder.workspaceId to an arbitrary JSON value.
You should usually call Builder.workspaceId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaAnalyticsUsageGroup.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
serviceAccountActor
final BetaAnalyticsUsageGroup.Builder serviceAccountActor(String serviceAccountId)
Alias for calling actor with the following:
BetaAnalyticsServiceAccountActor.builder() .serviceAccountId(serviceAccountId) .build()
-
apiActor
final BetaAnalyticsUsageGroup.Builder apiActor(String apiKeyId)
Alias for calling actor with the following:
BetaAnalyticsApiActor.builder() .apiKeyId(apiKeyId) .build()
-
putAdditionalProperty
final BetaAnalyticsUsageGroup.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaAnalyticsUsageGroup.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaAnalyticsUsageGroup.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaAnalyticsUsageGroup.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaAnalyticsUsageGroup build()
Returns an immutable instance of BetaAnalyticsUsageGroup.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.actor() .actorType() .agentId() .apiKeyId() .claudeTagCategory() .claudeTagUserId() .contextWindow() .deploymentId() .environmentId() .inferenceGeo() .model() .organizationId() .product() .rbacGroupId() .serviceTier() .sessionId() .slackChannelId() .speed() .userProfileId() .workspaceId()
-
-
-
-