|
cloudbilling
v1
|
#include <tier_rate.h>
Public Member Functions | |
| TierRate (const Json::Value &storage) | |
| TierRate (Json::Value *storage) | |
| virtual | ~TierRate () |
| const StringPiece | GetTypeName () const |
| bool | has_start_usage_amount () const |
| void | clear_start_usage_amount () |
| double | get_start_usage_amount () const |
| void | set_start_usage_amount (double value) |
| bool | has_unit_price () const |
| void | clear_unit_price () |
| const Money | get_unit_price () const |
| Money | mutable_unitPrice () |
Static Public Member Functions | |
| static TierRate * | New () |
The price rate indicating starting usage and its corresponding price.
|
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 'startUsageAmount' attribute.
|
inline |
Clears the 'unitPrice' attribute.
|
inline |
Get the value of the 'startUsageAmount' attribute.
| const Money google_cloudbilling_api::TierRate::get_unit_price | ( | ) | const |
Get a reference to the value of the 'unitPrice' attribute.
|
inline |
Returns a string denoting the type of this data object.
|
inline |
Determine if the 'startUsageAmount' attribute was set.
startUsageAmount' attribute was set.
|
inline |
Determine if the 'unitPrice' attribute was set.
unitPrice' attribute was set. | Money google_cloudbilling_api::TierRate::mutable_unitPrice | ( | ) |
Gets a reference to a mutable value of the 'unitPrice' property.
The price per unit of usage. Example: unit_price of amount $10 indicates that each unit will cost $10.
|
static |
Creates a new default instance.
|
inline |
Change the 'startUsageAmount' attribute.
Usage is priced at this rate only after this amount. Example: start_usage_amount of 10 indicates that the usage will be priced at the unit_price after the first 10 usage_units.
| [in] | value | The new value. |