compute  v1
Public Member Functions | Static Public Member Functions | List of all members
google_compute_api::XpnResourceId Class Reference

#include <xpn_resource_id.h>

Inheritance diagram for google_compute_api::XpnResourceId:

Public Member Functions

 XpnResourceId (const Json::Value &storage)
 
 XpnResourceId (Json::Value *storage)
 
virtual ~XpnResourceId ()
 
const StringPiece GetTypeName () const
 
bool has_id () const
 
void clear_id ()
 
const StringPiece get_id () const
 
void set_id (const StringPiece &value)
 
bool has_type () const
 
void clear_type ()
 
const StringPiece get_type () const
 
void set_type (const StringPiece &value)
 

Static Public Member Functions

static XpnResourceIdNew ()
 

Detailed Description

Service resource (a.k.a service project) ID.

Constructor & Destructor Documentation

◆ XpnResourceId() [1/2]

google_compute_api::XpnResourceId::XpnResourceId ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

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

◆ XpnResourceId() [2/2]

google_compute_api::XpnResourceId::XpnResourceId ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

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

◆ ~XpnResourceId()

google_compute_api::XpnResourceId::~XpnResourceId ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_id()

void google_compute_api::XpnResourceId::clear_id ( )
inline

Clears the 'id' attribute.

◆ clear_type()

void google_compute_api::XpnResourceId::clear_type ( )
inline

Clears the 'type' attribute.

◆ get_id()

const StringPiece google_compute_api::XpnResourceId::get_id ( ) const
inline

Get the value of the 'id' attribute.

◆ get_type()

const StringPiece google_compute_api::XpnResourceId::get_type ( ) const
inline

Get the value of the 'type' attribute.

◆ GetTypeName()

const StringPiece google_compute_api::XpnResourceId::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_compute_api::XpnResourceId

◆ has_id()

bool google_compute_api::XpnResourceId::has_id ( ) const
inline

Determine if the 'id' attribute was set.

Returns
true if the 'id' attribute was set.

◆ has_type()

bool google_compute_api::XpnResourceId::has_type ( ) const
inline

Determine if the 'type' attribute was set.

Returns
true if the 'type' attribute was set.

◆ New()

XpnResourceId * google_compute_api::XpnResourceId::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_id()

void google_compute_api::XpnResourceId::set_id ( const StringPiece &  value)
inline

Change the 'id' attribute.

The ID of the service resource. In the case of projects, this field supports project id (e.g., my-project-123) and project number (e.g. 12345678).

Parameters
[in]valueThe new value.

◆ set_type()

void google_compute_api::XpnResourceId::set_type ( const StringPiece &  value)
inline

Change the 'type' attribute.

The type of the service resource.

Parameters
[in]valueThe new value.

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