Class DatabaseCredentials.Builder
- java.lang.Object
-
- com.oracle.bmc.databasemanagement.model.DatabaseCredentials.Builder
-
- Enclosing class:
- DatabaseCredentials
public static class DatabaseCredentials.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DatabaseCredentials
build()
DatabaseCredentials.Builder
copy(DatabaseCredentials model)
DatabaseCredentials.Builder
password(String password)
The password for the database user name.DatabaseCredentials.Builder
role(DatabaseCredentials.Role role)
The role of the database user.DatabaseCredentials.Builder
secretId(String secretId)
The OCID of the secret containing the user password.DatabaseCredentials.Builder
userName(String userName)
The database user name used to perform management activity.
-
-
-
Method Detail
-
userName
public DatabaseCredentials.Builder userName(String userName)
The database user name used to perform management activity.- Parameters:
userName
- the value to set- Returns:
- this builder
-
password
public DatabaseCredentials.Builder password(String password)
The password for the database user name.- Parameters:
password
- the value to set- Returns:
- this builder
-
secretId
public DatabaseCredentials.Builder secretId(String secretId)
The OCID of the secret containing the user password.- Parameters:
secretId
- the value to set- Returns:
- this builder
-
role
public DatabaseCredentials.Builder role(DatabaseCredentials.Role role)
The role of the database user.Indicates whether the database user is a normal user or sysdba.
- Parameters:
role
- the value to set- Returns:
- this builder
-
build
public DatabaseCredentials build()
-
copy
public DatabaseCredentials.Builder copy(DatabaseCredentials model)
-
-