target.apidocs.com.google.api.services.sql.model.OnPremisesConfiguration.html Maven / Gradle / Ivy
OnPremisesConfiguration (Cloud SQL Admin API v1beta4-rev20201026-1.30.10)
com.google.api.services.sql.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.sql.model.OnPremisesConfiguration
-
public final class OnPremisesConfiguration
extends 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
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.
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
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
-
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 GenericJson
-
clone
public OnPremisesConfiguration clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2020 Google. All rights reserved.