public static class DatabaseConnectionString.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
DatabaseConnectionString |
build() |
DatabaseConnectionString.Builder |
copy(DatabaseConnectionString model) |
DatabaseConnectionString.Builder |
hostname(String hostname)
The host name of the database.
|
DatabaseConnectionString.Builder |
port(Integer port)
The port used to connect to the database.
|
DatabaseConnectionString.Builder |
protocol(DatabaseConnectionString.Protocol protocol)
The protocol used to connect to the database.
|
DatabaseConnectionString.Builder |
service(String service)
The name of the service alias used to connect to the database.
|
public DatabaseConnectionString.Builder hostname(String hostname)
The host name of the database.
hostname
- the value to setpublic DatabaseConnectionString.Builder port(Integer port)
The port used to connect to the database.
port
- the value to setpublic DatabaseConnectionString.Builder service(String service)
The name of the service alias used to connect to the database.
service
- the value to setpublic DatabaseConnectionString.Builder protocol(DatabaseConnectionString.Protocol protocol)
The protocol used to connect to the database.
protocol
- the value to setpublic DatabaseConnectionString build()
public DatabaseConnectionString.Builder copy(DatabaseConnectionString model)
Copyright © 2016–2024. All rights reserved.