Package com.oracle.bmc.goldengate.model
Class Db2Connection.Builder
- java.lang.Object
-
- com.oracle.bmc.goldengate.model.Db2Connection.Builder
-
- Enclosing class:
- Db2Connection
public static class Db2Connection.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
id
public Db2Connection.Builder id(String id)
-
displayName
public Db2Connection.Builder displayName(String displayName)
-
description
public Db2Connection.Builder description(String description)
-
compartmentId
public Db2Connection.Builder compartmentId(String compartmentId)
-
freeformTags
public Db2Connection.Builder freeformTags(Map<String,String> freeformTags)
-
lifecycleState
public Db2Connection.Builder lifecycleState(Connection.LifecycleState lifecycleState)
-
lifecycleDetails
public Db2Connection.Builder lifecycleDetails(String lifecycleDetails)
-
timeCreated
public Db2Connection.Builder timeCreated(Date timeCreated)
-
timeUpdated
public Db2Connection.Builder timeUpdated(Date timeUpdated)
-
locks
public Db2Connection.Builder locks(List<ResourceLock> locks)
-
vaultId
public Db2Connection.Builder vaultId(String vaultId)
-
keyId
public Db2Connection.Builder keyId(String keyId)
-
ingressIps
public Db2Connection.Builder ingressIps(List<IngressIpDetails> ingressIps)
-
nsgIds
public Db2Connection.Builder nsgIds(List<String> nsgIds)
-
subnetId
public Db2Connection.Builder subnetId(String subnetId)
-
routingMethod
public Db2Connection.Builder routingMethod(RoutingMethod routingMethod)
-
doesUseSecretIds
public Db2Connection.Builder doesUseSecretIds(Boolean doesUseSecretIds)
-
technologyType
public Db2Connection.Builder technologyType(Db2Connection.TechnologyType technologyType)
The DB2 technology type.- Parameters:
technologyType
- the value to set- Returns:
- this builder
-
username
public Db2Connection.Builder username(String username)
The username Oracle GoldenGate uses to connect to the DB2 database.This username must already exist and be available by the DB2 to be connected to.
- Parameters:
username
- the value to set- Returns:
- this builder
-
host
public Db2Connection.Builder host(String host)
The name or address of a host.- Parameters:
host
- the value to set- Returns:
- this builder
-
port
public Db2Connection.Builder port(Integer port)
The port of an endpoint usually specified for a connection.- Parameters:
port
- the value to set- Returns:
- this builder
-
databaseName
public Db2Connection.Builder databaseName(String databaseName)
The name of the database.- Parameters:
databaseName
- the value to set- Returns:
- this builder
-
additionalAttributes
public Db2Connection.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 Db2Connection.Builder securityProtocol(Db2Connection.SecurityProtocol securityProtocol)
Security Protocol for the DB2 database.- Parameters:
securityProtocol
- the value to set- Returns:
- this builder
-
passwordSecretId
public Db2Connection.Builder passwordSecretId(String passwordSecretId)
The OCID of the Secret where the password is stored, that Oracle GoldenGate uses to connect the associated DB2 database.Note: When provided, ‘password’ field must not be provided.
- Parameters:
passwordSecretId
- the value to set- Returns:
- this builder
-
sslClientKeystoredbSecretId
public Db2Connection.Builder sslClientKeystoredbSecretId(String sslClientKeystoredbSecretId)
The OCID of the Secret where the keystore file stored, which created at the client containing the server certificate / CA root certificate.This property is not supported for IBM Db2 for i, as client TLS mode is not available.
Note: When provided, 'sslClientKeystoredb' field must not be provided.
- Parameters:
sslClientKeystoredbSecretId
- the value to set- Returns:
- this builder
-
sslClientKeystashSecretId
public Db2Connection.Builder sslClientKeystashSecretId(String sslClientKeystashSecretId)
The OCID of the Secret where the keystash file is stored, which contains the encrypted password to the key database file.This property is not supported for IBM Db2 for i, as client TLS mode is not available.
Note: When provided, 'sslClientKeystash' field must not be provided.
- Parameters:
sslClientKeystashSecretId
- the value to set- Returns:
- this builder
-
sslServerCertificate
public Db2Connection.Builder sslServerCertificate(String sslServerCertificate)
The base64 encoded file which contains the self-signed server certificate / Certificate Authority (CA) certificate.It is not included in GET responses if the view=COMPACT query parameter is specified.
- Parameters:
sslServerCertificate
- the value to set- Returns:
- this builder
-
build
public Db2Connection build()
-
copy
public Db2Connection.Builder copy(Db2Connection model)
-
-