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

#include <billing_account.h>

Inheritance diagram for google_cloudbilling_api::BillingAccount:

Public Member Functions

 BillingAccount (const Json::Value &storage)
 
 BillingAccount (Json::Value *storage)
 
virtual ~BillingAccount ()
 
const StringPiece GetTypeName () const
 
bool has_display_name () const
 
void clear_display_name ()
 
const StringPiece get_display_name () const
 
void set_display_name (const StringPiece &value)
 
bool has_master_billing_account () const
 
void clear_master_billing_account ()
 
const StringPiece get_master_billing_account () const
 
void set_master_billing_account (const StringPiece &value)
 
bool has_name () const
 
void clear_name ()
 
const StringPiece get_name () const
 
void set_name (const StringPiece &value)
 
bool has_open () const
 
void clear_open ()
 
bool get_open () const
 
void set_open (bool value)
 

Static Public Member Functions

static BillingAccountNew ()
 

Detailed Description

A billing account in GCP Console. You can assign a billing account to one or more projects.

Constructor & Destructor Documentation

◆ BillingAccount() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ BillingAccount() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~BillingAccount()

google_cloudbilling_api::BillingAccount::~BillingAccount ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_display_name()

void google_cloudbilling_api::BillingAccount::clear_display_name ( )
inline

Clears the 'displayName' attribute.

◆ clear_master_billing_account()

void google_cloudbilling_api::BillingAccount::clear_master_billing_account ( )
inline

Clears the 'masterBillingAccount' attribute.

◆ clear_name()

void google_cloudbilling_api::BillingAccount::clear_name ( )
inline

Clears the 'name' attribute.

◆ clear_open()

void google_cloudbilling_api::BillingAccount::clear_open ( )
inline

Clears the 'open' attribute.

◆ get_display_name()

const StringPiece google_cloudbilling_api::BillingAccount::get_display_name ( ) const
inline

Get the value of the 'displayName' attribute.

◆ get_master_billing_account()

const StringPiece google_cloudbilling_api::BillingAccount::get_master_billing_account ( ) const
inline

Get the value of the 'masterBillingAccount' attribute.

◆ get_name()

const StringPiece google_cloudbilling_api::BillingAccount::get_name ( ) const
inline

Get the value of the 'name' attribute.

◆ get_open()

bool google_cloudbilling_api::BillingAccount::get_open ( ) const
inline

Get the value of the 'open' attribute.

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_cloudbilling_api::BillingAccount

◆ has_display_name()

bool google_cloudbilling_api::BillingAccount::has_display_name ( ) const
inline

Determine if the 'displayName' attribute was set.

Returns
true if the 'displayName' attribute was set.

◆ has_master_billing_account()

bool google_cloudbilling_api::BillingAccount::has_master_billing_account ( ) const
inline

Determine if the 'masterBillingAccount' attribute was set.

Returns
true if the 'masterBillingAccount' attribute was set.

◆ has_name()

bool google_cloudbilling_api::BillingAccount::has_name ( ) const
inline

Determine if the 'name' attribute was set.

Returns
true if the 'name' attribute was set.

◆ has_open()

bool google_cloudbilling_api::BillingAccount::has_open ( ) const
inline

Determine if the 'open' attribute was set.

Returns
true if the 'open' attribute was set.

◆ New()

BillingAccount * google_cloudbilling_api::BillingAccount::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_display_name()

void google_cloudbilling_api::BillingAccount::set_display_name ( const StringPiece &  value)
inline

Change the 'displayName' attribute.

The display name given to the billing account, such as My Billing Account. This name is displayed in the GCP Console.

Parameters
[in]valueThe new value.

◆ set_master_billing_account()

void google_cloudbilling_api::BillingAccount::set_master_billing_account ( const StringPiece &  value)
inline

Change the 'masterBillingAccount' attribute.

If this account is a subaccount, then this will be the resource name of the master billing account that it is being resold through. Otherwise this will be empty.

Parameters
[in]valueThe new value.

◆ set_name()

void google_cloudbilling_api::BillingAccount::set_name ( const StringPiece &  value)
inline

Change the 'name' attribute.

The resource name of the billing account. The resource name has the form billingAccounts/{billing_account_id}. For example, billingAccounts/012345-567890-ABCDEF would be the resource name for

billing account 012345-567890-ABCDEF.

Parameters
[in]valueThe new value.

◆ set_open()

void google_cloudbilling_api::BillingAccount::set_open ( bool  value)
inline

Change the 'open' attribute.

Output only. True if the billing account is open, and will therefore be charged for any usage on associated projects. False if the billing account is closed, and therefore projects associated with it will be unable to use paid services.

Parameters
[in]valueThe new value.

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