public static class DatabaseConnectionStringProfile.Builder extends Object
Constructor and Description |
---|
Builder() |
public DatabaseConnectionStringProfile.Builder displayName(String displayName)
A user-friendly name for the connection.
displayName
- the value to setpublic DatabaseConnectionStringProfile.Builder value(String value)
Connection string value.
value
- the value to setpublic DatabaseConnectionStringProfile.Builder consumerGroup(DatabaseConnectionStringProfile.ConsumerGroup consumerGroup)
Consumer group used by the connection.
consumerGroup
- the value to setpublic DatabaseConnectionStringProfile.Builder protocol(DatabaseConnectionStringProfile.Protocol protocol)
Protocol used by the connection.
protocol
- the value to setpublic DatabaseConnectionStringProfile.Builder tlsAuthentication(DatabaseConnectionStringProfile.TlsAuthentication tlsAuthentication)
Specifies whether the TLS handshake is using one-way (SERVER
) or mutual (MUTUAL
) authentication.
tlsAuthentication
- the value to setpublic DatabaseConnectionStringProfile.Builder hostFormat(DatabaseConnectionStringProfile.HostFormat hostFormat)
Host format used in connection string.
hostFormat
- the value to setpublic DatabaseConnectionStringProfile.Builder sessionMode(DatabaseConnectionStringProfile.SessionMode sessionMode)
Specifies whether the listener performs a direct hand-off of the session, or redirects
the session. In RAC deployments where SCAN is used, sessions are redirected to a Node
VIP. Use DIRECT
for direct hand-offs. Use REDIRECT
to redirect the
session.
sessionMode
- the value to setpublic DatabaseConnectionStringProfile.Builder syntaxFormat(DatabaseConnectionStringProfile.SyntaxFormat syntaxFormat)
Specifies whether the connection string is using the long (LONG
), Easy Connect
(EZCONNECT
), or Easy Connect Plus (EZCONNECTPLUS
) format. Autonomous
Database Serverless instances always use the long format.
syntaxFormat
- the value to setpublic DatabaseConnectionStringProfile.Builder isRegional(Boolean isRegional)
True for a regional connection string, applicable to cross-region DG only.
isRegional
- the value to setpublic DatabaseConnectionStringProfile build()
public DatabaseConnectionStringProfile.Builder copy(DatabaseConnectionStringProfile model)
Copyright © 2016–2024. All rights reserved.