Class CreateMongoDbConnectionDetails.Builder
- java.lang.Object
- 
- com.oracle.bmc.goldengate.model.CreateMongoDbConnectionDetails.Builder
 
- 
- Enclosing class:
- CreateMongoDbConnectionDetails
 
 public static class CreateMongoDbConnectionDetails.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method Summary
 
- 
- 
- 
Method Detail- 
displayNamepublic CreateMongoDbConnectionDetails.Builder displayName(String displayName) 
 - 
descriptionpublic CreateMongoDbConnectionDetails.Builder description(String description) 
 - 
compartmentIdpublic CreateMongoDbConnectionDetails.Builder compartmentId(String compartmentId) 
 - 
freeformTagspublic CreateMongoDbConnectionDetails.Builder freeformTags(Map<String,String> freeformTags) 
 - 
definedTagspublic CreateMongoDbConnectionDetails.Builder definedTags(Map<String,Map<String,Object>> definedTags) 
 - 
lockspublic CreateMongoDbConnectionDetails.Builder locks(List<AddResourceLockDetails> locks) 
 - 
vaultIdpublic CreateMongoDbConnectionDetails.Builder vaultId(String vaultId) 
 - 
keyIdpublic CreateMongoDbConnectionDetails.Builder keyId(String keyId) 
 - 
nsgIdspublic CreateMongoDbConnectionDetails.Builder nsgIds(List<String> nsgIds) 
 - 
subnetIdpublic CreateMongoDbConnectionDetails.Builder subnetId(String subnetId) 
 - 
routingMethodpublic CreateMongoDbConnectionDetails.Builder routingMethod(RoutingMethod routingMethod) 
 - 
doesUseSecretIdspublic CreateMongoDbConnectionDetails.Builder doesUseSecretIds(Boolean doesUseSecretIds) 
 - 
subscriptionIdpublic CreateMongoDbConnectionDetails.Builder subscriptionId(String subscriptionId) 
 - 
clusterPlacementGroupIdpublic CreateMongoDbConnectionDetails.Builder clusterPlacementGroupId(String clusterPlacementGroupId) 
 - 
securityAttributespublic CreateMongoDbConnectionDetails.Builder securityAttributes(Map<String,Map<String,Object>> securityAttributes) 
 - 
technologyTypepublic CreateMongoDbConnectionDetails.Builder technologyType(MongoDbConnection.TechnologyType technologyType) The MongoDB technology type.- Parameters:
- technologyType- the value to set
- Returns:
- this builder
 
 - 
connectionStringpublic CreateMongoDbConnectionDetails.Builder connectionString(String connectionString) MongoDB connection string.e.g.: ‘mongodb://mongodb0.example.com:27017/recordsrecords’ - Parameters:
- connectionString- the value to set
- Returns:
- this builder
 
 - 
usernamepublic CreateMongoDbConnectionDetails.Builder username(String username) The username Oracle GoldenGate uses to connect to the database.This username must already exist and be available by the database to be connected to. - Parameters:
- username- the value to set
- Returns:
- this builder
 
 - 
passwordpublic CreateMongoDbConnectionDetails.Builder password(String password) The password Oracle GoldenGate uses to connect the associated database.Deprecated: This field is deprecated and replaced by “passwordSecretId”. This field will be removed after February 15 2026. - Parameters:
- password- the value to set
- Returns:
- this builder
 
 - 
passwordSecretIdpublic CreateMongoDbConnectionDetails.Builder passwordSecretId(String passwordSecretId) The OCID of the Secret that stores the password Oracle GoldenGate uses to connect the associated database.Note: When provided, ‘password’ field must not be provided. - Parameters:
- passwordSecretId- the value to set
- Returns:
- this builder
 
 - 
databaseIdpublic CreateMongoDbConnectionDetails.Builder databaseId(String databaseId) The OCID of the Oracle Autonomous Json Database.- Parameters:
- databaseId- the value to set
- Returns:
- this builder
 
 - 
securityProtocolpublic CreateMongoDbConnectionDetails.Builder securityProtocol(MongoDbConnection.SecurityProtocol securityProtocol) Security Type for MongoDB.- Parameters:
- securityProtocol- the value to set
- Returns:
- this builder
 
 - 
tlsCaFilepublic CreateMongoDbConnectionDetails.Builder tlsCaFile(String tlsCaFile) Database Certificate - The base64 encoded content of a .pem file, containing the server public key (for 1 and 2-way SSL).It is not included in GET responses if the view=COMPACT query parameter is specified. - Parameters:
- tlsCaFile- the value to set
- Returns:
- this builder
 
 - 
tlsCertificateKeyFilepublic CreateMongoDbConnectionDetails.Builder tlsCertificateKeyFile(String tlsCertificateKeyFile) Client Certificate - The base64 encoded content of a .pem file, containing the client public key (for 2-way SSL).Deprecated: This field is deprecated and replaced by “tlsCertificateKeyFileSecretId”. This field will be removed after February 15 2026. - Parameters:
- tlsCertificateKeyFile- the value to set
- Returns:
- this builder
 
 - 
tlsCertificateKeyFileSecretIdpublic CreateMongoDbConnectionDetails.Builder tlsCertificateKeyFileSecretId(String tlsCertificateKeyFileSecretId) The OCID of the Secret that stores the certificate key file of the mtls connection.- The content of a .pem file containing the client private key (for 2-way SSL). Note: When provided, ‘tlsCertificateKeyFile’ field must not be provided.
 - Parameters:
- tlsCertificateKeyFileSecretId- the value to set
- Returns:
- this builder
 
 - 
tlsCertificateKeyFilePasswordpublic CreateMongoDbConnectionDetails.Builder tlsCertificateKeyFilePassword(String tlsCertificateKeyFilePassword) Client Certificate key file password.Deprecated: This field is deprecated and replaced by “tlsCertificateKeyFilePasswordSecretId”. This field will be removed after February 15 2026. - Parameters:
- tlsCertificateKeyFilePassword- the value to set
- Returns:
- this builder
 
 - 
tlsCertificateKeyFilePasswordSecretIdpublic CreateMongoDbConnectionDetails.Builder tlsCertificateKeyFilePasswordSecretId(String tlsCertificateKeyFilePasswordSecretId) The OCID of the Secret that stores the password of the tls certificate key file.Note: When provided, ‘tlsCertificateKeyFilePassword’ field must not be provided. - Parameters:
- tlsCertificateKeyFilePasswordSecretId- the value to set
- Returns:
- this builder
 
 - 
buildpublic CreateMongoDbConnectionDetails build() 
 - 
copypublic CreateMongoDbConnectionDetails.Builder copy(CreateMongoDbConnectionDetails model) 
 
- 
 
-