Send feedback
Class ConnectionConfig.Builder (1.15.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latest keyboard_arrow_down
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
Send feedback
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 2024-12-19 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-19 UTC."],[],[]]