compute
v1
|
#include <named_port.h>
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 NamedPort * | New () |
The named port. For example: .
|
explicit |
Standard constructor for an immutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
explicit |
Standard constructor for a mutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
virtual |
Standard destructor.
|
inline |
Clears the 'name
' attribute.
|
inline |
Clears the 'port
' attribute.
|
inline |
Get the value of the 'name
' attribute.
|
inline |
Get the value of the 'port
' attribute.
|
inline |
Returns a string denoting the type of this data object.
|
inline |
Determine if the 'name
' attribute was set.
name
' attribute was set.
|
inline |
Determine if the 'port
' attribute was set.
port
' attribute was set.
|
static |
Creates a new default instance.
|
inline |
Change the 'name
' attribute.
The name for this named port. The name must be 1-63 characters long, and comply with RFC1035.
[in] | value | The new value. |
|
inline |
Change the 'port
' attribute.
The port number, which can be a value between 1 and 65535.
[in] | value | The new value. |