target.apidocs.com.google.api.services.sqladmin.model.DemoteMasterContext.html Maven / Gradle / Ivy
The newest version!
DemoteMasterContext (Cloud SQL Admin API v1-rev20241108-2.0.0)
com.google.api.services.sqladmin.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.sqladmin.model.DemoteMasterContext
-
public final class DemoteMasterContext
extends com.google.api.client.json.GenericJson
Database instance demote primary instance 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
com.google.api.client.util.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 primary instance in the replication
setup.
DemoteMasterConfiguration
getReplicaConfiguration()
Configuration specific to read-replicas replicating from the on-premises primary instance.
Boolean
getSkipReplicationSetup()
Flag to skip replication setup on the instance.
Boolean
getVerifyGtidConsistency()
Verify the 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 primary instance in the replication
setup.
DemoteMasterContext
setReplicaConfiguration(DemoteMasterConfiguration replicaConfiguration)
Configuration specific to read-replicas replicating from the on-premises primary instance.
DemoteMasterContext
setSkipReplicationSetup(Boolean skipReplicationSetup)
Flag to skip replication setup on the instance.
DemoteMasterContext
setVerifyGtidConsistency(Boolean verifyGtidConsistency)
Verify the 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 primary instance 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 primary instance 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 primary instance.
- Returns:
- value or
null
for none
-
setReplicaConfiguration
public DemoteMasterContext setReplicaConfiguration(DemoteMasterConfiguration replicaConfiguration)
Configuration specific to read-replicas replicating from the on-premises primary instance.
- Parameters:
replicaConfiguration
- replicaConfiguration or null
for none
-
getSkipReplicationSetup
public Boolean getSkipReplicationSetup()
Flag to skip replication setup on the instance.
- Returns:
- value or
null
for none
-
setSkipReplicationSetup
public DemoteMasterContext setSkipReplicationSetup(Boolean skipReplicationSetup)
Flag to skip replication setup on the instance.
- Parameters:
skipReplicationSetup
- skipReplicationSetup or null
for none
-
getVerifyGtidConsistency
public Boolean getVerifyGtidConsistency()
Verify the GTID consistency for demote operation. Default value: `True`. Setting this flag to
`false` enables you to bypass the GTID consistency check between on-premises primary instance
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 the GTID consistency for demote operation. Default value: `True`. Setting this flag to
`false` enables you to bypass the GTID consistency check between on-premises primary instance
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 com.google.api.client.json.GenericJson
-
clone
public DemoteMasterContext clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy