target.apidocs.com.google.api.services.sqladmin.model.MySqlReplicaConfiguration.html Maven / Gradle / Ivy
The newest version!
MySqlReplicaConfiguration (Cloud SQL Admin API v1-rev20241108-2.0.0)
com.google.api.services.sqladmin.model
Class MySqlReplicaConfiguration
- 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.MySqlReplicaConfiguration
-
public final class MySqlReplicaConfiguration
extends com.google.api.client.json.GenericJson
Read-replica configuration specific to MySQL databases.
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
MySqlReplicaConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
MySqlReplicaConfiguration
clone()
String
getCaCertificate()
PEM representation of the trusted CA's x509 certificate.
String
getClientCertificate()
PEM representation of the replica's x509 certificate.
String
getClientKey()
PEM representation of the replica's private key.
Integer
getConnectRetryInterval()
Seconds to wait between connect retries.
String
getDumpFilePath()
Path to a SQL dump file in Google Cloud Storage from which the replica instance is to be
created.
String
getKind()
This is always `sql#mysqlReplicaConfiguration`.
Long
getMasterHeartbeatPeriod()
Interval in milliseconds between replication heartbeats.
String
getPassword()
The password for the replication connection.
String
getSslCipher()
A list of permissible ciphers to use for SSL encryption.
String
getUsername()
The username for the replication connection.
Boolean
getVerifyServerCertificate()
Whether or not to check the primary instance's Common Name value in the certificate that it
sends during the SSL handshake.
MySqlReplicaConfiguration
set(String fieldName,
Object value)
MySqlReplicaConfiguration
setCaCertificate(String caCertificate)
PEM representation of the trusted CA's x509 certificate.
MySqlReplicaConfiguration
setClientCertificate(String clientCertificate)
PEM representation of the replica's x509 certificate.
MySqlReplicaConfiguration
setClientKey(String clientKey)
PEM representation of the replica's private key.
MySqlReplicaConfiguration
setConnectRetryInterval(Integer connectRetryInterval)
Seconds to wait between connect retries.
MySqlReplicaConfiguration
setDumpFilePath(String dumpFilePath)
Path to a SQL dump file in Google Cloud Storage from which the replica instance is to be
created.
MySqlReplicaConfiguration
setKind(String kind)
This is always `sql#mysqlReplicaConfiguration`.
MySqlReplicaConfiguration
setMasterHeartbeatPeriod(Long masterHeartbeatPeriod)
Interval in milliseconds between replication heartbeats.
MySqlReplicaConfiguration
setPassword(String password)
The password for the replication connection.
MySqlReplicaConfiguration
setSslCipher(String sslCipher)
A list of permissible ciphers to use for SSL encryption.
MySqlReplicaConfiguration
setUsername(String username)
The username for the replication connection.
MySqlReplicaConfiguration
setVerifyServerCertificate(Boolean verifyServerCertificate)
Whether or not to check the primary instance's Common Name value in the certificate that it
sends during the SSL handshake.
-
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
-
getCaCertificate
public String getCaCertificate()
PEM representation of the trusted CA's x509 certificate.
- Returns:
- value or
null
for none
-
setCaCertificate
public MySqlReplicaConfiguration setCaCertificate(String caCertificate)
PEM representation of the trusted CA's x509 certificate.
- Parameters:
caCertificate
- caCertificate or null
for none
-
getClientCertificate
public String getClientCertificate()
PEM representation of the replica's x509 certificate.
- Returns:
- value or
null
for none
-
setClientCertificate
public MySqlReplicaConfiguration setClientCertificate(String clientCertificate)
PEM representation of the replica's x509 certificate.
- Parameters:
clientCertificate
- clientCertificate or null
for none
-
getClientKey
public String getClientKey()
PEM representation of the replica's private key. The corresponsing public key is encoded in the
client's certificate.
- Returns:
- value or
null
for none
-
setClientKey
public MySqlReplicaConfiguration setClientKey(String clientKey)
PEM representation of the replica's private key. The corresponsing public key is encoded in the
client's certificate.
- Parameters:
clientKey
- clientKey or null
for none
-
getConnectRetryInterval
public Integer getConnectRetryInterval()
Seconds to wait between connect retries. MySQL's default is 60 seconds.
- Returns:
- value or
null
for none
-
setConnectRetryInterval
public MySqlReplicaConfiguration setConnectRetryInterval(Integer connectRetryInterval)
Seconds to wait between connect retries. MySQL's default is 60 seconds.
- Parameters:
connectRetryInterval
- connectRetryInterval or null
for none
-
getDumpFilePath
public String getDumpFilePath()
Path to a SQL dump file in Google Cloud Storage from which the replica instance is to be
created. The URI is in the form gs://bucketName/fileName. Compressed gzip files (.gz) are also
supported. Dumps have the binlog co-ordinates from which replication begins. This can be
accomplished by setting --master-data to 1 when using mysqldump.
- Returns:
- value or
null
for none
-
setDumpFilePath
public MySqlReplicaConfiguration setDumpFilePath(String dumpFilePath)
Path to a SQL dump file in Google Cloud Storage from which the replica instance is to be
created. The URI is in the form gs://bucketName/fileName. Compressed gzip files (.gz) are also
supported. Dumps have the binlog co-ordinates from which replication begins. This can be
accomplished by setting --master-data to 1 when using mysqldump.
- Parameters:
dumpFilePath
- dumpFilePath or null
for none
-
getKind
public String getKind()
This is always `sql#mysqlReplicaConfiguration`.
- Returns:
- value or
null
for none
-
setKind
public MySqlReplicaConfiguration setKind(String kind)
This is always `sql#mysqlReplicaConfiguration`.
- Parameters:
kind
- kind or null
for none
-
getMasterHeartbeatPeriod
public Long getMasterHeartbeatPeriod()
Interval in milliseconds between replication heartbeats.
- Returns:
- value or
null
for none
-
setMasterHeartbeatPeriod
public MySqlReplicaConfiguration setMasterHeartbeatPeriod(Long masterHeartbeatPeriod)
Interval in milliseconds between replication heartbeats.
- Parameters:
masterHeartbeatPeriod
- masterHeartbeatPeriod or null
for none
-
getPassword
public String getPassword()
The password for the replication connection.
- Returns:
- value or
null
for none
-
setPassword
public MySqlReplicaConfiguration setPassword(String password)
The password for the replication connection.
- Parameters:
password
- password or null
for none
-
getSslCipher
public String getSslCipher()
A list of permissible ciphers to use for SSL encryption.
- Returns:
- value or
null
for none
-
setSslCipher
public MySqlReplicaConfiguration setSslCipher(String sslCipher)
A list of permissible ciphers to use for SSL encryption.
- Parameters:
sslCipher
- sslCipher or null
for none
-
getUsername
public String getUsername()
The username for the replication connection.
- Returns:
- value or
null
for none
-
setUsername
public MySqlReplicaConfiguration setUsername(String username)
The username for the replication connection.
- Parameters:
username
- username or null
for none
-
getVerifyServerCertificate
public Boolean getVerifyServerCertificate()
Whether or not to check the primary instance's Common Name value in the certificate that it
sends during the SSL handshake.
- Returns:
- value or
null
for none
-
setVerifyServerCertificate
public MySqlReplicaConfiguration setVerifyServerCertificate(Boolean verifyServerCertificate)
Whether or not to check the primary instance's Common Name value in the certificate that it
sends during the SSL handshake.
- Parameters:
verifyServerCertificate
- verifyServerCertificate or null
for none
-
set
public MySqlReplicaConfiguration set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public MySqlReplicaConfiguration 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