public final class PricingExpression extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud Billing API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
PricingExpression() |
Modifier and Type | Method and Description |
---|---|
PricingExpression |
clone() |
String |
getBaseUnit()
The base unit for the SKU which is the unit used in usage exports.
|
Double |
getBaseUnitConversionFactor()
Conversion factor for converting from price per usage_unit to price per base_unit, and
start_usage_amount to start_usage_amount in base_unit.
|
String |
getBaseUnitDescription()
The base unit in human readable form.
|
Double |
getDisplayQuantity()
The recommended quantity of units for displaying pricing info.
|
List<TierRate> |
getTieredRates()
The list of tiered rates for this pricing.
|
String |
getUsageUnit()
The short hand for unit of usage this pricing is specified in.
|
String |
getUsageUnitDescription()
The unit of usage in human readable form.
|
PricingExpression |
set(String fieldName,
Object value) |
PricingExpression |
setBaseUnit(String baseUnit)
The base unit for the SKU which is the unit used in usage exports.
|
PricingExpression |
setBaseUnitConversionFactor(Double baseUnitConversionFactor)
Conversion factor for converting from price per usage_unit to price per base_unit, and
start_usage_amount to start_usage_amount in base_unit.
|
PricingExpression |
setBaseUnitDescription(String baseUnitDescription)
The base unit in human readable form.
|
PricingExpression |
setDisplayQuantity(Double displayQuantity)
The recommended quantity of units for displaying pricing info.
|
PricingExpression |
setTieredRates(List<TierRate> tieredRates)
The list of tiered rates for this pricing.
|
PricingExpression |
setUsageUnit(String usageUnit)
The short hand for unit of usage this pricing is specified in.
|
PricingExpression |
setUsageUnitDescription(String usageUnitDescription)
The unit of usage in human readable form.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public String getBaseUnit()
null
for nonepublic PricingExpression setBaseUnit(String baseUnit)
baseUnit
- baseUnit or null
for nonepublic Double getBaseUnitConversionFactor()
null
for nonepublic PricingExpression setBaseUnitConversionFactor(Double baseUnitConversionFactor)
baseUnitConversionFactor
- baseUnitConversionFactor or null
for nonepublic String getBaseUnitDescription()
null
for nonepublic PricingExpression setBaseUnitDescription(String baseUnitDescription)
baseUnitDescription
- baseUnitDescription or null
for nonepublic Double getDisplayQuantity()
null
for nonepublic PricingExpression setDisplayQuantity(Double displayQuantity)
displayQuantity
- displayQuantity or null
for nonepublic List<TierRate> getTieredRates()
null
for nonepublic PricingExpression setTieredRates(List<TierRate> tieredRates)
tieredRates
- tieredRates or null
for nonepublic String getUsageUnit()
null
for nonepublic PricingExpression setUsageUnit(String usageUnit)
usageUnit
- usageUnit or null
for nonepublic String getUsageUnitDescription()
null
for nonepublic PricingExpression setUsageUnitDescription(String usageUnitDescription)
usageUnitDescription
- usageUnitDescription or null
for nonepublic PricingExpression set(String fieldName, Object value)
set
in class GenericJson
public PricingExpression clone()
clone
in class GenericJson
Copyright © 2011–2020 Google. All rights reserved.