Class ConnectionConfig.Builder (1.15.0)
public static class ConnectionConfig.Builder
The builder for the ConnectionConfig.
Constructors
Builder()
Methods
build()
public ConnectionConfig build()
Builds a new instance of ConnectionConfig
.
withAuthType(AuthType authType)
public ConnectionConfig.Builder withAuthType(AuthType authType)
Parameter |
Name |
Description |
authType |
AuthType
|
withCloudSqlInstance(String cloudSqlInstance)
public ConnectionConfig.Builder withCloudSqlInstance(String cloudSqlInstance)
Parameter |
Name |
Description |
cloudSqlInstance |
String
|
withConnectorConfig(ConnectorConfig connectorConfig)
public ConnectionConfig.Builder withConnectorConfig(ConnectorConfig connectorConfig)
withIpTypes(String ipTypes)
public ConnectionConfig.Builder withIpTypes(String ipTypes)
Set ipTypes with a comma-delimited string.
Parameter |
Name |
Description |
ipTypes |
String
|
withIpTypes(List<IpType> ipTypes)
public ConnectionConfig.Builder withIpTypes(List<IpType> ipTypes)
Set ipTypes as a list of IpType.
withNamedConnector(String namedConnector)
public ConnectionConfig.Builder withNamedConnector(String namedConnector)
Parameter |
Name |
Description |
namedConnector |
String
|
withUnixSocketPath(String unixSocketPath)
public ConnectionConfig.Builder withUnixSocketPath(String unixSocketPath)
Parameter |
Name |
Description |
unixSocketPath |
String
|
withUnixSocketPathSuffix(String unixSocketPathSuffix)
public ConnectionConfig.Builder withUnixSocketPathSuffix(String unixSocketPathSuffix)
Parameter |
Name |
Description |
unixSocketPathSuffix |
String
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-10 UTC."],[],[]]