container  v1
Public Member Functions | Static Public Member Functions | List of all members
google_container_api::ReservationAffinity Class Reference

#include <reservation_affinity.h>

Inheritance diagram for google_container_api::ReservationAffinity:

Public Member Functions

 ReservationAffinity (const Json::Value &storage)
 
 ReservationAffinity (Json::Value *storage)
 
virtual ~ReservationAffinity ()
 
const StringPiece GetTypeName () const
 
bool has_consume_reservation_type () const
 
void clear_consume_reservation_type ()
 
const StringPiece get_consume_reservation_type () const
 
void set_consume_reservation_type (const StringPiece &value)
 
bool has_key () const
 
void clear_key ()
 
const StringPiece get_key () const
 
void set_key (const StringPiece &value)
 
bool has_values () const
 
void clear_values ()
 
const client::JsonCppArray< string > get_values () const
 
client::JsonCppArray< string > mutable_values ()
 

Static Public Member Functions

static ReservationAffinityNew ()
 

Detailed Description

ReservationAffinity is the configuration of desired reservation which instances could take capacity from.

Constructor & Destructor Documentation

◆ ReservationAffinity() [1/2]

google_container_api::ReservationAffinity::ReservationAffinity ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

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

◆ ReservationAffinity() [2/2]

google_container_api::ReservationAffinity::ReservationAffinity ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

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

◆ ~ReservationAffinity()

google_container_api::ReservationAffinity::~ReservationAffinity ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_consume_reservation_type()

void google_container_api::ReservationAffinity::clear_consume_reservation_type ( )
inline

Clears the 'consumeReservationType' attribute.

◆ clear_key()

void google_container_api::ReservationAffinity::clear_key ( )
inline

Clears the 'key' attribute.

◆ clear_values()

void google_container_api::ReservationAffinity::clear_values ( )
inline

Clears the 'values' attribute.

◆ get_consume_reservation_type()

const StringPiece google_container_api::ReservationAffinity::get_consume_reservation_type ( ) const
inline

Get the value of the 'consumeReservationType' attribute.

◆ get_key()

const StringPiece google_container_api::ReservationAffinity::get_key ( ) const
inline

Get the value of the 'key' attribute.

◆ get_values()

const client::JsonCppArray<string > google_container_api::ReservationAffinity::get_values ( ) const
inline

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

◆ GetTypeName()

const StringPiece google_container_api::ReservationAffinity::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_container_api::ReservationAffinity

◆ has_consume_reservation_type()

bool google_container_api::ReservationAffinity::has_consume_reservation_type ( ) const
inline

Determine if the 'consumeReservationType' attribute was set.

Returns
true if the 'consumeReservationType' attribute was set.

◆ has_key()

bool google_container_api::ReservationAffinity::has_key ( ) const
inline

Determine if the 'key' attribute was set.

Returns
true if the 'key' attribute was set.

◆ has_values()

bool google_container_api::ReservationAffinity::has_values ( ) const
inline

Determine if the 'values' attribute was set.

Returns
true if the 'values' attribute was set.

◆ mutable_values()

client::JsonCppArray<string > google_container_api::ReservationAffinity::mutable_values ( )
inline

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

Corresponds to the label value(s) of reservation resource(s).

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

◆ New()

ReservationAffinity * google_container_api::ReservationAffinity::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_consume_reservation_type()

void google_container_api::ReservationAffinity::set_consume_reservation_type ( const StringPiece &  value)
inline

Change the 'consumeReservationType' attribute.

Corresponds to the type of reservation consumption.

Parameters
[in]valueThe new value.

◆ set_key()

void google_container_api::ReservationAffinity::set_key ( const StringPiece &  value)
inline

Change the 'key' attribute.

Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify "googleapis.com/reservation-name" as the key and specify the name of your reservation as its value.

Parameters
[in]valueThe new value.

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