public static class Connection.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Connection.Builder |
adminCredentials(AdminCredentials adminCredentials) |
Connection |
build() |
Connection.Builder |
certificateTdn(String certificateTdn)
This name is the distinguished name used while creating the certificate on target
database.
|
Connection.Builder |
compartmentId(String compartmentId)
OCID of the compartment
|
Connection.Builder |
connectDescriptor(ConnectDescriptor connectDescriptor) |
Connection.Builder |
copy(Connection model) |
Connection.Builder |
credentialsSecretId(String credentialsSecretId)
OCID of the Secret in the OCI vault containing the Database Connection credentials.
|
Connection.Builder |
databaseId(String databaseId)
The OCID of the cloud database.
|
Connection.Builder |
databaseType(DatabaseConnectionTypes databaseType)
Database connection type.
|
Connection.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
Connection.Builder |
displayName(String displayName)
Database Connection display name identifier.
|
Connection.Builder |
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.
|
Connection.Builder |
id(String id)
The OCID of the resource
|
Connection.Builder |
isDedicated(Boolean isDedicated)
True if the Autonomous Connection is dedicated.
|
Connection.Builder |
lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail.
|
Connection.Builder |
lifecycleState(LifecycleStates lifecycleState)
The current state of the Connection resource.
|
Connection.Builder |
manualDatabaseSubType(DatabaseManualConnectionSubTypes manualDatabaseSubType)
Database manual connection subtype.
|
Connection.Builder |
nsgIds(List<String> nsgIds)
An array of Network Security Group OCIDs used to define network access for Connections.
|
Connection.Builder |
privateEndpoint(PrivateEndpointDetails privateEndpoint) |
Connection.Builder |
replicationCredentials(AdminCredentials replicationCredentials) |
Connection.Builder |
sshDetails(SshDetails sshDetails) |
Connection.Builder |
systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.
|
Connection.Builder |
timeCreated(Date timeCreated)
The time the Connection resource was created.
|
Connection.Builder |
timeUpdated(Date timeUpdated)
The time of the last Connection resource details update.
|
Connection.Builder |
vaultDetails(VaultDetails vaultDetails) |
public Connection.Builder id(String id)
The OCID of the resource
id
- the value to setpublic Connection.Builder compartmentId(String compartmentId)
OCID of the compartment
compartmentId
- the value to setpublic Connection.Builder databaseType(DatabaseConnectionTypes databaseType)
Database connection type.
databaseType
- the value to setpublic Connection.Builder manualDatabaseSubType(DatabaseManualConnectionSubTypes manualDatabaseSubType)
Database manual connection subtype. This value can only be specified for manual connections.
manualDatabaseSubType
- the value to setpublic Connection.Builder isDedicated(Boolean isDedicated)
True if the Autonomous Connection is dedicated. Not provided for Non-Autonomous Connections.
isDedicated
- the value to setpublic Connection.Builder displayName(String displayName)
Database Connection display name identifier.
displayName
- the value to setpublic Connection.Builder databaseId(String databaseId)
The OCID of the cloud database.
databaseId
- the value to setpublic Connection.Builder connectDescriptor(ConnectDescriptor connectDescriptor)
public Connection.Builder credentialsSecretId(String credentialsSecretId)
OCID of the Secret in the OCI vault containing the Database Connection credentials.
credentialsSecretId
- the value to setpublic Connection.Builder certificateTdn(String certificateTdn)
This name is the distinguished name used while creating the certificate on target database.
certificateTdn
- the value to setpublic Connection.Builder sshDetails(SshDetails sshDetails)
public Connection.Builder adminCredentials(AdminCredentials adminCredentials)
public Connection.Builder replicationCredentials(AdminCredentials replicationCredentials)
public Connection.Builder privateEndpoint(PrivateEndpointDetails privateEndpoint)
public Connection.Builder vaultDetails(VaultDetails vaultDetails)
public Connection.Builder lifecycleState(LifecycleStates lifecycleState)
The current state of the Connection resource.
lifecycleState
- the value to setpublic Connection.Builder lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
lifecycleDetails
- the value to setpublic Connection.Builder timeCreated(Date timeCreated)
The time the Connection resource was created. An RFC3339 formatted datetime string.
timeCreated
- the value to setpublic Connection.Builder timeUpdated(Date timeUpdated)
The time of the last Connection resource details update. An RFC3339 formatted datetime string.
timeUpdated
- the value to setpublic Connection.Builder freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope. Exists
for cross-compatibility only. Example: {"bar-key": "value"}
freeformTags
- the value to setpublic Connection.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource. Each key is predefined and scoped to a namespace.
Example: {"foo-namespace": {"bar-key": "value"}}
definedTags
- the value to setpublic Connection.Builder systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud": {"free-tier-retained": "true"}}
systemTags
- the value to setpublic Connection.Builder nsgIds(List<String> nsgIds)
An array of Network Security Group OCIDs used to define network access for Connections.
nsgIds
- the value to setpublic Connection build()
public Connection.Builder copy(Connection model)
Copyright © 2016–2023. All rights reserved.