Class PostgresqlConnection.Builder
- java.lang.Object
-
- com.oracle.bmc.goldengate.model.PostgresqlConnection.Builder
-
- Enclosing class:
- PostgresqlConnection
public static class PostgresqlConnection.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
id
public PostgresqlConnection.Builder id(String id)
-
displayName
public PostgresqlConnection.Builder displayName(String displayName)
-
description
public PostgresqlConnection.Builder description(String description)
-
compartmentId
public PostgresqlConnection.Builder compartmentId(String compartmentId)
-
freeformTags
public PostgresqlConnection.Builder freeformTags(Map<String,String> freeformTags)
-
definedTags
public PostgresqlConnection.Builder definedTags(Map<String,Map<String,Object>> definedTags)
-
systemTags
public PostgresqlConnection.Builder systemTags(Map<String,Map<String,Object>> systemTags)
-
lifecycleState
public PostgresqlConnection.Builder lifecycleState(Connection.LifecycleState lifecycleState)
-
lifecycleDetails
public PostgresqlConnection.Builder lifecycleDetails(String lifecycleDetails)
-
timeCreated
public PostgresqlConnection.Builder timeCreated(Date timeCreated)
-
timeUpdated
public PostgresqlConnection.Builder timeUpdated(Date timeUpdated)
-
locks
public PostgresqlConnection.Builder locks(List<ResourceLock> locks)
-
vaultId
public PostgresqlConnection.Builder vaultId(String vaultId)
-
keyId
public PostgresqlConnection.Builder keyId(String keyId)
-
ingressIps
public PostgresqlConnection.Builder ingressIps(List<IngressIpDetails> ingressIps)
-
nsgIds
public PostgresqlConnection.Builder nsgIds(List<String> nsgIds)
-
subnetId
public PostgresqlConnection.Builder subnetId(String subnetId)
-
routingMethod
public PostgresqlConnection.Builder routingMethod(RoutingMethod routingMethod)
-
doesUseSecretIds
public PostgresqlConnection.Builder doesUseSecretIds(Boolean doesUseSecretIds)
-
technologyType
public PostgresqlConnection.Builder technologyType(PostgresqlConnection.TechnologyType technologyType)
The PostgreSQL technology type.- Parameters:
technologyType
- the value to set- Returns:
- this builder
-
databaseName
public PostgresqlConnection.Builder databaseName(String databaseName)
The name of the database.- Parameters:
databaseName
- the value to set- Returns:
- this builder
-
host
public PostgresqlConnection.Builder host(String host)
The name or address of a host.- Parameters:
host
- the value to set- Returns:
- this builder
-
port
public PostgresqlConnection.Builder port(Integer port)
The port of an endpoint usually specified for a connection.- Parameters:
port
- the value to set- Returns:
- this builder
-
username
public PostgresqlConnection.Builder username(String username)
The username Oracle GoldenGate uses to connect the associated system of the given technology.This username must already exist and be available by the system/application to be connected to and must conform to the case sensitivty requirments defined in it.
- Parameters:
username
- the value to set- Returns:
- this builder
-
additionalAttributes
public PostgresqlConnection.Builder additionalAttributes(List<NameValuePair> additionalAttributes)
An array of name-value pair attribute entries.Used as additional parameters in connection string.
- Parameters:
additionalAttributes
- the value to set- Returns:
- this builder
-
securityProtocol
public PostgresqlConnection.Builder securityProtocol(PostgresqlConnection.SecurityProtocol securityProtocol)
Security protocol for PostgreSQL.- Parameters:
securityProtocol
- the value to set- Returns:
- this builder
-
sslMode
public PostgresqlConnection.Builder sslMode(PostgresqlConnection.SslMode sslMode)
SSL mode for PostgreSQL.- Parameters:
sslMode
- the value to set- Returns:
- this builder
-
privateIp
public PostgresqlConnection.Builder privateIp(String privateIp)
Deprecated: this field will be removed in future versions.Either specify the private IP in the connectionString or host field, or make sure the host name is resolvable in the target VCN.
The private IP address of the connection's endpoint in the customer's VCN, typically a database endpoint or a big data endpoint (e.g. Kafka bootstrap server). In case the privateIp is provided, the subnetId must also be provided. In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection.
- Parameters:
privateIp
- the value to set- Returns:
- this builder
-
dbSystemId
public PostgresqlConnection.Builder dbSystemId(String dbSystemId)
The OCID of the database system being referenced.- Parameters:
dbSystemId
- the value to set- Returns:
- this builder
-
passwordSecretId
public PostgresqlConnection.Builder passwordSecretId(String passwordSecretId)
The OCID of the Secret where the password is stored.The password Oracle GoldenGate uses to connect the associated system of the given technology. It must conform to the specific security requirements including length, case sensitivity, and so on. If secretId is used plaintext field must not be provided. Note: When provided, ‘password’ field must not be provided.
- Parameters:
passwordSecretId
- the value to set- Returns:
- this builder
-
sslKeySecretId
public PostgresqlConnection.Builder sslKeySecretId(String sslKeySecretId)
The OCID of the Secret that stores the private key of the PostgreSQL server.The supported file formats are .pem and .crt. Note: When provided, ‘sslKey’ field must not be provided.
- Parameters:
sslKeySecretId
- the value to set- Returns:
- this builder
-
build
public PostgresqlConnection build()
-
copy
public PostgresqlConnection.Builder copy(PostgresqlConnection model)
-
-