Class ConnectionConfig.Builder (1.15.0)

public static class ConnectionConfig.Builder

The builder for the ConnectionConfig.

Inheritance

java.lang.Object > ConnectionConfig.Builder

Constructors

Builder()

public Builder()

Methods

build()

public ConnectionConfig build()

Builds a new instance of ConnectionConfig.

Returns
TypeDescription
ConnectionConfig

withAuthType(AuthType authType)

public ConnectionConfig.Builder withAuthType(AuthType authType)
Parameter
NameDescription
authTypeAuthType
Returns
TypeDescription
ConnectionConfig.Builder

withCloudSqlInstance(String cloudSqlInstance)

public ConnectionConfig.Builder withCloudSqlInstance(String cloudSqlInstance)
Parameter
NameDescription
cloudSqlInstanceString
Returns
TypeDescription
ConnectionConfig.Builder

withConnectorConfig(ConnectorConfig connectorConfig)

public ConnectionConfig.Builder withConnectorConfig(ConnectorConfig connectorConfig)
Parameter
NameDescription
connectorConfigConnectorConfig
Returns
TypeDescription
ConnectionConfig.Builder

withIpTypes(String ipTypes)

public ConnectionConfig.Builder withIpTypes(String ipTypes)

Set ipTypes with a comma-delimited string.

Parameter
NameDescription
ipTypesString
Returns
TypeDescription
ConnectionConfig.Builder

withIpTypes(List<IpType> ipTypes)

public ConnectionConfig.Builder withIpTypes(List<IpType> ipTypes)

Set ipTypes as a list of IpType.

Parameter
NameDescription
ipTypesList<IpType>
Returns
TypeDescription
ConnectionConfig.Builder

withNamedConnector(String namedConnector)

public ConnectionConfig.Builder withNamedConnector(String namedConnector)
Parameter
NameDescription
namedConnectorString
Returns
TypeDescription
ConnectionConfig.Builder

withUnixSocketPath(String unixSocketPath)

public ConnectionConfig.Builder withUnixSocketPath(String unixSocketPath)
Parameter
NameDescription
unixSocketPathString
Returns
TypeDescription
ConnectionConfig.Builder

withUnixSocketPathSuffix(String unixSocketPathSuffix)

public ConnectionConfig.Builder withUnixSocketPathSuffix(String unixSocketPathSuffix)
Parameter
NameDescription
unixSocketPathSuffixString
Returns
TypeDescription
ConnectionConfig.Builder