target.apidocs.com.google.api.services.sqladmin.model.OnPremisesConfiguration.html Maven / Gradle / Ivy
The newest version!
OnPremisesConfiguration (Cloud SQL Admin API v1-rev20241108-2.0.0)
com.google.api.services.sqladmin.model
Class OnPremisesConfiguration
- 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.OnPremisesConfiguration
-
public final class OnPremisesConfiguration
extends com.google.api.client.json.GenericJson
On-premises instance configuration.
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
OnPremisesConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
OnPremisesConfiguration
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.
String
getDumpFilePath()
The dump file to create the Cloud SQL replica.
String
getHostPort()
The host and port of the on-premises instance in host:port format
String
getKind()
This is always `sql#onPremisesConfiguration`.
String
getPassword()
The password for connecting to on-premises instance.
List<SelectedObjects>
getSelectedObjects()
Optional.
InstanceReference
getSourceInstance()
The reference to Cloud SQL instance if the source is Cloud SQL.
String
getSslOption()
Optional.
String
getUsername()
The username for connecting to on-premises instance.
OnPremisesConfiguration
set(String fieldName,
Object value)
OnPremisesConfiguration
setCaCertificate(String caCertificate)
PEM representation of the trusted CA's x509 certificate.
OnPremisesConfiguration
setClientCertificate(String clientCertificate)
PEM representation of the replica's x509 certificate.
OnPremisesConfiguration
setClientKey(String clientKey)
PEM representation of the replica's private key.
OnPremisesConfiguration
setDumpFilePath(String dumpFilePath)
The dump file to create the Cloud SQL replica.
OnPremisesConfiguration
setHostPort(String hostPort)
The host and port of the on-premises instance in host:port format
OnPremisesConfiguration
setKind(String kind)
This is always `sql#onPremisesConfiguration`.
OnPremisesConfiguration
setPassword(String password)
The password for connecting to on-premises instance.
OnPremisesConfiguration
setSelectedObjects(List<SelectedObjects> selectedObjects)
Optional.
OnPremisesConfiguration
setSourceInstance(InstanceReference sourceInstance)
The reference to Cloud SQL instance if the source is Cloud SQL.
OnPremisesConfiguration
setSslOption(String sslOption)
Optional.
OnPremisesConfiguration
setUsername(String username)
The username for connecting to on-premises instance.
-
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 OnPremisesConfiguration 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 OnPremisesConfiguration 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 OnPremisesConfiguration 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
-
getDumpFilePath
public String getDumpFilePath()
The dump file to create the Cloud SQL replica.
- Returns:
- value or
null
for none
-
setDumpFilePath
public OnPremisesConfiguration setDumpFilePath(String dumpFilePath)
The dump file to create the Cloud SQL replica.
- Parameters:
dumpFilePath
- dumpFilePath or null
for none
-
getHostPort
public String getHostPort()
The host and port of the on-premises instance in host:port format
- Returns:
- value or
null
for none
-
setHostPort
public OnPremisesConfiguration setHostPort(String hostPort)
The host and port of the on-premises instance in host:port format
- Parameters:
hostPort
- hostPort or null
for none
-
getKind
public String getKind()
This is always `sql#onPremisesConfiguration`.
- Returns:
- value or
null
for none
-
setKind
public OnPremisesConfiguration setKind(String kind)
This is always `sql#onPremisesConfiguration`.
- Parameters:
kind
- kind or null
for none
-
getPassword
public String getPassword()
The password for connecting to on-premises instance.
- Returns:
- value or
null
for none
-
setPassword
public OnPremisesConfiguration setPassword(String password)
The password for connecting to on-premises instance.
- Parameters:
password
- password or null
for none
-
getSelectedObjects
public List<SelectedObjects> getSelectedObjects()
Optional. A list of objects that the user selects for replication from an external source
instance.
- Returns:
- value or
null
for none
-
setSelectedObjects
public OnPremisesConfiguration setSelectedObjects(List<SelectedObjects> selectedObjects)
Optional. A list of objects that the user selects for replication from an external source
instance.
- Parameters:
selectedObjects
- selectedObjects or null
for none
-
getSourceInstance
public InstanceReference getSourceInstance()
The reference to Cloud SQL instance if the source is Cloud SQL.
- Returns:
- value or
null
for none
-
setSourceInstance
public OnPremisesConfiguration setSourceInstance(InstanceReference sourceInstance)
The reference to Cloud SQL instance if the source is Cloud SQL.
- Parameters:
sourceInstance
- sourceInstance or null
for none
-
getSslOption
public String getSslOption()
Optional. SSL option for replica connection to the on-premises source.
- Returns:
- value or
null
for none
-
setSslOption
public OnPremisesConfiguration setSslOption(String sslOption)
Optional. SSL option for replica connection to the on-premises source.
- Parameters:
sslOption
- sslOption or null
for none
-
getUsername
public String getUsername()
The username for connecting to on-premises instance.
- Returns:
- value or
null
for none
-
setUsername
public OnPremisesConfiguration setUsername(String username)
The username for connecting to on-premises instance.
- Parameters:
username
- username or null
for none
-
set
public OnPremisesConfiguration set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public OnPremisesConfiguration 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