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

#include <project_billing_info.h>

Inheritance diagram for google_cloudbilling_api::ProjectBillingInfo:

Public Member Functions

 ProjectBillingInfo (const Json::Value &storage)
 
 ProjectBillingInfo (Json::Value *storage)
 
virtual ~ProjectBillingInfo ()
 
const StringPiece GetTypeName () const
 
bool has_billing_account_name () const
 
void clear_billing_account_name ()
 
const StringPiece get_billing_account_name () const
 
void set_billing_account_name (const StringPiece &value)
 
bool has_billing_enabled () const
 
void clear_billing_enabled ()
 
bool get_billing_enabled () const
 
void set_billing_enabled (bool value)
 
bool has_name () const
 
void clear_name ()
 
const StringPiece get_name () const
 
void set_name (const StringPiece &value)
 
bool has_project_id () const
 
void clear_project_id ()
 
const StringPiece get_project_id () const
 
void set_project_id (const StringPiece &value)
 

Static Public Member Functions

static ProjectBillingInfoNew ()
 

Detailed Description

Encapsulation of billing information for a GCP Console project. A project has at most one associated billing account at a time (but a billing account can be assigned to multiple projects).

Constructor & Destructor Documentation

◆ ProjectBillingInfo() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ ProjectBillingInfo() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~ProjectBillingInfo()

google_cloudbilling_api::ProjectBillingInfo::~ProjectBillingInfo ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_billing_account_name()

void google_cloudbilling_api::ProjectBillingInfo::clear_billing_account_name ( )
inline

Clears the 'billingAccountName' attribute.

◆ clear_billing_enabled()

void google_cloudbilling_api::ProjectBillingInfo::clear_billing_enabled ( )
inline

Clears the 'billingEnabled' attribute.

◆ clear_name()

void google_cloudbilling_api::ProjectBillingInfo::clear_name ( )
inline

Clears the 'name' attribute.

◆ clear_project_id()

void google_cloudbilling_api::ProjectBillingInfo::clear_project_id ( )
inline

Clears the 'projectId' attribute.

◆ get_billing_account_name()

const StringPiece google_cloudbilling_api::ProjectBillingInfo::get_billing_account_name ( ) const
inline

Get the value of the 'billingAccountName' attribute.

◆ get_billing_enabled()

bool google_cloudbilling_api::ProjectBillingInfo::get_billing_enabled ( ) const
inline

Get the value of the 'billingEnabled' attribute.

◆ get_name()

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

Get the value of the 'name' attribute.

◆ get_project_id()

const StringPiece google_cloudbilling_api::ProjectBillingInfo::get_project_id ( ) const
inline

Get the value of the 'projectId' attribute.

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_cloudbilling_api::ProjectBillingInfo

◆ has_billing_account_name()

bool google_cloudbilling_api::ProjectBillingInfo::has_billing_account_name ( ) const
inline

Determine if the 'billingAccountName' attribute was set.

Returns
true if the 'billingAccountName' attribute was set.

◆ has_billing_enabled()

bool google_cloudbilling_api::ProjectBillingInfo::has_billing_enabled ( ) const
inline

Determine if the 'billingEnabled' attribute was set.

Returns
true if the 'billingEnabled' attribute was set.

◆ has_name()

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

Determine if the 'name' attribute was set.

Returns
true if the 'name' attribute was set.

◆ has_project_id()

bool google_cloudbilling_api::ProjectBillingInfo::has_project_id ( ) const
inline

Determine if the 'projectId' attribute was set.

Returns
true if the 'projectId' attribute was set.

◆ New()

ProjectBillingInfo * google_cloudbilling_api::ProjectBillingInfo::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_billing_account_name()

void google_cloudbilling_api::ProjectBillingInfo::set_billing_account_name ( const StringPiece &  value)
inline

Change the 'billingAccountName' attribute.

The resource name of the billing account associated with the project, if any. For example, billingAccounts/012345-567890-ABCDEF.

Parameters
[in]valueThe new value.

◆ set_billing_enabled()

void google_cloudbilling_api::ProjectBillingInfo::set_billing_enabled ( bool  value)
inline

Change the 'billingEnabled' attribute.

True if the project is associated with an open billing account, to which usage on the project is charged. False if the project is associated with a closed billing account, or no billing account at all, and therefore cannot use paid services. This field is read-only.

Parameters
[in]valueThe new value.

◆ set_name()

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

Change the 'name' attribute.

The resource name for the ProjectBillingInfo; has the form projects/{project_id}/billingInfo. For example, the resource name for the billing information for project tokyo-rain-123 would be projects/tokyo-rain-123/billingInfo. This field is read-only.

Parameters
[in]valueThe new value.

◆ set_project_id()

void google_cloudbilling_api::ProjectBillingInfo::set_project_id ( const StringPiece &  value)
inline

Change the 'projectId' attribute.

The ID of the project that this ProjectBillingInfo represents, such as tokyo-rain-123. This is a convenience field so that you don't need to parse the name field to obtain a project ID. This field is read-only.

Parameters
[in]valueThe new value.

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