Class UsageListPageResponse
-
- All Implemented Interfaces:
public final class UsageListPageResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classUsageListPageResponse.BuilderA builder for UsageListPageResponse.
-
Method Summary
Modifier and Type Method Description final 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.final Optional<OffsetDateTime>dataRefreshedAt()RFC 3339 timestamp of the export this response was served from. final BooleanhasMore()Whether another page is available. final Optional<String>nextPage()Opaque cursor for the next page, or null when has_moreis false.final JsonField<List<BetaAnalyticsUsageItem>>_data()Returns the raw JSON value of data. final JsonField<OffsetDateTime>_dataRefreshedAt()Returns the raw JSON value of dataRefreshedAt. final JsonField<Boolean>_hasMore()Returns the raw JSON value of hasMore. final JsonField<String>_nextPage()Returns the raw JSON value of nextPage. final Map<String, JsonValue>_additionalProperties()final UsageListPageResponse.BuildertoBuilder()final UsageListPageResponsevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static UsageListPageResponse.Builderbuilder()Returns a mutable builder for constructing an instance of UsageListPageResponse. -
-
Method Detail
-
data
final 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.
-
dataRefreshedAt
final Optional<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.
-
hasMore
final Boolean hasMore()
Whether another page is available. When true, pass
next_pageas thepageparameter to fetch it.
-
nextPage
final Optional<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.
-
_data
final JsonField<List<BetaAnalyticsUsageItem>> _data()
Returns the raw JSON value of data.
Unlike data, this method doesn't throw if the JSON field has an unexpected type.
-
_dataRefreshedAt
final JsonField<OffsetDateTime> _dataRefreshedAt()
Returns the raw JSON value of dataRefreshedAt.
Unlike dataRefreshedAt, this method doesn't throw if the JSON field has an unexpected type.
-
_hasMore
final JsonField<Boolean> _hasMore()
Returns the raw JSON value of hasMore.
Unlike hasMore, this method doesn't throw if the JSON field has an unexpected type.
-
_nextPage
final JsonField<String> _nextPage()
Returns the raw JSON value of nextPage.
Unlike nextPage, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final UsageListPageResponse.Builder toBuilder()
-
validate
final UsageListPageResponse validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static UsageListPageResponse.Builder builder()
Returns a mutable builder for constructing an instance of UsageListPageResponse.
The following fields are required:
.data() .dataRefreshedAt() .hasMore() .nextPage()
-
-
-
-