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

#include <router_nat_subnetwork_to_nat.h>

Inheritance diagram for google_compute_api::RouterNatSubnetworkToNat:

Public Member Functions

 RouterNatSubnetworkToNat (const Json::Value &storage)
 
 RouterNatSubnetworkToNat (Json::Value *storage)
 
virtual ~RouterNatSubnetworkToNat ()
 
const StringPiece GetTypeName () const
 
bool has_name () const
 
void clear_name ()
 
const StringPiece get_name () const
 
void set_name (const StringPiece &value)
 
bool has_secondary_ip_range_names () const
 
void clear_secondary_ip_range_names ()
 
const client::JsonCppArray< string > get_secondary_ip_range_names () const
 
client::JsonCppArray< string > mutable_secondaryIpRangeNames ()
 
bool has_source_ip_ranges_to_nat () const
 
void clear_source_ip_ranges_to_nat ()
 
const client::JsonCppArray< string > get_source_ip_ranges_to_nat () const
 
client::JsonCppArray< string > mutable_sourceIpRangesToNat ()
 

Static Public Member Functions

static RouterNatSubnetworkToNatNew ()
 

Detailed Description

Defines the IP ranges that want to use NAT for a subnetwork.

Constructor & Destructor Documentation

◆ RouterNatSubnetworkToNat() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ RouterNatSubnetworkToNat() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~RouterNatSubnetworkToNat()

google_compute_api::RouterNatSubnetworkToNat::~RouterNatSubnetworkToNat ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_name()

void google_compute_api::RouterNatSubnetworkToNat::clear_name ( )
inline

Clears the 'name' attribute.

◆ clear_secondary_ip_range_names()

void google_compute_api::RouterNatSubnetworkToNat::clear_secondary_ip_range_names ( )
inline

Clears the 'secondaryIpRangeNames' attribute.

◆ clear_source_ip_ranges_to_nat()

void google_compute_api::RouterNatSubnetworkToNat::clear_source_ip_ranges_to_nat ( )
inline

Clears the 'sourceIpRangesToNat' attribute.

◆ get_name()

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

Get the value of the 'name' attribute.

◆ get_secondary_ip_range_names()

const client::JsonCppArray<string > google_compute_api::RouterNatSubnetworkToNat::get_secondary_ip_range_names ( ) const
inline

Get a reference to the value of the 'secondaryIpRangeNames' attribute.

◆ get_source_ip_ranges_to_nat()

const client::JsonCppArray<string > google_compute_api::RouterNatSubnetworkToNat::get_source_ip_ranges_to_nat ( ) const
inline

Get a reference to the value of the 'sourceIpRangesToNat' attribute.

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_compute_api::RouterNatSubnetworkToNat

◆ has_name()

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

Determine if the 'name' attribute was set.

Returns
true if the 'name' attribute was set.

◆ has_secondary_ip_range_names()

bool google_compute_api::RouterNatSubnetworkToNat::has_secondary_ip_range_names ( ) const
inline

Determine if the 'secondaryIpRangeNames' attribute was set.

Returns
true if the 'secondaryIpRangeNames' attribute was set.

◆ has_source_ip_ranges_to_nat()

bool google_compute_api::RouterNatSubnetworkToNat::has_source_ip_ranges_to_nat ( ) const
inline

Determine if the 'sourceIpRangesToNat' attribute was set.

Returns
true if the 'sourceIpRangesToNat' attribute was set.

◆ mutable_secondaryIpRangeNames()

client::JsonCppArray<string > google_compute_api::RouterNatSubnetworkToNat::mutable_secondaryIpRangeNames ( )
inline

Gets a reference to a mutable value of the 'secondaryIpRangeNames' property.

A list of the secondary ranges of the Subnetwork that are allowed to use NAT. This can be populated only if "LIST_OF_SECONDARY_IP_RANGES" is one of the values in source_ip_ranges_to_nat.

Returns
The result can be modified to change the attribute value.

◆ mutable_sourceIpRangesToNat()

client::JsonCppArray<string > google_compute_api::RouterNatSubnetworkToNat::mutable_sourceIpRangesToNat ( )
inline

Gets a reference to a mutable value of the 'sourceIpRangesToNat' property.

Specify the options for NAT ranges in the Subnetwork. All usages of single value are valid except NAT_IP_RANGE_OPTION_UNSPECIFIED. The only valid option with multiple values is: ["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"] Default: [ALL_IP_RANGES].

Returns
The result can be modified to change the attribute value.

◆ New()

RouterNatSubnetworkToNat * google_compute_api::RouterNatSubnetworkToNat::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_name()

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

Change the 'name' attribute.

URL for the subnetwork resource to use NAT.

Parameters
[in]valueThe new value.

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