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

#include <reference.h>

Inheritance diagram for google_compute_api::Reference:

Public Member Functions

 Reference (const Json::Value &storage)
 
 Reference (Json::Value *storage)
 
virtual ~Reference ()
 
const StringPiece GetTypeName () const
 
bool has_kind () const
 
void clear_kind ()
 
const StringPiece get_kind () const
 
void set_kind (const StringPiece &value)
 
bool has_reference_type () const
 
void clear_reference_type ()
 
const StringPiece get_reference_type () const
 
void set_reference_type (const StringPiece &value)
 
bool has_referrer () const
 
void clear_referrer ()
 
const StringPiece get_referrer () const
 
void set_referrer (const StringPiece &value)
 
bool has_target () const
 
void clear_target ()
 
const StringPiece get_target () const
 
void set_target (const StringPiece &value)
 

Static Public Member Functions

static ReferenceNew ()
 

Detailed Description

Represents a reference to a resource.

Constructor & Destructor Documentation

◆ Reference() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ Reference() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~Reference()

google_compute_api::Reference::~Reference ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_kind()

void google_compute_api::Reference::clear_kind ( )
inline

Clears the 'kind' attribute.

◆ clear_reference_type()

void google_compute_api::Reference::clear_reference_type ( )
inline

Clears the 'referenceType' attribute.

◆ clear_referrer()

void google_compute_api::Reference::clear_referrer ( )
inline

Clears the 'referrer' attribute.

◆ clear_target()

void google_compute_api::Reference::clear_target ( )
inline

Clears the 'target' attribute.

◆ get_kind()

const StringPiece google_compute_api::Reference::get_kind ( ) const
inline

Get the value of the 'kind' attribute.

◆ get_reference_type()

const StringPiece google_compute_api::Reference::get_reference_type ( ) const
inline

Get the value of the 'referenceType' attribute.

◆ get_referrer()

const StringPiece google_compute_api::Reference::get_referrer ( ) const
inline

Get the value of the 'referrer' attribute.

◆ get_target()

const StringPiece google_compute_api::Reference::get_target ( ) const
inline

Get the value of the 'target' attribute.

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_compute_api::Reference

◆ has_kind()

bool google_compute_api::Reference::has_kind ( ) const
inline

Determine if the 'kind' attribute was set.

Returns
true if the 'kind' attribute was set.

◆ has_reference_type()

bool google_compute_api::Reference::has_reference_type ( ) const
inline

Determine if the 'referenceType' attribute was set.

Returns
true if the 'referenceType' attribute was set.

◆ has_referrer()

bool google_compute_api::Reference::has_referrer ( ) const
inline

Determine if the 'referrer' attribute was set.

Returns
true if the 'referrer' attribute was set.

◆ has_target()

bool google_compute_api::Reference::has_target ( ) const
inline

Determine if the 'target' attribute was set.

Returns
true if the 'target' attribute was set.

◆ New()

Reference * google_compute_api::Reference::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_kind()

void google_compute_api::Reference::set_kind ( const StringPiece &  value)
inline

Change the 'kind' attribute.

[Output Only] Type of the resource. Always compute::reference for references.

Parameters
[in]valueThe new value.

◆ set_reference_type()

void google_compute_api::Reference::set_reference_type ( const StringPiece &  value)
inline

Change the 'referenceType' attribute.

A description of the reference type with no implied semantics. Possible values include:

  • MEMBER_OF.
Parameters
[in]valueThe new value.

◆ set_referrer()

void google_compute_api::Reference::set_referrer ( const StringPiece &  value)
inline

Change the 'referrer' attribute.

URL of the resource which refers to the target.

Parameters
[in]valueThe new value.

◆ set_target()

void google_compute_api::Reference::set_target ( const StringPiece &  value)
inline

Change the 'target' attribute.

URL of the resource to which this reference points.

Parameters
[in]valueThe new value.

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