cloudbilling  v1
Public Member Functions | Static Public Member Functions | List of all members
google_cloudbilling_api::TierRate Class Reference

#include <tier_rate.h>

Inheritance diagram for google_cloudbilling_api::TierRate:

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 TierRateNew ()
 

Detailed Description

The price rate indicating starting usage and its corresponding price.

Constructor & Destructor Documentation

◆ TierRate() [1/2]

google_cloudbilling_api::TierRate::TierRate ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ TierRate() [2/2]

google_cloudbilling_api::TierRate::TierRate ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ ~TierRate()

google_cloudbilling_api::TierRate::~TierRate ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_start_usage_amount()

void google_cloudbilling_api::TierRate::clear_start_usage_amount ( )
inline

Clears the 'startUsageAmount' attribute.

◆ clear_unit_price()

void google_cloudbilling_api::TierRate::clear_unit_price ( )
inline

Clears the 'unitPrice' attribute.

◆ get_start_usage_amount()

double google_cloudbilling_api::TierRate::get_start_usage_amount ( ) const
inline

Get the value of the 'startUsageAmount' attribute.

◆ get_unit_price()

const Money google_cloudbilling_api::TierRate::get_unit_price ( ) const

Get a reference to the value of the 'unitPrice' attribute.

◆ GetTypeName()

const StringPiece google_cloudbilling_api::TierRate::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_cloudbilling_api::TierRate

◆ has_start_usage_amount()

bool google_cloudbilling_api::TierRate::has_start_usage_amount ( ) const
inline

Determine if the 'startUsageAmount' attribute was set.

Returns
true if the 'startUsageAmount' attribute was set.

◆ has_unit_price()

bool google_cloudbilling_api::TierRate::has_unit_price ( ) const
inline

Determine if the 'unitPrice' attribute was set.

Returns
true if the 'unitPrice' attribute was set.

◆ mutable_unitPrice()

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.

Returns
The result can be modified to change the attribute value.

◆ New()

TierRate * google_cloudbilling_api::TierRate::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_start_usage_amount()

void google_cloudbilling_api::TierRate::set_start_usage_amount ( double  value)
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.

Parameters
[in]valueThe new value.

The documentation for this class was generated from the following files: