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

#include <demote_master_context.h>

Inheritance diagram for google_sqladmin_api::DemoteMasterContext:

Public Member Functions

 DemoteMasterContext (const Json::Value &storage)
 
 DemoteMasterContext (Json::Value *storage)
 
virtual ~DemoteMasterContext ()
 
const StringPiece GetTypeName () const
 
bool has_kind () const
 
void clear_kind ()
 
const StringPiece get_kind () const
 
void set_kind (const StringPiece &value)
 
bool has_master_instance_name () const
 
void clear_master_instance_name ()
 
const StringPiece get_master_instance_name () const
 
void set_master_instance_name (const StringPiece &value)
 
bool has_replica_configuration () const
 
void clear_replica_configuration ()
 
const DemoteMasterConfiguration get_replica_configuration () const
 
DemoteMasterConfiguration mutable_replicaConfiguration ()
 
bool has_verify_gtid_consistency () const
 
void clear_verify_gtid_consistency ()
 
bool get_verify_gtid_consistency () const
 
void set_verify_gtid_consistency (bool value)
 

Static Public Member Functions

static DemoteMasterContextNew ()
 

Detailed Description

Database instance demote master context.

Constructor & Destructor Documentation

◆ DemoteMasterContext() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ DemoteMasterContext() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~DemoteMasterContext()

google_sqladmin_api::DemoteMasterContext::~DemoteMasterContext ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_kind()

void google_sqladmin_api::DemoteMasterContext::clear_kind ( )
inline

Clears the 'kind' attribute.

◆ clear_master_instance_name()

void google_sqladmin_api::DemoteMasterContext::clear_master_instance_name ( )
inline

Clears the 'masterInstanceName' attribute.

◆ clear_replica_configuration()

void google_sqladmin_api::DemoteMasterContext::clear_replica_configuration ( )
inline

Clears the 'replicaConfiguration' attribute.

◆ clear_verify_gtid_consistency()

void google_sqladmin_api::DemoteMasterContext::clear_verify_gtid_consistency ( )
inline

Clears the 'verifyGtidConsistency' attribute.

◆ get_kind()

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

Get the value of the 'kind' attribute.

◆ get_master_instance_name()

const StringPiece google_sqladmin_api::DemoteMasterContext::get_master_instance_name ( ) const
inline

Get the value of the 'masterInstanceName' attribute.

◆ get_replica_configuration()

const DemoteMasterConfiguration google_sqladmin_api::DemoteMasterContext::get_replica_configuration ( ) const

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

◆ get_verify_gtid_consistency()

bool google_sqladmin_api::DemoteMasterContext::get_verify_gtid_consistency ( ) const
inline

Get the value of the 'verifyGtidConsistency' attribute.

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_sqladmin_api::DemoteMasterContext

◆ has_kind()

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

Determine if the 'kind' attribute was set.

Returns
true if the 'kind' attribute was set.

◆ has_master_instance_name()

bool google_sqladmin_api::DemoteMasterContext::has_master_instance_name ( ) const
inline

Determine if the 'masterInstanceName' attribute was set.

Returns
true if the 'masterInstanceName' attribute was set.

◆ has_replica_configuration()

bool google_sqladmin_api::DemoteMasterContext::has_replica_configuration ( ) const
inline

Determine if the 'replicaConfiguration' attribute was set.

Returns
true if the 'replicaConfiguration' attribute was set.

◆ has_verify_gtid_consistency()

bool google_sqladmin_api::DemoteMasterContext::has_verify_gtid_consistency ( ) const
inline

Determine if the 'verifyGtidConsistency' attribute was set.

Returns
true if the 'verifyGtidConsistency' attribute was set.

◆ mutable_replicaConfiguration()

DemoteMasterConfiguration google_sqladmin_api::DemoteMasterContext::mutable_replicaConfiguration ( )

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

Configuration specific to read-replicas replicating from the on-premises master.

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

◆ New()

DemoteMasterContext * google_sqladmin_api::DemoteMasterContext::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_kind()

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

Change the 'kind' attribute.

This is always sql::demoteMasterContext.

Parameters
[in]valueThe new value.

◆ set_master_instance_name()

void google_sqladmin_api::DemoteMasterContext::set_master_instance_name ( const StringPiece &  value)
inline

Change the 'masterInstanceName' attribute.

The name of the instance which will act as on-premises master in the replication setup.

Parameters
[in]valueThe new value.

◆ set_verify_gtid_consistency()

void google_sqladmin_api::DemoteMasterContext::set_verify_gtid_consistency ( bool  value)
inline

Change the 'verifyGtidConsistency' attribute.

Verify GTID consistency for demote operation. Default value: True. Second Generation instances only. Setting this flag to false enables you to bypass GTID consistency check between on-premises master and Cloud SQL instance during the demotion operation but also exposes you to the risk of future replication failures. Change the value only if you know the reason for the GTID divergence and are confident that doing so will not cause any replication issues.

Parameters
[in]valueThe new value.

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