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

#include <named_port.h>

Inheritance diagram for google_compute_api::NamedPort:

Public Member Functions

 NamedPort (const Json::Value &storage)
 
 NamedPort (Json::Value *storage)
 
virtual ~NamedPort ()
 
const StringPiece GetTypeName () const
 
bool has_name () const
 
void clear_name ()
 
const StringPiece get_name () const
 
void set_name (const StringPiece &value)
 
bool has_port () const
 
void clear_port ()
 
int32 get_port () const
 
void set_port (int32 value)
 

Static Public Member Functions

static NamedPortNew ()
 

Detailed Description

The named port. For example: .

Constructor & Destructor Documentation

◆ NamedPort() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ NamedPort() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~NamedPort()

google_compute_api::NamedPort::~NamedPort ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_name()

void google_compute_api::NamedPort::clear_name ( )
inline

Clears the 'name' attribute.

◆ clear_port()

void google_compute_api::NamedPort::clear_port ( )
inline

Clears the 'port' attribute.

◆ get_name()

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

Get the value of the 'name' attribute.

◆ get_port()

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

Get the value of the 'port' attribute.

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_compute_api::NamedPort

◆ has_name()

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

Determine if the 'name' attribute was set.

Returns
true if the 'name' attribute was set.

◆ has_port()

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

Determine if the 'port' attribute was set.

Returns
true if the 'port' attribute was set.

◆ New()

NamedPort * google_compute_api::NamedPort::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_name()

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

Change the 'name' attribute.

The name for this named port. The name must be 1-63 characters long, and comply with RFC1035.

Parameters
[in]valueThe new value.

◆ set_port()

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

Change the 'port' attribute.

The port number, which can be a value between 1 and 65535.

Parameters
[in]valueThe new value.

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