cloudbilling
v1
|
#include <pricing_expression.h>
Static Public Member Functions | |
static PricingExpression * | New () |
usage_unit: GBy
. tiered_rates <dd>
. [start_usage_amount <dd>20, unit_price: $10]
. [start_usage_amount <dd>100, unit_price: $5]
. The above expresses a pricing formula where the first 20GB is free, the next 80GB is priced at $10 per GB followed by $5 per GB for additional usage.
|
explicit |
Standard constructor for an immutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
explicit |
Standard constructor for a mutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
virtual |
Standard destructor.
|
inline |
Clears the 'baseUnit
' attribute.
|
inline |
Clears the 'baseUnitConversionFactor
' attribute.
|
inline |
Clears the 'baseUnitDescription
' attribute.
|
inline |
Clears the 'displayQuantity
' attribute.
|
inline |
Clears the 'tieredRates
' attribute.
|
inline |
Clears the 'usageUnit
' attribute.
|
inline |
Clears the 'usageUnitDescription
' attribute.
|
inline |
Get the value of the 'baseUnit
' attribute.
|
inline |
Get the value of the 'baseUnitConversionFactor
' attribute.
|
inline |
Get the value of the 'baseUnitDescription
' attribute.
|
inline |
Get the value of the 'displayQuantity
' attribute.
const client::JsonCppArray<TierRate > google_cloudbilling_api::PricingExpression::get_tiered_rates | ( | ) | const |
Get a reference to the value of the 'tieredRates
' attribute.
|
inline |
Get the value of the 'usageUnit
' attribute.
|
inline |
Get the value of the 'usageUnitDescription
' attribute.
|
inline |
Returns a string denoting the type of this data object.
|
inline |
Determine if the 'baseUnit
' attribute was set.
baseUnit
' attribute was set.
|
inline |
Determine if the 'baseUnitConversionFactor
' attribute was set.
baseUnitConversionFactor
' attribute was set.
|
inline |
Determine if the 'baseUnitDescription
' attribute was set.
baseUnitDescription
' attribute was set.
|
inline |
Determine if the 'displayQuantity
' attribute was set.
displayQuantity
' attribute was set.
|
inline |
Determine if the 'tieredRates
' attribute was set.
tieredRates
' attribute was set.
|
inline |
Determine if the 'usageUnit
' attribute was set.
usageUnit
' attribute was set.
|
inline |
Determine if the 'usageUnitDescription
' attribute was set.
usageUnitDescription
' attribute was set. client::JsonCppArray<TierRate > google_cloudbilling_api::PricingExpression::mutable_tieredRates | ( | ) |
Gets a reference to a mutable value of the 'tieredRates
' property.
The list of tiered rates for this pricing. The total cost is computed by applying each of the tiered rates on usage. This repeated list is sorted by ascending order of start_usage_amount.
|
static |
Creates a new default instance.
|
inline |
Change the 'baseUnit
' attribute.
The base unit for the SKU which is the unit used in usage exports. Example: "By".
[in] | value | The new value. |
|
inline |
Change the 'baseUnitConversionFactor
' attribute.
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. unit_price / base_unit_conversion_factor = price per base_unit. start_usage_amount * base_unit_conversion_factor = start_usage_amount in base_unit.
[in] | value | The new value. |
|
inline |
Change the 'baseUnitDescription
' attribute.
The base unit in human readable form. Example: "byte".
[in] | value | The new value. |
|
inline |
Change the 'displayQuantity
' attribute.
The recommended quantity of units for displaying pricing info. When displaying pricing info it is recommended to display: (unit_price * display_quantity) per display_quantity usage_unit. This field does not affect the pricing formula and is for display purposes only. Example: If the unit_price is "0.0001 USD", the usage_unit is "GB" and the display_quantity is "1000" then the recommended way of displaying the pricing info is "0.10 USD per 1000 GB".
[in] | value | The new value. |
|
inline |
Change the 'usageUnit
' attribute.
The short hand for unit of usage this pricing is specified in. Example: usage_unit of "GiBy" means that usage is specified in "Gibi Byte".
[in] | value | The new value. |
|
inline |
Change the 'usageUnitDescription
' attribute.
The unit of usage in human readable form. Example: "gibi byte".
[in] | value | The new value. |