Class BetaAnalyticsProjectActivity.Builder
-
- All Implemented Interfaces:
public final class BetaAnalyticsProjectActivity.BuilderA builder for BetaAnalyticsProjectActivity.
-
-
Method Summary
-
-
Method Detail
-
createdAt
final BetaAnalyticsProjectActivity.Builder createdAt(OffsetDateTime createdAt)
Project creation timestamp in RFC 3339 format. Null if the project was deleted before attribution was recorded.
-
createdAt
final BetaAnalyticsProjectActivity.Builder createdAt(Optional<OffsetDateTime> createdAt)
Alias for calling Builder.createdAt with
createdAt.orElse(null).
-
createdAt
final BetaAnalyticsProjectActivity.Builder createdAt(JsonField<OffsetDateTime> createdAt)
Sets Builder.createdAt to an arbitrary JSON value.
You should usually call Builder.createdAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
createdBy
final BetaAnalyticsProjectActivity.Builder createdBy(BetaAnalyticsUser createdBy)
User who created the project. Null if the project was deleted before attribution was recorded, or if the creator's account no longer exists.
-
createdBy
final BetaAnalyticsProjectActivity.Builder createdBy(Optional<BetaAnalyticsUser> createdBy)
Alias for calling Builder.createdBy with
createdBy.orElse(null).
-
createdBy
final BetaAnalyticsProjectActivity.Builder createdBy(JsonField<BetaAnalyticsUser> createdBy)
Sets Builder.createdBy to an arbitrary JSON value.
You should usually call Builder.createdBy with a well-typed BetaAnalyticsUser value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
distinctConversationCount
final BetaAnalyticsProjectActivity.Builder distinctConversationCount(Long distinctConversationCount)
Number of distinct conversations in the project. Null on aggregated rows where a distinct count cannot be computed.
-
distinctConversationCount
final BetaAnalyticsProjectActivity.Builder distinctConversationCount(Long distinctConversationCount)
Alias for Builder.distinctConversationCount.
This unboxed primitive overload exists for backwards compatibility.
-
distinctConversationCount
final BetaAnalyticsProjectActivity.Builder distinctConversationCount(Optional<Long> distinctConversationCount)
Alias for calling Builder.distinctConversationCount with
distinctConversationCount.orElse(null).
-
distinctConversationCount
final BetaAnalyticsProjectActivity.Builder distinctConversationCount(JsonField<Long> distinctConversationCount)
Sets Builder.distinctConversationCount to an arbitrary JSON value.
You should usually call Builder.distinctConversationCount 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 BetaAnalyticsProjectActivity.Builder distinctUserCount(Long distinctUserCount)
Number of distinct users who used the project on the requested day, or, in date-range mode, over the requested window — recomputed as an exact distinct count over the window's per-member daily rows, never a sum of per-day values.
-
distinctUserCount
final BetaAnalyticsProjectActivity.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.
-
messageCount
final BetaAnalyticsProjectActivity.Builder messageCount(Long messageCount)
Number of messages sent in the project on the requested day
-
messageCount
final BetaAnalyticsProjectActivity.Builder messageCount(JsonField<Long> messageCount)
Sets Builder.messageCount to an arbitrary JSON value.
You should usually call Builder.messageCount with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
projectId
final BetaAnalyticsProjectActivity.Builder projectId(String projectId)
Tagged project identifier (e.g.
claude_proj_...)
-
projectId
final BetaAnalyticsProjectActivity.Builder projectId(JsonField<String> projectId)
Sets Builder.projectId to an arbitrary JSON value.
You should usually call Builder.projectId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
projectName
final BetaAnalyticsProjectActivity.Builder projectName(String projectName)
Name of the project
-
projectName
final BetaAnalyticsProjectActivity.Builder projectName(JsonField<String> projectName)
Sets Builder.projectName to an arbitrary JSON value.
You should usually call Builder.projectName 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 BetaAnalyticsProjectActivity.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 BetaAnalyticsProjectActivity.Builder rbacGroupId(Optional<String> rbacGroupId)
Alias for calling Builder.rbacGroupId with
rbacGroupId.orElse(null).
-
rbacGroupId
final BetaAnalyticsProjectActivity.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 BetaAnalyticsProjectActivity.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 BetaAnalyticsProjectActivity.Builder rbacGroupName(Optional<String> rbacGroupName)
Alias for calling Builder.rbacGroupName with
rbacGroupName.orElse(null).
-
rbacGroupName
final BetaAnalyticsProjectActivity.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 BetaAnalyticsProjectActivity.Builder userId(String userId)
Tagged user identifier (e.g.
user_...). Present only when the request grouped byuser_id.
-
userId
final BetaAnalyticsProjectActivity.Builder userId(Optional<String> userId)
Alias for calling Builder.userId with
userId.orElse(null).
-
userId
final BetaAnalyticsProjectActivity.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 BetaAnalyticsProjectActivity.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaAnalyticsProjectActivity.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaAnalyticsProjectActivity.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaAnalyticsProjectActivity.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaAnalyticsProjectActivity.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaAnalyticsProjectActivity build()
Returns an immutable instance of BetaAnalyticsProjectActivity.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.createdAt() .createdBy() .distinctConversationCount() .distinctUserCount() .messageCount() .projectId() .projectName()
-
-
-
-