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