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

#include <host_rule.h>

Inheritance diagram for google_compute_api::HostRule:

Public Member Functions

 HostRule (const Json::Value &storage)
 
 HostRule (Json::Value *storage)
 
virtual ~HostRule ()
 
const StringPiece GetTypeName () const
 
bool has_description () const
 
void clear_description ()
 
const StringPiece get_description () const
 
void set_description (const StringPiece &value)
 
bool has_hosts () const
 
void clear_hosts ()
 
const client::JsonCppArray< string > get_hosts () const
 
client::JsonCppArray< string > mutable_hosts ()
 
bool has_path_matcher () const
 
void clear_path_matcher ()
 
const StringPiece get_path_matcher () const
 
void set_path_matcher (const StringPiece &value)
 

Static Public Member Functions

static HostRuleNew ()
 

Detailed Description

UrlMaps A host-matching rule for a URL. If matched, will use the named PathMatcher to select the BackendService.

Constructor & Destructor Documentation

◆ HostRule() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ HostRule() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~HostRule()

google_compute_api::HostRule::~HostRule ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_description()

void google_compute_api::HostRule::clear_description ( )
inline

Clears the 'description' attribute.

◆ clear_hosts()

void google_compute_api::HostRule::clear_hosts ( )
inline

Clears the 'hosts' attribute.

◆ clear_path_matcher()

void google_compute_api::HostRule::clear_path_matcher ( )
inline

Clears the 'pathMatcher' attribute.

◆ get_description()

const StringPiece google_compute_api::HostRule::get_description ( ) const
inline

Get the value of the 'description' attribute.

◆ get_hosts()

const client::JsonCppArray<string > google_compute_api::HostRule::get_hosts ( ) const
inline

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

◆ get_path_matcher()

const StringPiece google_compute_api::HostRule::get_path_matcher ( ) const
inline

Get the value of the 'pathMatcher' attribute.

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_compute_api::HostRule

◆ has_description()

bool google_compute_api::HostRule::has_description ( ) const
inline

Determine if the 'description' attribute was set.

Returns
true if the 'description' attribute was set.

◆ has_hosts()

bool google_compute_api::HostRule::has_hosts ( ) const
inline

Determine if the 'hosts' attribute was set.

Returns
true if the 'hosts' attribute was set.

◆ has_path_matcher()

bool google_compute_api::HostRule::has_path_matcher ( ) const
inline

Determine if the 'pathMatcher' attribute was set.

Returns
true if the 'pathMatcher' attribute was set.

◆ mutable_hosts()

client::JsonCppArray<string > google_compute_api::HostRule::mutable_hosts ( )
inline

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

The list of host patterns to match. They must be valid hostnames, except * will match any string of ([a-z0-9-.]*). In that case, * must be the first character and must be followed in the pattern by either - or ..

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

◆ New()

HostRule * google_compute_api::HostRule::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_description()

void google_compute_api::HostRule::set_description ( const StringPiece &  value)
inline

Change the 'description' attribute.

An optional description of this resource. Provide this property when you create the resource.

Parameters
[in]valueThe new value.

◆ set_path_matcher()

void google_compute_api::HostRule::set_path_matcher ( const StringPiece &  value)
inline

Change the 'pathMatcher' attribute.

The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL's host portion.

Parameters
[in]valueThe new value.

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