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

#include <pricing_info.h>

Inheritance diagram for google_cloudbilling_api::PricingInfo:

Public Member Functions

 PricingInfo (const Json::Value &storage)
 
 PricingInfo (Json::Value *storage)
 
virtual ~PricingInfo ()
 
const StringPiece GetTypeName () const
 
bool has_aggregation_info () const
 
void clear_aggregation_info ()
 
const AggregationInfo get_aggregation_info () const
 
AggregationInfo mutable_aggregationInfo ()
 
bool has_currency_conversion_rate () const
 
void clear_currency_conversion_rate ()
 
double get_currency_conversion_rate () const
 
void set_currency_conversion_rate (double value)
 
bool has_effective_time () const
 
void clear_effective_time ()
 
const StringPiece get_effective_time () const
 
void set_effective_time (const StringPiece &value)
 
bool has_pricing_expression () const
 
void clear_pricing_expression ()
 
const PricingExpression get_pricing_expression () const
 
PricingExpression mutable_pricingExpression ()
 
bool has_summary () const
 
void clear_summary ()
 
const StringPiece get_summary () const
 
void set_summary (const StringPiece &value)
 

Static Public Member Functions

static PricingInfoNew ()
 

Detailed Description

Represents the pricing information for a SKU at a single point of time.

Constructor & Destructor Documentation

◆ PricingInfo() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ PricingInfo() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~PricingInfo()

google_cloudbilling_api::PricingInfo::~PricingInfo ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_aggregation_info()

void google_cloudbilling_api::PricingInfo::clear_aggregation_info ( )
inline

Clears the 'aggregationInfo' attribute.

◆ clear_currency_conversion_rate()

void google_cloudbilling_api::PricingInfo::clear_currency_conversion_rate ( )
inline

Clears the 'currencyConversionRate' attribute.

◆ clear_effective_time()

void google_cloudbilling_api::PricingInfo::clear_effective_time ( )
inline

Clears the 'effectiveTime' attribute.

◆ clear_pricing_expression()

void google_cloudbilling_api::PricingInfo::clear_pricing_expression ( )
inline

Clears the 'pricingExpression' attribute.

◆ clear_summary()

void google_cloudbilling_api::PricingInfo::clear_summary ( )
inline

Clears the 'summary' attribute.

◆ get_aggregation_info()

const AggregationInfo google_cloudbilling_api::PricingInfo::get_aggregation_info ( ) const

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

◆ get_currency_conversion_rate()

double google_cloudbilling_api::PricingInfo::get_currency_conversion_rate ( ) const
inline

Get the value of the 'currencyConversionRate' attribute.

◆ get_effective_time()

const StringPiece google_cloudbilling_api::PricingInfo::get_effective_time ( ) const
inline

Get the value of the 'effectiveTime' attribute.

◆ get_pricing_expression()

const PricingExpression google_cloudbilling_api::PricingInfo::get_pricing_expression ( ) const

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

◆ get_summary()

const StringPiece google_cloudbilling_api::PricingInfo::get_summary ( ) const
inline

Get the value of the 'summary' attribute.

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_cloudbilling_api::PricingInfo

◆ has_aggregation_info()

bool google_cloudbilling_api::PricingInfo::has_aggregation_info ( ) const
inline

Determine if the 'aggregationInfo' attribute was set.

Returns
true if the 'aggregationInfo' attribute was set.

◆ has_currency_conversion_rate()

bool google_cloudbilling_api::PricingInfo::has_currency_conversion_rate ( ) const
inline

Determine if the 'currencyConversionRate' attribute was set.

Returns
true if the 'currencyConversionRate' attribute was set.

◆ has_effective_time()

bool google_cloudbilling_api::PricingInfo::has_effective_time ( ) const
inline

Determine if the 'effectiveTime' attribute was set.

Returns
true if the 'effectiveTime' attribute was set.

◆ has_pricing_expression()

bool google_cloudbilling_api::PricingInfo::has_pricing_expression ( ) const
inline

Determine if the 'pricingExpression' attribute was set.

Returns
true if the 'pricingExpression' attribute was set.

◆ has_summary()

bool google_cloudbilling_api::PricingInfo::has_summary ( ) const
inline

Determine if the 'summary' attribute was set.

Returns
true if the 'summary' attribute was set.

◆ mutable_aggregationInfo()

AggregationInfo google_cloudbilling_api::PricingInfo::mutable_aggregationInfo ( )

Gets a reference to a mutable value of the 'aggregationInfo' property.

Aggregation Info. This can be left unspecified if the pricing expression doesn't require aggregation.

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

◆ mutable_pricingExpression()

PricingExpression google_cloudbilling_api::PricingInfo::mutable_pricingExpression ( )

Gets a reference to a mutable value of the 'pricingExpression' property.

Expresses the pricing formula. See PricingExpression for an example.

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

◆ New()

PricingInfo * google_cloudbilling_api::PricingInfo::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_currency_conversion_rate()

void google_cloudbilling_api::PricingInfo::set_currency_conversion_rate ( double  value)
inline

Change the 'currencyConversionRate' attribute.

Conversion rate used for currency conversion, from USD to the currency specified in the request. This includes any surcharge collected for billing in non USD currency. If a currency is not specified in the request this defaults to 1.0. Example: USD * currency_conversion_rate = JPY.

Parameters
[in]valueThe new value.

◆ set_effective_time()

void google_cloudbilling_api::PricingInfo::set_effective_time ( const StringPiece &  value)
inline

Change the 'effectiveTime' attribute.

The timestamp from which this pricing was effective within the requested time range. This is guaranteed to be greater than or equal to the start_time field in the request and less than the end_time field in the request. If a time range was not specified in the request this field will be equivalent to a time within the last 12 hours, indicating the latest pricing info.

Parameters
[in]valueThe new value.

◆ set_summary()

void google_cloudbilling_api::PricingInfo::set_summary ( const StringPiece &  value)
inline

Change the 'summary' attribute.

An optional human readable summary of the pricing information, has a maximum length of 256 characters.

Parameters
[in]valueThe new value.

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