Class UsageWebSearchCallsResponse.Data.Result.OrganizationCostsResult
-
- All Implemented Interfaces:
public final class UsageWebSearchCallsResponse.Data.Result.OrganizationCostsResultThe aggregated costs details of the specific time bucket.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classUsageWebSearchCallsResponse.Data.Result.OrganizationCostsResult.BuilderA builder for OrganizationCostsResult.
public final classUsageWebSearchCallsResponse.Data.Result.OrganizationCostsResult.AmountThe monetary value in its associated currency.
-
Method Summary
Modifier and Type Method Description final JsonValue_object_()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("organization.costs.result")final Optional<UsageWebSearchCallsResponse.Data.Result.OrganizationCostsResult.Amount>amount()The monetary value in its associated currency. final Optional<String>apiKeyId()When group_by=api_key_id, this field provides the API Key ID of the grouped costs result.final Optional<String>lineItem()When group_by=line_item, this field provides the line item of the grouped costs result.final Optional<String>projectId()When group_by=project_id, this field provides the project ID of the grouped costs result.final Optional<Double>quantity()When group_by=line_item, this field provides the quantity of the grouped costs result.final JsonField<UsageWebSearchCallsResponse.Data.Result.OrganizationCostsResult.Amount>_amount()Returns the raw JSON value of amount. final JsonField<String>_apiKeyId()Returns the raw JSON value of apiKeyId. final JsonField<String>_lineItem()Returns the raw JSON value of lineItem. final JsonField<String>_projectId()Returns the raw JSON value of projectId. final JsonField<Double>_quantity()Returns the raw JSON value of quantity. final Map<String, JsonValue>_additionalProperties()final UsageWebSearchCallsResponse.Data.Result.OrganizationCostsResult.BuildertoBuilder()final UsageWebSearchCallsResponse.Data.Result.OrganizationCostsResultvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static UsageWebSearchCallsResponse.Data.Result.OrganizationCostsResult.Builderbuilder()Returns a mutable builder for constructing an instance of OrganizationCostsResult. -
-
Method Detail
-
_object_
final JsonValue _object_()
Expected to always return the following:
JsonValue.from("organization.costs.result")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
amount
final Optional<UsageWebSearchCallsResponse.Data.Result.OrganizationCostsResult.Amount> amount()
The monetary value in its associated currency.
-
apiKeyId
final Optional<String> apiKeyId()
When
group_by=api_key_id, this field provides the API Key ID of the grouped costs result.
-
lineItem
final Optional<String> lineItem()
When
group_by=line_item, this field provides the line item of the grouped costs result.
-
projectId
final Optional<String> projectId()
When
group_by=project_id, this field provides the project ID of the grouped costs result.
-
quantity
final Optional<Double> quantity()
When
group_by=line_item, this field provides the quantity of the grouped costs result.
-
_amount
final JsonField<UsageWebSearchCallsResponse.Data.Result.OrganizationCostsResult.Amount> _amount()
Returns the raw JSON value of amount.
Unlike amount, this method doesn't throw if the JSON field has an unexpected type.
-
_apiKeyId
final JsonField<String> _apiKeyId()
Returns the raw JSON value of apiKeyId.
Unlike apiKeyId, this method doesn't throw if the JSON field has an unexpected type.
-
_lineItem
final JsonField<String> _lineItem()
Returns the raw JSON value of lineItem.
Unlike lineItem, this method doesn't throw if the JSON field has an unexpected type.
-
_projectId
final JsonField<String> _projectId()
Returns the raw JSON value of projectId.
Unlike projectId, this method doesn't throw if the JSON field has an unexpected type.
-
_quantity
final JsonField<Double> _quantity()
Returns the raw JSON value of quantity.
Unlike quantity, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
validate
final UsageWebSearchCallsResponse.Data.Result.OrganizationCostsResult 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 UsageWebSearchCallsResponse.Data.Result.OrganizationCostsResult.Builder builder()
Returns a mutable builder for constructing an instance of OrganizationCostsResult.
-
-
-
-