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

#include <network_endpoint.h>

Inheritance diagram for google_compute_api::NetworkEndpoint:

Public Member Functions

 NetworkEndpoint (const Json::Value &storage)
 
 NetworkEndpoint (Json::Value *storage)
 
virtual ~NetworkEndpoint ()
 
const StringPiece GetTypeName () const
 
bool has_instance () const
 
void clear_instance ()
 
const StringPiece get_instance () const
 
void set_instance (const StringPiece &value)
 
bool has_ip_address () const
 
void clear_ip_address ()
 
const StringPiece get_ip_address () const
 
void set_ip_address (const StringPiece &value)
 
bool has_port () const
 
void clear_port ()
 
int32 get_port () const
 
void set_port (int32 value)
 

Static Public Member Functions

static NetworkEndpointNew ()
 

Detailed Description

The network endpoint.

Constructor & Destructor Documentation

◆ NetworkEndpoint() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ NetworkEndpoint() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~NetworkEndpoint()

google_compute_api::NetworkEndpoint::~NetworkEndpoint ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_instance()

void google_compute_api::NetworkEndpoint::clear_instance ( )
inline

Clears the 'instance' attribute.

◆ clear_ip_address()

void google_compute_api::NetworkEndpoint::clear_ip_address ( )
inline

Clears the 'ipAddress' attribute.

◆ clear_port()

void google_compute_api::NetworkEndpoint::clear_port ( )
inline

Clears the 'port' attribute.

◆ get_instance()

const StringPiece google_compute_api::NetworkEndpoint::get_instance ( ) const
inline

Get the value of the 'instance' attribute.

◆ get_ip_address()

const StringPiece google_compute_api::NetworkEndpoint::get_ip_address ( ) const
inline

Get the value of the 'ipAddress' attribute.

◆ get_port()

int32 google_compute_api::NetworkEndpoint::get_port ( ) const
inline

Get the value of the 'port' attribute.

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_compute_api::NetworkEndpoint

◆ has_instance()

bool google_compute_api::NetworkEndpoint::has_instance ( ) const
inline

Determine if the 'instance' attribute was set.

Returns
true if the 'instance' attribute was set.

◆ has_ip_address()

bool google_compute_api::NetworkEndpoint::has_ip_address ( ) const
inline

Determine if the 'ipAddress' attribute was set.

Returns
true if the 'ipAddress' attribute was set.

◆ has_port()

bool google_compute_api::NetworkEndpoint::has_port ( ) const
inline

Determine if the 'port' attribute was set.

Returns
true if the 'port' attribute was set.

◆ New()

NetworkEndpoint * google_compute_api::NetworkEndpoint::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_instance()

void google_compute_api::NetworkEndpoint::set_instance ( const StringPiece &  value)
inline

Change the 'instance' attribute.

The name for a specific VM instance that the IP address belongs to. This is required for network endpoints of type GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group.

The name must be 1-63 characters long, and comply with RFC1035.

Parameters
[in]valueThe new value.

◆ set_ip_address()

void google_compute_api::NetworkEndpoint::set_ip_address ( const StringPiece &  value)
inline

Change the 'ipAddress' attribute.

Optional IPv4 address of network endpoint. The IP address must belong to a VM in GCE (either the primary IP or as part of an aliased IP range). If the IP address is not specified, then the primary IP address for the VM instance in the network that the network endpoint group belongs to will be used.

Parameters
[in]valueThe new value.

◆ set_port()

void google_compute_api::NetworkEndpoint::set_port ( int32  value)
inline

Change the 'port' attribute.

Optional port number of network endpoint. If not specified and the NetworkEndpointGroup.network_endpoint_type is GCE_IP_PORT, the defaultPort for the network endpoint group will be used.

Parameters
[in]valueThe new value.

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