target.apidocs.com.google.api.services.sqladmin.model.DatabaseInstance.FailoverReplica.html Maven / Gradle / Ivy
The newest version!
DatabaseInstance.FailoverReplica (Cloud SQL Admin API v1-rev20241108-2.0.0)
com.google.api.services.sqladmin.model
Class DatabaseInstance.FailoverReplica
- 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.DatabaseInstance.FailoverReplica
-
- Enclosing class:
- DatabaseInstance
public static final class DatabaseInstance.FailoverReplica
extends com.google.api.client.json.GenericJson
The name and status of the failover replica.
-
-
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
FailoverReplica()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
DatabaseInstance.FailoverReplica
clone()
Boolean
getAvailable()
The availability status of the failover replica.
String
getName()
The name of the failover replica.
DatabaseInstance.FailoverReplica
set(String fieldName,
Object value)
DatabaseInstance.FailoverReplica
setAvailable(Boolean available)
The availability status of the failover replica.
DatabaseInstance.FailoverReplica
setName(String name)
The name of the failover replica.
-
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
-
getAvailable
public Boolean getAvailable()
The availability status of the failover replica. A false status indicates that the failover
replica is out of sync. The primary instance can only failover to the failover replica when the
status is true.
- Returns:
- value or
null
for none
-
setAvailable
public DatabaseInstance.FailoverReplica setAvailable(Boolean available)
The availability status of the failover replica. A false status indicates that the failover
replica is out of sync. The primary instance can only failover to the failover replica when the
status is true.
- Parameters:
available
- available or null
for none
-
getName
public String getName()
The name of the failover replica. If specified at instance creation, a failover replica is
created for the instance. The name doesn't include the project ID.
- Returns:
- value or
null
for none
-
setName
public DatabaseInstance.FailoverReplica setName(String name)
The name of the failover replica. If specified at instance creation, a failover replica is
created for the instance. The name doesn't include the project ID.
- Parameters:
name
- name or null
for none
-
set
public DatabaseInstance.FailoverReplica set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public DatabaseInstance.FailoverReplica 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