target.apidocs.com.google.api.services.sql.model.DemoteMasterContext.html Maven / Gradle / Ivy
DemoteMasterContext (Cloud SQL Admin API v1beta4-rev20201007-1.30.10)
com.google.api.services.sql.model
Class DemoteMasterContext
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.sql.model.DemoteMasterContext
-
public final class DemoteMasterContext
extends GenericJson
Database instance demote master context.
This is the Java data model class that specifies how to parse/serialize into the JSON that is
transmitted over HTTP when working with the Cloud SQL Admin API. For a detailed explanation see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
DemoteMasterContext()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
DemoteMasterContext
clone()
String
getKind()
This is always *sql#demoteMasterContext*.
String
getMasterInstanceName()
The name of the instance which will act as on-premises master in the replication setup.
DemoteMasterConfiguration
getReplicaConfiguration()
Configuration specific to read-replicas replicating from the on-premises master.
Boolean
getVerifyGtidConsistency()
Verify GTID consistency for demote operation.
DemoteMasterContext
set(String fieldName,
Object value)
DemoteMasterContext
setKind(String kind)
This is always *sql#demoteMasterContext*.
DemoteMasterContext
setMasterInstanceName(String masterInstanceName)
The name of the instance which will act as on-premises master in the replication setup.
DemoteMasterContext
setReplicaConfiguration(DemoteMasterConfiguration replicaConfiguration)
Configuration specific to read-replicas replicating from the on-premises master.
DemoteMasterContext
setVerifyGtidConsistency(Boolean verifyGtidConsistency)
Verify GTID consistency for demote operation.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getKind
public String getKind()
This is always *sql#demoteMasterContext*.
- Returns:
- value or
null
for none
-
setKind
public DemoteMasterContext setKind(String kind)
This is always *sql#demoteMasterContext*.
- Parameters:
kind
- kind or null
for none
-
getMasterInstanceName
public String getMasterInstanceName()
The name of the instance which will act as on-premises master in the replication setup.
- Returns:
- value or
null
for none
-
setMasterInstanceName
public DemoteMasterContext setMasterInstanceName(String masterInstanceName)
The name of the instance which will act as on-premises master in the replication setup.
- Parameters:
masterInstanceName
- masterInstanceName or null
for none
-
getReplicaConfiguration
public DemoteMasterConfiguration getReplicaConfiguration()
Configuration specific to read-replicas replicating from the on-premises master.
- Returns:
- value or
null
for none
-
setReplicaConfiguration
public DemoteMasterContext setReplicaConfiguration(DemoteMasterConfiguration replicaConfiguration)
Configuration specific to read-replicas replicating from the on-premises master.
- Parameters:
replicaConfiguration
- replicaConfiguration or null
for none
-
getVerifyGtidConsistency
public Boolean getVerifyGtidConsistency()
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.
- Returns:
- value or
null
for none
-
setVerifyGtidConsistency
public DemoteMasterContext setVerifyGtidConsistency(Boolean verifyGtidConsistency)
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:
verifyGtidConsistency
- verifyGtidConsistency or null
for none
-
set
public DemoteMasterContext set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public DemoteMasterContext clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2020 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy