Class BetaAnalyticsCostMetrics.Builder
-
- All Implemented Interfaces:
public final class BetaAnalyticsCostMetrics.BuilderA builder for BetaAnalyticsCostMetrics.
-
-
Method Summary
-
-
Method Detail
-
amount
final BetaAnalyticsCostMetrics.Builder amount(String amount)
Amount (post-discount, pre-credit) in fractional cents (minor units).
-
amount
final BetaAnalyticsCostMetrics.Builder amount(JsonField<String> amount)
Sets Builder.amount to an arbitrary JSON value.
You should usually call Builder.amount with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
currency
final BetaAnalyticsCostMetrics.Builder currency(String currency)
Currency code for the cost amount. Currently always
"USD".
-
currency
final BetaAnalyticsCostMetrics.Builder currency(JsonField<String> currency)
Sets Builder.currency to an arbitrary JSON value.
You should usually call Builder.currency with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
listAmount
final BetaAnalyticsCostMetrics.Builder listAmount(String listAmount)
List-price amount (pre-discount) in fractional cents.
-
listAmount
final BetaAnalyticsCostMetrics.Builder listAmount(JsonField<String> listAmount)
Sets Builder.listAmount to an arbitrary JSON value.
You should usually call Builder.listAmount with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
requests
final BetaAnalyticsCostMetrics.Builder requests(Long requests)
Number of API requests in this row's scope. Null when
group_byincludescost_typeortoken_type(the count has no per-component attribution; read it from the ungrouped response). For sandbox / code-execution events, this counts execution spans rather than HTTP requests (these rows surface withproduct: null).
-
requests
final BetaAnalyticsCostMetrics.Builder requests(Long requests)
Alias for Builder.requests.
This unboxed primitive overload exists for backwards compatibility.
-
requests
final BetaAnalyticsCostMetrics.Builder requests(Optional<Long> requests)
Alias for calling Builder.requests with
requests.orElse(null).
-
requests
final BetaAnalyticsCostMetrics.Builder requests(JsonField<Long> requests)
Sets Builder.requests to an arbitrary JSON value.
You should usually call Builder.requests with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaAnalyticsCostMetrics.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaAnalyticsCostMetrics.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaAnalyticsCostMetrics.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaAnalyticsCostMetrics.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaAnalyticsCostMetrics.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaAnalyticsCostMetrics build()
Returns an immutable instance of BetaAnalyticsCostMetrics.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.amount() .currency() .listAmount() .requests()
-
-
-
-