sqladmin  v1beta4
Public Member Functions | Static Public Member Functions | List of all members
google_sqladmin_api::Flag Class Reference

#include <flag.h>

Inheritance diagram for google_sqladmin_api::Flag:

Public Member Functions

 Flag (const Json::Value &storage)
 
 Flag (Json::Value *storage)
 
virtual ~Flag ()
 
const StringPiece GetTypeName () const
 
bool has_allowed_string_values () const
 
void clear_allowed_string_values ()
 
const client::JsonCppArray< string > get_allowed_string_values () const
 
client::JsonCppArray< string > mutable_allowedStringValues ()
 
bool has_applies_to () const
 
void clear_applies_to ()
 
const client::JsonCppArray< string > get_applies_to () const
 
client::JsonCppArray< string > mutable_appliesTo ()
 
bool has_in_beta () const
 
void clear_in_beta ()
 
bool get_in_beta () const
 
void set_in_beta (bool value)
 
bool has_kind () const
 
void clear_kind ()
 
const StringPiece get_kind () const
 
void set_kind (const StringPiece &value)
 
bool has_max_value () const
 
void clear_max_value ()
 
int64 get_max_value () const
 
void set_max_value (int64 value)
 
bool has_min_value () const
 
void clear_min_value ()
 
int64 get_min_value () const
 
void set_min_value (int64 value)
 
bool has_name () const
 
void clear_name ()
 
const StringPiece get_name () const
 
void set_name (const StringPiece &value)
 
bool has_requires_restart () const
 
void clear_requires_restart ()
 
bool get_requires_restart () const
 
void set_requires_restart (bool value)
 
bool has_type () const
 
void clear_type ()
 
const StringPiece get_type () const
 
void set_type (const StringPiece &value)
 

Static Public Member Functions

static FlagNew ()
 

Detailed Description

A flag resource.

Constructor & Destructor Documentation

◆ Flag() [1/2]

google_sqladmin_api::Flag::Flag ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

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

◆ Flag() [2/2]

google_sqladmin_api::Flag::Flag ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

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

◆ ~Flag()

google_sqladmin_api::Flag::~Flag ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_allowed_string_values()

void google_sqladmin_api::Flag::clear_allowed_string_values ( )
inline

Clears the 'allowedStringValues' attribute.

◆ clear_applies_to()

void google_sqladmin_api::Flag::clear_applies_to ( )
inline

Clears the 'appliesTo' attribute.

◆ clear_in_beta()

void google_sqladmin_api::Flag::clear_in_beta ( )
inline

Clears the 'inBeta' attribute.

◆ clear_kind()

void google_sqladmin_api::Flag::clear_kind ( )
inline

Clears the 'kind' attribute.

◆ clear_max_value()

void google_sqladmin_api::Flag::clear_max_value ( )
inline

Clears the 'maxValue' attribute.

◆ clear_min_value()

void google_sqladmin_api::Flag::clear_min_value ( )
inline

Clears the 'minValue' attribute.

◆ clear_name()

void google_sqladmin_api::Flag::clear_name ( )
inline

Clears the 'name' attribute.

◆ clear_requires_restart()

void google_sqladmin_api::Flag::clear_requires_restart ( )
inline

Clears the 'requiresRestart' attribute.

◆ clear_type()

void google_sqladmin_api::Flag::clear_type ( )
inline

Clears the 'type' attribute.

◆ get_allowed_string_values()

const client::JsonCppArray<string > google_sqladmin_api::Flag::get_allowed_string_values ( ) const
inline

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

◆ get_applies_to()

const client::JsonCppArray<string > google_sqladmin_api::Flag::get_applies_to ( ) const
inline

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

◆ get_in_beta()

bool google_sqladmin_api::Flag::get_in_beta ( ) const
inline

Get the value of the 'inBeta' attribute.

◆ get_kind()

const StringPiece google_sqladmin_api::Flag::get_kind ( ) const
inline

Get the value of the 'kind' attribute.

◆ get_max_value()

int64 google_sqladmin_api::Flag::get_max_value ( ) const
inline

Get the value of the 'maxValue' attribute.

◆ get_min_value()

int64 google_sqladmin_api::Flag::get_min_value ( ) const
inline

Get the value of the 'minValue' attribute.

◆ get_name()

const StringPiece google_sqladmin_api::Flag::get_name ( ) const
inline

Get the value of the 'name' attribute.

◆ get_requires_restart()

bool google_sqladmin_api::Flag::get_requires_restart ( ) const
inline

