public final class DemoteMasterContext
extends com.google.api.client.json.GenericJson
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
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
DemoteMasterContext() |
Modifier and Type | Method and Description |
---|---|
DemoteMasterContext |
clone() |
java.lang.String |
getKind()
This is always sql#demoteMasterContext.
|
java.lang.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.
|
java.lang.Boolean |
getVerifyGtidConsistency()
Verify GTID consistency for demote operation.
|
DemoteMasterContext |
set(java.lang.String fieldName,
java.lang.Object value) |
DemoteMasterContext |
setKind(java.lang.String kind)
This is always sql#demoteMasterContext.
|
DemoteMasterContext |
setMasterInstanceName(java.lang.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(java.lang.Boolean verifyGtidConsistency)
Verify GTID consistency for demote operation.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getKind()
null
for nonepublic DemoteMasterContext setKind(java.lang.String kind)
kind
- kind or null
for nonepublic java.lang.String getMasterInstanceName()
null
for nonepublic DemoteMasterContext setMasterInstanceName(java.lang.String masterInstanceName)
masterInstanceName
- masterInstanceName or null
for nonepublic DemoteMasterConfiguration getReplicaConfiguration()
null
for nonepublic DemoteMasterContext setReplicaConfiguration(DemoteMasterConfiguration replicaConfiguration)
replicaConfiguration
- replicaConfiguration or null
for nonepublic java.lang.Boolean getVerifyGtidConsistency()
null
for nonepublic DemoteMasterContext setVerifyGtidConsistency(java.lang.Boolean verifyGtidConsistency)
verifyGtidConsistency
- verifyGtidConsistency or null
for nonepublic DemoteMasterContext set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public DemoteMasterContext clone()
clone
in class com.google.api.client.json.GenericJson