Class BetaAnalyticsArtifactActivity.Builder
-
- All Implemented Interfaces:
public final class BetaAnalyticsArtifactActivity.BuilderA builder for BetaAnalyticsArtifactActivity.
-
-
Method Summary
Modifier and Type Method Description final BetaAnalyticsArtifactActivity.BuilderartifactType(String artifactType)Canonical artifact MIME type (e.g. final BetaAnalyticsArtifactActivity.BuilderartifactType(JsonField<String> artifactType)Sets Builder.artifactType to an arbitrary JSON value. final BetaAnalyticsArtifactActivity.BuilderartifactsCreatedCount(Long artifactsCreatedCount)Number of artifacts created in this bucket on the requested day final BetaAnalyticsArtifactActivity.BuilderartifactsCreatedCount(JsonField<Long> artifactsCreatedCount)Sets Builder.artifactsCreatedCount to an arbitrary JSON value. final BetaAnalyticsArtifactActivity.BuilderdistinctUserCount(Long distinctUserCount)Number of distinct users who created artifacts in this bucket on the requested day final BetaAnalyticsArtifactActivity.BuilderdistinctUserCount(JsonField<Long> distinctUserCount)Sets Builder.distinctUserCount to an arbitrary JSON value. final BetaAnalyticsArtifactActivity.BuilderisShared(Boolean isShared)Whether the artifacts in this bucket have ever been shared (a Claude Code / Cowork artifact is shared once anyone beyond its creator may open it: named members, the whole organization, or anyone with the link). final BetaAnalyticsArtifactActivity.BuilderisShared(JsonField<Boolean> isShared)Sets Builder.isShared to an arbitrary JSON value. final BetaAnalyticsArtifactActivity.BuilderpublishedArtifactsCreatedCount(Long publishedArtifactsCreatedCount)Number of those artifacts that have been published (for Claude Code / Cowork artifacts: open to anyone with the link); never exceeds artifacts_created_countfinal BetaAnalyticsArtifactActivity.BuilderpublishedArtifactsCreatedCount(JsonField<Long> publishedArtifactsCreatedCount)Sets Builder.publishedArtifactsCreatedCount to an arbitrary JSON value. final BetaAnalyticsArtifactActivity.Builderproduct(String product)Product that produced this row's activity: one of chat,claude_code,cowork,office_agent, orchat_cowork_unified(Chat and Cowork unified).final BetaAnalyticsArtifactActivity.Builderproduct(Optional<String> product)Alias for calling Builder.product with product.orElse(null).final BetaAnalyticsArtifactActivity.Builderproduct(JsonField<String> product)Sets Builder.product to an arbitrary JSON value. final BetaAnalyticsArtifactActivity.BuilderrbacGroupId(String rbacGroupId)Tagged RBAC group identifier ( rbac_group_...), matching the spend-limits API spelling.final BetaAnalyticsArtifactActivity.BuilderrbacGroupId(Optional<String> rbacGroupId)Alias for calling Builder.rbacGroupId with rbacGroupId.orElse(null).final BetaAnalyticsArtifactActivity.BuilderrbacGroupId(JsonField<String> rbacGroupId)Sets Builder.rbacGroupId to an arbitrary JSON value. final BetaAnalyticsArtifactActivity.BuilderrbacGroupName(String rbacGroupName)Resolved RBAC group display name, alongside rbac_group_idwhen name resolution is available.final BetaAnalyticsArtifactActivity.BuilderrbacGroupName(Optional<String> rbacGroupName)Alias for calling Builder.rbacGroupName with rbacGroupName.orElse(null).final BetaAnalyticsArtifactActivity.BuilderrbacGroupName(JsonField<String> rbacGroupName)Sets Builder.rbacGroupName to an arbitrary JSON value. final BetaAnalyticsArtifactActivity.BuilderuserId(String userId)Tagged user identifier (e.g. final BetaAnalyticsArtifactActivity.BuilderuserId(Optional<String> userId)Alias for calling Builder.userId with userId.orElse(null).final BetaAnalyticsArtifactActivity.BuilderuserId(JsonField<String> userId)Sets Builder.userId to an arbitrary JSON value. final BetaAnalyticsArtifactActivity.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final BetaAnalyticsArtifactActivity.BuilderputAdditionalProperty(String key, JsonValue value)final BetaAnalyticsArtifactActivity.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final BetaAnalyticsArtifactActivity.BuilderremoveAdditionalProperty(String key)final BetaAnalyticsArtifactActivity.BuilderremoveAllAdditionalProperties(Set<String> keys)final BetaAnalyticsArtifactActivitybuild()Returns an immutable instance of BetaAnalyticsArtifactActivity. -
-
Method Detail
-
artifactType
final BetaAnalyticsArtifactActivity.Builder artifactType(String artifactType)
Canonical artifact MIME type (e.g.
text/markdown,application/vnd.ant.react,image/svg+xml), orother. Claude Code and Cowork artifacts report astext/html.
-
artifactType
final BetaAnalyticsArtifactActivity.Builder artifactType(JsonField<String> artifactType)
Sets Builder.artifactType to an arbitrary JSON value.
You should usually call Builder.artifactType with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
artifactsCreatedCount
final BetaAnalyticsArtifactActivity.Builder artifactsCreatedCount(Long artifactsCreatedCount)
Number of artifacts created in this bucket on the requested day
-
artifactsCreatedCount
final BetaAnalyticsArtifactActivity.Builder artifactsCreatedCount(JsonField<Long> artifactsCreatedCount)
Sets Builder.artifactsCreatedCount to an arbitrary JSON value.
You should usually call Builder.artifactsCreatedCount with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
distinctUserCount
final BetaAnalyticsArtifactActivity.Builder distinctUserCount(Long distinctUserCount)
Number of distinct users who created artifacts in this bucket on the requested day
-
distinctUserCount
final BetaAnalyticsArtifactActivity.Builder distinctUserCount(JsonField<Long> distinctUserCount)
Sets Builder.distinctUserCount to an arbitrary JSON value.
You should usually call Builder.distinctUserCount with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
isShared
final BetaAnalyticsArtifactActivity.Builder isShared(Boolean isShared)
Whether the artifacts in this bucket have ever been shared (a Claude Code / Cowork artifact is shared once anyone beyond its creator may open it: named members, the whole organization, or anyone with the link).
-
isShared
final BetaAnalyticsArtifactActivity.Builder isShared(JsonField<Boolean> isShared)
Sets Builder.isShared to an arbitrary JSON value.
You should usually call Builder.isShared with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
publishedArtifactsCreatedCount
final BetaAnalyticsArtifactActivity.Builder publishedArtifactsCreatedCount(Long publishedArtifactsCreatedCount)
Number of those artifacts that have been published (for Claude Code / Cowork artifacts: open to anyone with the link); never exceeds
artifacts_created_count
-
publishedArtifactsCreatedCount
final BetaAnalyticsArtifactActivity.Builder publishedArtifactsCreatedCount(JsonField<Long> publishedArtifactsCreatedCount)
Sets Builder.publishedArtifactsCreatedCount to an arbitrary JSON value.
You should usually call Builder.publishedArtifactsCreatedCount with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
product
final BetaAnalyticsArtifactActivity.Builder product(String product)
Product that produced this row's activity: one of
chat,claude_code,cowork,office_agent, orchat_cowork_unified(Chat and Cowork unified). These are the canonical Cost & Usage product names; anoffice_agentrow's per-surface breakdown is in itsoffice_metrics. On/pluginsonlycowork,claude_codeandchat_cowork_unifiedoccur (the only surfaces with plugin attribution); on/artifactsonlychat,claude_code,coworkandchat_cowork_unifiedoccur (the surfaces that create artifacts);/apps/chat/projectsdoes not support the product dimension (aproductentry ingroup_by[]orfilter[]there is rejected). Present only when the request grouped byproduct.
-
product
final BetaAnalyticsArtifactActivity.Builder product(Optional<String> product)
Alias for calling Builder.product with
product.orElse(null).
-
product
final BetaAnalyticsArtifactActivity.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 BetaAnalyticsArtifactActivity.Builder rbacGroupId(String rbacGroupId)
Tagged RBAC group identifier (
rbac_group_...), matching the spend-limits API spelling. Present only when the request grouped byrbac_group_id.
-
rbacGroupId
final BetaAnalyticsArtifactActivity.Builder rbacGroupId(Optional<String> rbacGroupId)
Alias for calling Builder.rbacGroupId with
rbacGroupId.orElse(null).
-
rbacGroupId
final BetaAnalyticsArtifactActivity.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.
-
rbacGroupName
final BetaAnalyticsArtifactActivity.Builder rbacGroupName(String rbacGroupName)
Resolved RBAC group display name, alongside
rbac_group_idwhen name resolution is available. Null if the group has been deleted or its name could not be resolved;rbac_group_idremains the stable key.
-
rbacGroupName
final BetaAnalyticsArtifactActivity.Builder rbacGroupName(Optional<String> rbacGroupName)
Alias for calling Builder.rbacGroupName with
rbacGroupName.orElse(null).
-
rbacGroupName
final BetaAnalyticsArtifactActivity.Builder rbacGroupName(JsonField<String> rbacGroupName)
Sets Builder.rbacGroupName to an arbitrary JSON value.
You should usually call Builder.rbacGroupName with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
userId
final BetaAnalyticsArtifactActivity.Builder userId(String userId)
Tagged user identifier (e.g.
user_...). Present only when the request grouped byuser_id.
-
userId
final BetaAnalyticsArtifactActivity.Builder userId(Optional<String> userId)
Alias for calling Builder.userId with
userId.orElse(null).
-
userId
final BetaAnalyticsArtifactActivity.Builder userId(JsonField<String> userId)
Sets Builder.userId to an arbitrary JSON value.
You should usually call Builder.userId 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 BetaAnalyticsArtifactActivity.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaAnalyticsArtifactActivity.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaAnalyticsArtifactActivity.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaAnalyticsArtifactActivity.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaAnalyticsArtifactActivity.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaAnalyticsArtifactActivity build()
Returns an immutable instance of BetaAnalyticsArtifactActivity.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.artifactType() .artifactsCreatedCount() .distinctUserCount() .isShared() .publishedArtifactsCreatedCount()
-
-
-
-