Get the value of the 'requiresRestart' attribute.

◆ get_type()

const StringPiece google_sqladmin_api::Flag::get_type ( ) const
inline

Get the value of the 'type' attribute.

◆ GetTypeName()

const StringPiece google_sqladmin_api::Flag::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_sqladmin_api::Flag

◆ has_allowed_string_values()

bool google_sqladmin_api::Flag::has_allowed_string_values ( ) const
inline

Determine if the 'allowedStringValues' attribute was set.

Returns
true if the 'allowedStringValues' attribute was set.

◆ has_applies_to()

bool google_sqladmin_api::Flag::has_applies_to ( ) const
inline

Determine if the 'appliesTo' attribute was set.

Returns
true if the 'appliesTo' attribute was set.

◆ has_in_beta()

bool google_sqladmin_api::Flag::has_in_beta ( ) const
inline

Determine if the 'inBeta' attribute was set.

Returns
true if the 'inBeta' attribute was set.

◆ has_kind()

bool google_sqladmin_api::Flag::has_kind ( ) const
inline

Determine if the 'kind' attribute was set.

Returns
true if the 'kind' attribute was set.

◆ has_max_value()

bool google_sqladmin_api::Flag::has_max_value ( ) const
inline

Determine if the 'maxValue' attribute was set.

Returns
true if the 'maxValue' attribute was set.

◆ has_min_value()

bool google_sqladmin_api::Flag::has_min_value ( ) const
inline

Determine if the 'minValue' attribute was set.

Returns
true if the 'minValue' attribute was set.

◆ has_name()

bool google_sqladmin_api::Flag::has_name ( ) const
inline

Determine if the 'name' attribute was set.

Returns
true if the 'name' attribute was set.

◆ has_requires_restart()

bool google_sqladmin_api::Flag::has_requires_restart ( ) const
inline

Determine if the 'requiresRestart' attribute was set.

Returns
true if the 'requiresRestart' attribute was set.

◆ has_type()

bool google_sqladmin_api::Flag::has_type ( ) const
inline

Determine if the 'type' attribute was set.

Returns
true if the 'type' attribute was set.

◆ mutable_allowedStringValues()

client::JsonCppArray<string > google_sqladmin_api::Flag::mutable_allowedStringValues ( )
inline

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

For STRING flags, a list of strings that the value can be set to.

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

◆ mutable_appliesTo()

client::JsonCppArray<string > google_sqladmin_api::Flag::mutable_appliesTo ( )
inline

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

The database version this flag applies to. Can be MYSQL_5_5, MYSQL_5_6, or MYSQL_5_7. MYSQL_5_7 is applicable only to Second Generation instances.

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

◆ New()

Flag * google_sqladmin_api::Flag::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_in_beta()

void google_sqladmin_api::Flag::set_in_beta ( bool  value)
inline

Change the 'inBeta' attribute.

True if the flag is only released in Beta.

Parameters
[in]valueThe new value.

◆ set_kind()

void google_sqladmin_api::Flag::set_kind ( const StringPiece &  value)
inline

Change the 'kind' attribute.

This is always sql::flag.

Parameters
[in]valueThe new value.

◆ set_max_value()

void google_sqladmin_api::Flag::set_max_value ( int64  value)
inline

Change the 'maxValue' attribute.

For INTEGER flags, the maximum allowed value.

Parameters
[in]valueThe new value.

◆ set_min_value()

void google_sqladmin_api::Flag::set_min_value ( int64  value)
inline

Change the 'minValue' attribute.

For INTEGER flags, the minimum allowed value.

Parameters
[in]valueThe new value.

◆ set_name()

void google_sqladmin_api::Flag::set_name ( const StringPiece &  value)
inline

Change the 'name' attribute.

This is the name of the flag. Flag names always use underscores, not hyphens, e.g. max_allowed_packet.

Parameters
[in]valueThe new value.

◆ set_requires_restart()

void google_sqladmin_api::Flag::set_requires_restart ( bool  value)
inline

Change the 'requiresRestart' attribute.

Indicates whether changing this flag will trigger a database restart. Only applicable to Second Generation instances.

Parameters
[in]valueThe new value.

◆ set_type()

void google_sqladmin_api::Flag::set_type ( const StringPiece &  value)
inline

Change the 'type' attribute.

The type of the flag. Flags are typed to being BOOLEAN, STRING, INTEGER or NONE. NONE is used for flags which do not take a value, such as skip_grant_tables.

Parameters
[in]valueThe new value.

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