Class BetaAnalyticsUsageItem.Builder
-
- All Implemented Interfaces:
public final class BetaAnalyticsUsageItem.BuilderA builder for BetaAnalyticsUsageItem.
-
-
Method Summary
Modifier and Type Method Description final BetaAnalyticsUsageItem.BuilderendingAt(OffsetDateTime endingAt)End of the period this row covers (exclusive), as an RFC 3339 UTC timestamp: the end of the row's time bucket when a time-bucket width is set; otherwise the requested ending_at(or, when omitted, the earlier of now andstarting_atplus 31 days) rounded down to the hour, because without a time bucket the report covers whole hours.final BetaAnalyticsUsageItem.BuilderendingAt(JsonField<OffsetDateTime> endingAt)Sets Builder.endingAt to an arbitrary JSON value. final BetaAnalyticsUsageItem.Buildergroup(BetaAnalyticsUsageGroup group)The dimension values this row's usage is broken out by. final BetaAnalyticsUsageItem.Buildergroup(JsonField<BetaAnalyticsUsageGroup> group)Sets Builder.group to an arbitrary JSON value. final BetaAnalyticsUsageItem.BuilderstartingAt(OffsetDateTime startingAt)Start of the period this row covers (inclusive), as an RFC 3339 UTC timestamp: the start of the row's time bucket when a time-bucket width is set, otherwise the requested starting_atrounded down to the hour.final BetaAnalyticsUsageItem.BuilderstartingAt(JsonField<OffsetDateTime> startingAt)Sets Builder.startingAt to an arbitrary JSON value. final BetaAnalyticsUsageItem.Builderusage(BetaAnalyticsUsageMetrics usage)Token usage for this row. final BetaAnalyticsUsageItem.Builderusage(JsonField<BetaAnalyticsUsageMetrics> usage)Sets Builder.usage to an arbitrary JSON value. final BetaAnalyticsUsageItem.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final BetaAnalyticsUsageItem.BuilderputAdditionalProperty(String key, JsonValue value)final BetaAnalyticsUsageItem.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final BetaAnalyticsUsageItem.BuilderremoveAdditionalProperty(String key)final BetaAnalyticsUsageItem.BuilderremoveAllAdditionalProperties(Set<String> keys)final BetaAnalyticsUsageItembuild()Returns an immutable instance of BetaAnalyticsUsageItem. -
-
Method Detail
-
endingAt
final BetaAnalyticsUsageItem.Builder endingAt(OffsetDateTime endingAt)
End of the period this row covers (exclusive), as an RFC 3339 UTC timestamp: the end of the row's time bucket when a time-bucket width is set; otherwise the requested
ending_at(or, when omitted, the earlier of now andstarting_atplus 31 days) rounded down to the hour, because without a time bucket the report covers whole hours.
-
endingAt
final BetaAnalyticsUsageItem.Builder endingAt(JsonField<OffsetDateTime> endingAt)
Sets Builder.endingAt to an arbitrary JSON value.
You should usually call Builder.endingAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
group
final BetaAnalyticsUsageItem.Builder group(BetaAnalyticsUsageGroup group)
The dimension values this row's usage is broken out by.
-
group
final BetaAnalyticsUsageItem.Builder group(JsonField<BetaAnalyticsUsageGroup> group)
Sets Builder.group to an arbitrary JSON value.
You should usually call Builder.group with a well-typed BetaAnalyticsUsageGroup value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
startingAt
final BetaAnalyticsUsageItem.Builder startingAt(OffsetDateTime startingAt)
Start of the period this row covers (inclusive), as an RFC 3339 UTC timestamp: the start of the row's time bucket when a time-bucket width is set, otherwise the requested
starting_atrounded down to the hour.
-
startingAt
final BetaAnalyticsUsageItem.Builder startingAt(JsonField<OffsetDateTime> startingAt)
Sets Builder.startingAt to an arbitrary JSON value.
You should usually call Builder.startingAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
usage
final BetaAnalyticsUsageItem.Builder usage(BetaAnalyticsUsageMetrics usage)
Token usage for this row.
-
usage
final BetaAnalyticsUsageItem.Builder usage(JsonField<BetaAnalyticsUsageMetrics> usage)
Sets Builder.usage to an arbitrary JSON value.
You should usually call Builder.usage with a well-typed BetaAnalyticsUsageMetrics value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaAnalyticsUsageItem.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaAnalyticsUsageItem.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaAnalyticsUsageItem.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaAnalyticsUsageItem.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaAnalyticsUsageItem.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaAnalyticsUsageItem build()
Returns an immutable instance of BetaAnalyticsUsageItem.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.endingAt() .group() .startingAt() .usage()
-
-
-
-