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

#include <access_config.h>

Inheritance diagram for google_compute_api::AccessConfig:

Public Member Functions

 AccessConfig (const Json::Value &storage)
 
 AccessConfig (Json::Value *storage)
 
virtual ~AccessConfig ()
 
const StringPiece GetTypeName () const
 
bool has_kind () const
 
void clear_kind ()
 
const StringPiece get_kind () const
 
void set_kind (const StringPiece &value)
 
bool has_name () const
 
void clear_name ()
 
const StringPiece get_name () const
 
void set_name (const StringPiece &value)
 
bool has_nat_ip () const
 
void clear_nat_ip ()
 
const StringPiece get_nat_ip () const
 
void set_nat_ip (const StringPiece &value)
 
bool has_network_tier () const
 
void clear_network_tier ()
 
const StringPiece get_network_tier () const
 
void set_network_tier (const StringPiece &value)
 
bool has_public_ptr_domain_name () const
 
void clear_public_ptr_domain_name ()
 
const StringPiece get_public_ptr_domain_name () const
 
void set_public_ptr_domain_name (const StringPiece &value)
 
bool has_set_public_ptr () const
 
void clear_set_public_ptr ()
 
bool get_set_public_ptr () const
 
void set_set_public_ptr (bool value)
 
bool has_type () const
 
void clear_type ()
 
const StringPiece get_type () const
 
void set_type (const StringPiece &value)
 

Static Public Member Functions

static AccessConfigNew ()
 

Detailed Description

An access configuration attached to an instance's network interface. Only one access config per instance is supported.

Constructor & Destructor Documentation

◆ AccessConfig() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ AccessConfig() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~AccessConfig()

google_compute_api::AccessConfig::~AccessConfig ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_kind()

void google_compute_api::AccessConfig::clear_kind ( )
inline

Clears the 'kind' attribute.

◆ clear_name()

void google_compute_api::AccessConfig::clear_name ( )
inline

Clears the 'name' attribute.

◆ clear_nat_ip()

void google_compute_api::AccessConfig::clear_nat_ip ( )
inline

Clears the 'natIP' attribute.

◆ clear_network_tier()

void google_compute_api::AccessConfig::clear_network_tier ( )
inline

Clears the 'networkTier' attribute.

◆ clear_public_ptr_domain_name()

void google_compute_api::AccessConfig::clear_public_ptr_domain_name ( )
inline

Clears the 'publicPtrDomainName' attribute.

◆ clear_set_public_ptr()

void google_compute_api::AccessConfig::clear_set_public_ptr ( )
inline

Clears the 'setPublicPtr' attribute.

◆ clear_type()

void google_compute_api::AccessConfig::clear_type ( )
inline

Clears the 'type' attribute.

◆ get_kind()

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

Get the value of the 'kind' attribute.

◆ get_name()

const StringPiece google_compute_api::AccessConfig::get_name ( ) const
inline

Get the value of the 'name' attribute.

◆ get_nat_ip()

const StringPiece google_compute_api::AccessConfig::get_nat_ip ( ) const
inline

Get the value of the 'natIP' attribute.

◆ get_network_tier()

const StringPiece google_compute_api::AccessConfig::get_network_tier ( ) const
inline

Get the value of the 'networkTier' attribute.

◆ get_public_ptr_domain_name()

const StringPiece google_compute_api::AccessConfig::get_public_ptr_domain_name ( ) const
inline

Get the value of the 'publicPtrDomainName' attribute.

◆ get_set_public_ptr()

bool google_compute_api::AccessConfig::get_set_public_ptr ( ) const
inline

Get the value of the 'setPublicPtr' attribute.

◆ get_type()

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

Get the value of the 'type' attribute.

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_compute_api::AccessConfig

◆ has_kind()

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

Determine if the 'kind' attribute was set.

Returns
true if the 'kind' attribute was set.

◆ has_name()

bool google_compute_api::AccessConfig::has_name ( ) const
inline

Determine if the 'name' attribute was set.

Returns
true if the 'name' attribute was set.

◆ has_nat_ip()

bool google_compute_api::AccessConfig::has_nat_ip ( ) const
inline

Determine if the 'natIP' attribute was set.

Returns
true if the 'natIP' attribute was set.

◆ has_network_tier()

bool google_compute_api::AccessConfig::has_network_tier ( ) const
inline

Determine if the 'networkTier' attribute was set.

Returns
true if the 'networkTier' attribute was set.

◆ has_public_ptr_domain_name()

bool google_compute_api::AccessConfig::has_public_ptr_domain_name ( ) const
inline

Determine if the 'publicPtrDomainName' attribute was set.

Returns
true if the 'publicPtrDomainName' attribute was set.

◆ has_set_public_ptr()

bool google_compute_api::AccessConfig::has_set_public_ptr ( ) const
inline

Determine if the 'setPublicPtr' attribute was set.

Returns
true if the 'setPublicPtr' attribute was set.

◆ has_type()

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

Determine if the 'type' attribute was set.

Returns
true if the 'type' attribute was set.

◆ New()

AccessConfig * google_compute_api::AccessConfig::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_kind()

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

Change the 'kind' attribute.

[Output Only] Type of the resource. Always compute::accessConfig for access configs.

Parameters
[in]valueThe new value.

◆ set_name()

void google_compute_api::AccessConfig::set_name ( const StringPiece &  value)
inline

Change the 'name' attribute.

The name of this access configuration. The default and recommended name is External NAT but you can use any arbitrary string you would like. For example, My external IP or Network Access.

Parameters
[in]valueThe new value.

◆ set_nat_ip()

void google_compute_api::AccessConfig::set_nat_ip ( const StringPiece &  value)
inline

Change the 'natIP' attribute.

An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.

Parameters
[in]valueThe new value.

◆ set_network_tier()

void google_compute_api::AccessConfig::set_network_tier ( const StringPiece &  value)
inline

Change the 'networkTier' attribute.

This signifies the networking tier used for configuring this access configuration and can only take the following values: PREMIUM, STANDARD.

If an AccessConfig is specified without a valid external IP address, an ephemeral IP will be created with this networkTier.

If an AccessConfig with a valid external IP address is specified, it must match that of the networkTier associated with the Address resource owning that IP.

Parameters
[in]valueThe new value.

◆ set_public_ptr_domain_name()

void google_compute_api::AccessConfig::set_public_ptr_domain_name ( const StringPiece &  value)
inline

Change the 'publicPtrDomainName' attribute.

The DNS domain name for the public PTR record. This field can only be set when the set_public_ptr field is enabled.

Parameters
[in]valueThe new value.

◆ set_set_public_ptr()

void google_compute_api::AccessConfig::set_set_public_ptr ( bool  value)
inline

Change the 'setPublicPtr' attribute.

Specifies whether a public DNS ?PTR? record should be created to map the external IP address of the instance to a DNS domain name.

Parameters
[in]valueThe new value.

◆ set_type()

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

Change the 'type' attribute.

The type of configuration. The default and only option is ONE_TO_ONE_NAT.

Parameters
[in]valueThe new value.

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