Class UsageListPageResponse.Builder
-
- All Implemented Interfaces:
public final class UsageListPageResponse.BuilderA builder for UsageListPageResponse.
-
-
Method Summary
-
-
Method Detail
-
data
final UsageListPageResponse.Builder data(List<BetaAnalyticsUsageItem> data)
Rows for this page, in the order set by
order_byandorder: one per combination of thegroup_by[]dimensions (and per time bucket, whentime_bucket_widthis set) with usage or cost in the range, or a single row when neither is set. Rows split out bycost_typeortoken_type(cost endpoint only) stay adjacent and are ranked as one unit.
-
data
final UsageListPageResponse.Builder data(JsonField<List<BetaAnalyticsUsageItem>> data)
Sets Builder.data to an arbitrary JSON value.
You should usually call Builder.data with a well-typed
List<BetaAnalyticsUsageItem>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
dataRefreshedAt
final UsageListPageResponse.Builder dataRefreshedAt(OffsetDateTime dataRefreshedAt)
RFC 3339 timestamp of the export this response was served from. Null when no export yet covers any part of the requested range, in which case
datais empty. Data beyond this watermark is incomplete; for stable results, setending_atto this value or earlier. Data is typically refreshed every 4 hours. Values can be revised as late events arrive and reconciliation runs, until about 7 days after the end of the calendar month the usage falls in; for example, values for October 1 can change until about November 7.
-
dataRefreshedAt
final UsageListPageResponse.Builder dataRefreshedAt(Optional<OffsetDateTime> dataRefreshedAt)
Alias for calling Builder.dataRefreshedAt with
dataRefreshedAt.orElse(null).
-
dataRefreshedAt
final UsageListPageResponse.Builder dataRefreshedAt(JsonField<OffsetDateTime> dataRefreshedAt)
Sets Builder.dataRefreshedAt to an arbitrary JSON value.
You should usually call Builder.dataRefreshedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
hasMore
final UsageListPageResponse.Builder hasMore(Boolean hasMore)
Whether another page is available. When true, pass
next_pageas thepageparameter to fetch it.
-
hasMore
final UsageListPageResponse.Builder hasMore(JsonField<Boolean> hasMore)
Sets Builder.hasMore to an arbitrary JSON value.
You should usually call Builder.hasMore with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
nextPage
final UsageListPageResponse.Builder nextPage(String nextPage)
Opaque cursor for the next page, or null when
has_moreis false. Pass it as thepageparameter, keeping the other parameters unchanged. A cursor can expire after the underlying data refreshes; the request then returns HTTP 410 and pagination must restart from the first page.
-
nextPage
final UsageListPageResponse.Builder nextPage(Optional<String> nextPage)
Alias for calling Builder.nextPage with
nextPage.orElse(null).
-
nextPage
final UsageListPageResponse.Builder nextPage(JsonField<String> nextPage)
Sets Builder.nextPage to an arbitrary JSON value.
You should usually call Builder.nextPage 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 UsageListPageResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
addData
final UsageListPageResponse.Builder addData(BetaAnalyticsUsageItem data)
Adds a single BetaAnalyticsUsageItem to Builder.data.
-
putAdditionalProperty
final UsageListPageResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final UsageListPageResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final UsageListPageResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final UsageListPageResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final UsageListPageResponse build()
Returns an immutable instance of UsageListPageResponse.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.data() .dataRefreshedAt() .hasMore() .nextPage()
-
-
-
-