Class UsageModerationsResponse.Data.Result.OrganizationCostsResult.Builder
-
- All Implemented Interfaces:
public final class UsageModerationsResponse.Data.Result.OrganizationCostsResult.BuilderA builder for OrganizationCostsResult.
-
-
Method Summary
-
-
Method Detail
-
object_
final UsageModerationsResponse.Data.Result.OrganizationCostsResult.Builder object_(JsonValue object_)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("organization.costs.result")This method is primarily for setting the field to an undocumented or not yet supported value.
-
amount
final UsageModerationsResponse.Data.Result.OrganizationCostsResult.Builder amount(UsageModerationsResponse.Data.Result.OrganizationCostsResult.Amount amount)
The monetary value in its associated currency.
-
amount
final UsageModerationsResponse.Data.Result.OrganizationCostsResult.Builder amount(JsonField<UsageModerationsResponse.Data.Result.OrganizationCostsResult.Amount> amount)
Sets Builder.amount to an arbitrary JSON value.
You should usually call Builder.amount with a well-typed Amount value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
apiKeyId
final UsageModerationsResponse.Data.Result.OrganizationCostsResult.Builder apiKeyId(String apiKeyId)
When
group_by=api_key_id, this field provides the API Key ID of the grouped costs result.
-
apiKeyId
final UsageModerationsResponse.Data.Result.OrganizationCostsResult.Builder apiKeyId(Optional<String> apiKeyId)
Alias for calling Builder.apiKeyId with
apiKeyId.orElse(null).
-
apiKeyId
final UsageModerationsResponse.Data.Result.OrganizationCostsResult.Builder apiKeyId(JsonField<String> apiKeyId)
Sets Builder.apiKeyId to an arbitrary JSON value.
You should usually call Builder.apiKeyId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
lineItem
final UsageModerationsResponse.Data.Result.OrganizationCostsResult.Builder lineItem(String lineItem)
When
group_by=line_item, this field provides the line item of the grouped costs result.
-
lineItem
final UsageModerationsResponse.Data.Result.OrganizationCostsResult.Builder lineItem(Optional<String> lineItem)
Alias for calling Builder.lineItem with
lineItem.orElse(null).
-
lineItem
final UsageModerationsResponse.Data.Result.OrganizationCostsResult.Builder lineItem(JsonField<String> lineItem)
Sets Builder.lineItem to an arbitrary JSON value.
You should usually call Builder.lineItem with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
projectId
final UsageModerationsResponse.Data.Result.OrganizationCostsResult.Builder projectId(String projectId)
When
group_by=project_id, this field provides the project ID of the grouped costs result.
-
projectId
final UsageModerationsResponse.Data.Result.OrganizationCostsResult.Builder projectId(Optional<String> projectId)
Alias for calling Builder.projectId with
projectId.orElse(null).
-
projectId
final UsageModerationsResponse.Data.Result.OrganizationCostsResult.Builder projectId(JsonField<String> projectId)
Sets Builder.projectId to an arbitrary JSON value.
You should usually call Builder.projectId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
quantity
final UsageModerationsResponse.Data.Result.OrganizationCostsResult.Builder quantity(Double quantity)
When
group_by=line_item, this field provides the quantity of the grouped costs result.
-
quantity
final UsageModerationsResponse.Data.Result.OrganizationCostsResult.Builder quantity(Double quantity)
Alias for Builder.quantity.
This unboxed primitive overload exists for backwards compatibility.
-
quantity
final UsageModerationsResponse.Data.Result.OrganizationCostsResult.Builder quantity(Optional<Double> quantity)
Alias for calling Builder.quantity with
quantity.orElse(null).
-
quantity
final UsageModerationsResponse.Data.Result.OrganizationCostsResult.Builder quantity(JsonField<Double> quantity)
Sets Builder.quantity to an arbitrary JSON value.
You should usually call Builder.quantity with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final UsageModerationsResponse.Data.Result.OrganizationCostsResult.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final UsageModerationsResponse.Data.Result.OrganizationCostsResult.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final UsageModerationsResponse.Data.Result.OrganizationCostsResult.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final UsageModerationsResponse.Data.Result.OrganizationCostsResult.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final UsageModerationsResponse.Data.Result.OrganizationCostsResult.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final UsageModerationsResponse.Data.Result.OrganizationCostsResult build()
Returns an immutable instance of OrganizationCostsResult.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-