target.apidocs.com.google.api.services.sqladmin.model.ConnectSettings.html Maven / Gradle / Ivy
The newest version!
ConnectSettings (Cloud SQL Admin API v1-rev20241108-2.0.0)
com.google.api.services.sqladmin.model
Class ConnectSettings
- 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.ConnectSettings
-
public final class ConnectSettings
extends com.google.api.client.json.GenericJson
Connect settings retrieval response.
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
ConnectSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
ConnectSettings
clone()
String
getBackendType()
`SECOND_GEN`: Cloud SQL database instance.
String
getDatabaseVersion()
The database engine type and version.
String
getDnsName()
The dns name of the instance.
List<IpMapping>
getIpAddresses()
The assigned IP addresses for the instance.
String
getKind()
This is always `sql#connectSettings`.
Boolean
getPscEnabled()
Whether PSC connectivity is enabled for this instance.
String
getRegion()
The cloud region for the instance.
SslCert
getServerCaCert()
SSL configuration.
String
getServerCaMode()
Specify what type of CA is used for the server certificate.
ConnectSettings
set(String fieldName,
Object value)
ConnectSettings
setBackendType(String backendType)
`SECOND_GEN`: Cloud SQL database instance.
ConnectSettings
setDatabaseVersion(String databaseVersion)
The database engine type and version.
ConnectSettings
setDnsName(String dnsName)
The dns name of the instance.
ConnectSettings
setIpAddresses(List<IpMapping> ipAddresses)
The assigned IP addresses for the instance.
ConnectSettings
setKind(String kind)
This is always `sql#connectSettings`.
ConnectSettings
setPscEnabled(Boolean pscEnabled)
Whether PSC connectivity is enabled for this instance.
ConnectSettings
setRegion(String region)
The cloud region for the instance.
ConnectSettings
setServerCaCert(SslCert serverCaCert)
SSL configuration.
ConnectSettings
setServerCaMode(String serverCaMode)
Specify what type of CA is used for the server certificate.
-
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
-
getBackendType
public String getBackendType()
`SECOND_GEN`: Cloud SQL database instance. `EXTERNAL`: A database server that is not managed by
Google. This property is read-only; use the `tier` property in the `settings` object to
determine the database type.
- Returns:
- value or
null
for none
-
setBackendType
public ConnectSettings setBackendType(String backendType)
`SECOND_GEN`: Cloud SQL database instance. `EXTERNAL`: A database server that is not managed by
Google. This property is read-only; use the `tier` property in the `settings` object to
determine the database type.
- Parameters:
backendType
- backendType or null
for none
-
getDatabaseVersion
public String getDatabaseVersion()
The database engine type and version. The `databaseVersion` field cannot be changed after
instance creation. MySQL instances: `MYSQL_8_0`, `MYSQL_5_7` (default), or `MYSQL_5_6`.
PostgreSQL instances: `POSTGRES_9_6`, `POSTGRES_10`, `POSTGRES_11`, `POSTGRES_12` (default),
`POSTGRES_13`, or `POSTGRES_14`. SQL Server instances: `SQLSERVER_2017_STANDARD` (default),
`SQLSERVER_2017_ENTERPRISE`, `SQLSERVER_2017_EXPRESS`, `SQLSERVER_2017_WEB`,
`SQLSERVER_2019_STANDARD`, `SQLSERVER_2019_ENTERPRISE`, `SQLSERVER_2019_EXPRESS`, or
`SQLSERVER_2019_WEB`.
- Returns:
- value or
null
for none
-
setDatabaseVersion
public ConnectSettings setDatabaseVersion(String databaseVersion)
The database engine type and version. The `databaseVersion` field cannot be changed after
instance creation. MySQL instances: `MYSQL_8_0`, `MYSQL_5_7` (default), or `MYSQL_5_6`.
PostgreSQL instances: `POSTGRES_9_6`, `POSTGRES_10`, `POSTGRES_11`, `POSTGRES_12` (default),
`POSTGRES_13`, or `POSTGRES_14`. SQL Server instances: `SQLSERVER_2017_STANDARD` (default),
`SQLSERVER_2017_ENTERPRISE`, `SQLSERVER_2017_EXPRESS`, `SQLSERVER_2017_WEB`,
`SQLSERVER_2019_STANDARD`, `SQLSERVER_2019_ENTERPRISE`, `SQLSERVER_2019_EXPRESS`, or
`SQLSERVER_2019_WEB`.
- Parameters:
databaseVersion
- databaseVersion or null
for none
-
getDnsName
public String getDnsName()
The dns name of the instance.
- Returns:
- value or
null
for none
-
setDnsName
public ConnectSettings setDnsName(String dnsName)
The dns name of the instance.
- Parameters:
dnsName
- dnsName or null
for none
-
getIpAddresses
public List<IpMapping> getIpAddresses()
The assigned IP addresses for the instance.
- Returns:
- value or
null
for none
-
setIpAddresses
public ConnectSettings setIpAddresses(List<IpMapping> ipAddresses)
The assigned IP addresses for the instance.
- Parameters:
ipAddresses
- ipAddresses or null
for none
-
getKind
public String getKind()
This is always `sql#connectSettings`.
- Returns:
- value or
null
for none
-
setKind
public ConnectSettings setKind(String kind)
This is always `sql#connectSettings`.
- Parameters:
kind
- kind or null
for none
-
getPscEnabled
public Boolean getPscEnabled()
Whether PSC connectivity is enabled for this instance.
- Returns:
- value or
null
for none
-
setPscEnabled
public ConnectSettings setPscEnabled(Boolean pscEnabled)
Whether PSC connectivity is enabled for this instance.
- Parameters:
pscEnabled
- pscEnabled or null
for none
-
getRegion
public String getRegion()
The cloud region for the instance. For example, `us-central1`, `europe-west1`. The region
cannot be changed after instance creation.
- Returns:
- value or
null
for none
-
setRegion
public ConnectSettings setRegion(String region)
The cloud region for the instance. For example, `us-central1`, `europe-west1`. The region
cannot be changed after instance creation.
- Parameters:
region
- region or null
for none
-
getServerCaCert
public SslCert getServerCaCert()
SSL configuration.
- Returns:
- value or
null
for none
-
setServerCaCert
public ConnectSettings setServerCaCert(SslCert serverCaCert)
SSL configuration.
- Parameters:
serverCaCert
- serverCaCert or null
for none
-
getServerCaMode
public String getServerCaMode()
Specify what type of CA is used for the server certificate.
- Returns:
- value or
null
for none
-
setServerCaMode
public ConnectSettings setServerCaMode(String serverCaMode)
Specify what type of CA is used for the server certificate.
- Parameters:
serverCaMode
- serverCaMode or null
for none
-
set
public ConnectSettings set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public ConnectSettings 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