target.apidocs.com.google.api.services.sqladmin.model.ReplicationCluster.html Maven / Gradle / Ivy
ReplicationCluster (Cloud SQL Admin API v1-rev20240925-2.0.0)
com.google.api.services.sqladmin.model
Class ReplicationCluster
- 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.ReplicationCluster
-
public final class ReplicationCluster
extends com.google.api.client.json.GenericJson
A primary instance and disaster recovery (DR) replica pair. A DR replica is a cross-region
replica that you designate for failover in the event that the primary instance experiences
regional failure. Only applicable to MySQL.
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
ReplicationCluster()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
ReplicationCluster
clone()
Boolean
getDrReplica()
Output only.
String
getFailoverDrReplicaName()
Optional.
String
getPsaWriteEndpoint()
Output only.
ReplicationCluster
set(String fieldName,
Object value)
ReplicationCluster
setDrReplica(Boolean drReplica)
Output only.
ReplicationCluster
setFailoverDrReplicaName(String failoverDrReplicaName)
Optional.
ReplicationCluster
setPsaWriteEndpoint(String psaWriteEndpoint)
Output only.
-
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
-
getDrReplica
public Boolean getDrReplica()
Output only. Read-only field that indicates whether the replica is a DR replica. This field is
not set if the instance is a primary instance.
- Returns:
- value or
null
for none
-
setDrReplica
public ReplicationCluster setDrReplica(Boolean drReplica)
Output only. Read-only field that indicates whether the replica is a DR replica. This field is
not set if the instance is a primary instance.
- Parameters:
drReplica
- drReplica or null
for none
-
getFailoverDrReplicaName
public String getFailoverDrReplicaName()
Optional. If the instance is a primary instance, then this field identifies the disaster
recovery (DR) replica. A DR replica is an optional configuration for Enterprise Plus edition
instances. If the instance is a read replica, then the field is not set. Set this field to a
replica name to designate a DR replica for a primary instance. Remove the replica name to
remove the DR replica designation.
- Returns:
- value or
null
for none
-
setFailoverDrReplicaName
public ReplicationCluster setFailoverDrReplicaName(String failoverDrReplicaName)
Optional. If the instance is a primary instance, then this field identifies the disaster
recovery (DR) replica. A DR replica is an optional configuration for Enterprise Plus edition
instances. If the instance is a read replica, then the field is not set. Set this field to a
replica name to designate a DR replica for a primary instance. Remove the replica name to
remove the DR replica designation.
- Parameters:
failoverDrReplicaName
- failoverDrReplicaName or null
for none
-
getPsaWriteEndpoint
public String getPsaWriteEndpoint()
Output only. If set, it indicates this instance has a private service access (PSA) dns endpoint
that is pointing to the primary instance of the cluster. If this instance is the primary, the
dns should be pointing to this instance. After Switchover or Replica failover, this DNS
endpoint points to the promoted instance. This is a read-only field, returned to the user as
information. This field can exist even if a standalone instance does not yet have a replica, or
had a DR replica that was deleted.
- Returns:
- value or
null
for none
-
setPsaWriteEndpoint
public ReplicationCluster setPsaWriteEndpoint(String psaWriteEndpoint)
Output only. If set, it indicates this instance has a private service access (PSA) dns endpoint
that is pointing to the primary instance of the cluster. If this instance is the primary, the
dns should be pointing to this instance. After Switchover or Replica failover, this DNS
endpoint points to the promoted instance. This is a read-only field, returned to the user as
information. This field can exist even if a standalone instance does not yet have a replica, or
had a DR replica that was deleted.
- Parameters:
psaWriteEndpoint
- psaWriteEndpoint or null
for none
-
set
public ReplicationCluster set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public ReplicationCluster clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.