Package com.oracle.bmc.database.model
Class DatabaseSslConnectionCredentials.Builder
- java.lang.Object
-
- com.oracle.bmc.database.model.DatabaseSslConnectionCredentials.Builder
-
- Enclosing class:
- DatabaseSslConnectionCredentials
public static class DatabaseSslConnectionCredentials.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DatabaseSslConnectionCredentials
build()
DatabaseSslConnectionCredentials.Builder
copy(DatabaseSslConnectionCredentials model)
DatabaseSslConnectionCredentials.Builder
credentialName(String credentialName)
The name of the credential information that used to connect to the database.DatabaseSslConnectionCredentials.Builder
password(String password)
The password that will be used to connect to the database.DatabaseSslConnectionCredentials.Builder
role(DatabaseSslConnectionCredentials.Role role)
The role of the user that will be connecting to the database.DatabaseSslConnectionCredentials.Builder
sslSecretId(String sslSecretId)
DatabaseSslConnectionCredentials.Builder
username(String username)
The username that will be used to connect to the database.
-
-
-
Method Detail
-
credentialName
public DatabaseSslConnectionCredentials.Builder credentialName(String credentialName)
The name of the credential information that used to connect to the database.The name should be in “x.y” format, where the length of “x” has a maximum of 64 characters, and length of “y” has a maximum of 199 characters. The name strings can contain letters, numbers and the underscore character only. Other characters are not valid, except for the “.” character that separates the “x” and “y” portions of the name. IMPORTANT - The name must be unique within the OCI region the credential is being created in. If you specify a name that duplicates the name of another credential within the same OCI region, you may overwrite or corrupt the credential that is already using the name.
For example: inventorydb.abc112233445566778899
- Parameters:
credentialName
- the value to set- Returns:
- this builder
-
username
public DatabaseSslConnectionCredentials.Builder username(String username)
The username that will be used to connect to the database.- Parameters:
username
- the value to set- Returns:
- this builder
-
password
public DatabaseSslConnectionCredentials.Builder password(String password)
The password that will be used to connect to the database.- Parameters:
password
- the value to set- Returns:
- this builder
-
role
public DatabaseSslConnectionCredentials.Builder role(DatabaseSslConnectionCredentials.Role role)
The role of the user that will be connecting to the database.- Parameters:
role
- the value to set- Returns:
- this builder
-
sslSecretId
public DatabaseSslConnectionCredentials.Builder sslSecretId(String sslSecretId)
- Parameters:
sslSecretId
- the value to set- Returns:
- this builder
-
build
public DatabaseSslConnectionCredentials build()
-
copy
public DatabaseSslConnectionCredentials.Builder copy(DatabaseSslConnectionCredentials model)
-
-