Class DatabaseSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.database.model.DatabaseSummary.Builder
-
- Enclosing class:
- DatabaseSummary
public static class DatabaseSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DatabaseSummary
build()
DatabaseSummary.Builder
characterSet(String characterSet)
The character set for the database.DatabaseSummary.Builder
compartmentId(String compartmentId)
The OCID of the compartment.DatabaseSummary.Builder
connectionStrings(DatabaseConnectionStrings connectionStrings)
The Connection strings used to connect to the Oracle Database.DatabaseSummary.Builder
copy(DatabaseSummary model)
DatabaseSummary.Builder
databaseManagementConfig(CloudDatabaseManagementConfig databaseManagementConfig)
DatabaseSummary.Builder
databaseSoftwareImageId(String databaseSoftwareImageId)
The database software image OCIDDatabaseSummary.Builder
dataGuardGroup(DataGuardGroup dataGuardGroup)
DatabaseSummary.Builder
dbBackupConfig(DbBackupConfig dbBackupConfig)
DatabaseSummary.Builder
dbHomeId(String dbHomeId)
The OCID of the Database Home.DatabaseSummary.Builder
dbName(String dbName)
The database name.DatabaseSummary.Builder
dbSystemId(String dbSystemId)
The OCID of the DB system.DatabaseSummary.Builder
dbUniqueName(String dbUniqueName)
A system-generated name for the database to ensure uniqueness within an Oracle Data Guard group (a primary database and its standby databases).DatabaseSummary.Builder
dbWorkload(String dbWorkload)
Deprecated. The dbWorkload field has been deprecated for Exadata Database Service on Dedicated Infrastructure, Exadata Database Service on Cloud@Customer, and Base Database Service.DatabaseSummary.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.DatabaseSummary.Builder
encryptionKeyLocationDetails(EncryptionKeyLocationDetails encryptionKeyLocationDetails)
DatabaseSummary.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.DatabaseSummary.Builder
id(String id)
The OCID of the database.DatabaseSummary.Builder
isCdb(Boolean isCdb)
True if the database is a container database.DatabaseSummary.Builder
keyStoreId(String keyStoreId)
The OCID of the key store of Oracle Vault.DatabaseSummary.Builder
keyStoreWalletName(String keyStoreWalletName)
The wallet name for Oracle Key Vault.DatabaseSummary.Builder
kmsKeyId(String kmsKeyId)
The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.DatabaseSummary.Builder
kmsKeyVersionId(String kmsKeyVersionId)
The OCID of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions.DatabaseSummary.Builder
lastBackupDurationInSeconds(Integer lastBackupDurationInSeconds)
The duration when the latest database backup created.DatabaseSummary.Builder
lastBackupTimestamp(Date lastBackupTimestamp)
The date and time when the latest database backup was created.DatabaseSummary.Builder
lastFailedBackupTimestamp(Date lastFailedBackupTimestamp)
The date and time when the latest database backup failed.DatabaseSummary.Builder
lifecycleDetails(String lifecycleDetails)
Additional information about the current lifecycle state.DatabaseSummary.Builder
lifecycleState(DatabaseSummary.LifecycleState lifecycleState)
The current state of the database.DatabaseSummary.Builder
ncharacterSet(String ncharacterSet)
The national character set for the database.DatabaseSummary.Builder
pdbName(String pdbName)
The name of the pluggable database.DatabaseSummary.Builder
sidPrefix(String sidPrefix)
Specifies a prefix for the Oracle SID of the database to be created.DatabaseSummary.Builder
sourceDatabasePointInTimeRecoveryTimestamp(Date sourceDatabasePointInTimeRecoveryTimestamp)
Point in time recovery timeStamp of the source database at which cloned database system is cloned from the source database system, as described in RFC 3339DatabaseSummary.Builder
timeCreated(Date timeCreated)
The date and time the database was created.DatabaseSummary.Builder
vaultId(String vaultId)
DatabaseSummary.Builder
vmClusterId(String vmClusterId)
The OCID of the VM cluster.
-
-
-
Method Detail
-
id
public DatabaseSummary.Builder id(String id)
The OCID of the database.- Parameters:
id
- the value to set- Returns:
- this builder
-
compartmentId
public DatabaseSummary.Builder compartmentId(String compartmentId)
The OCID of the compartment.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
characterSet
public DatabaseSummary.Builder characterSet(String characterSet)
The character set for the database.- Parameters:
characterSet
- the value to set- Returns:
- this builder
-
ncharacterSet
public DatabaseSummary.Builder ncharacterSet(String ncharacterSet)
The national character set for the database.- Parameters:
ncharacterSet
- the value to set- Returns:
- this builder
-
dbHomeId
public DatabaseSummary.Builder dbHomeId(String dbHomeId)
The OCID of the Database Home.- Parameters:
dbHomeId
- the value to set- Returns:
- this builder
-
dbSystemId
public DatabaseSummary.Builder dbSystemId(String dbSystemId)
The OCID of the DB system.- Parameters:
dbSystemId
- the value to set- Returns:
- this builder
-
vmClusterId
public DatabaseSummary.Builder vmClusterId(String vmClusterId)
The OCID of the VM cluster.- Parameters:
vmClusterId
- the value to set- Returns:
- this builder
-
dbName
public DatabaseSummary.Builder dbName(String dbName)
The database name.- Parameters:
dbName
- the value to set- Returns:
- this builder
-
pdbName
public DatabaseSummary.Builder pdbName(String pdbName)
The name of the pluggable database.The name must begin with an alphabetic character and can contain a maximum of thirty alphanumeric characters. Special characters are not permitted. Pluggable database should not be same as database name.
- Parameters:
pdbName
- the value to set- Returns:
- this builder
-
dbWorkload
public DatabaseSummary.Builder dbWorkload(String dbWorkload)
Deprecated. The dbWorkload field has been deprecated for Exadata Database Service on Dedicated Infrastructure, Exadata Database Service on Cloud@Customer, and Base Database Service.Support for this attribute will end in November 2023. You may choose to update your custom scripts to exclude the dbWorkload attribute. After November 2023 if you pass a value to the dbWorkload attribute, it will be ignored.
The database workload type.
- Parameters:
dbWorkload
- the value to set- Returns:
- this builder
-
dbUniqueName
public DatabaseSummary.Builder dbUniqueName(String dbUniqueName)
A system-generated name for the database to ensure uniqueness within an Oracle Data Guard group (a primary database and its standby databases).The unique name cannot be changed.
- Parameters:
dbUniqueName
- the value to set- Returns:
- this builder
-
lifecycleDetails
public DatabaseSummary.Builder lifecycleDetails(String lifecycleDetails)
Additional information about the current lifecycle state.- Parameters:
lifecycleDetails
- the value to set- Returns:
- this builder
-
lifecycleState
public DatabaseSummary.Builder lifecycleState(DatabaseSummary.LifecycleState lifecycleState)
The current state of the database.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
timeCreated
public DatabaseSummary.Builder timeCreated(Date timeCreated)
The date and time the database was created.- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
lastBackupTimestamp
public DatabaseSummary.Builder lastBackupTimestamp(Date lastBackupTimestamp)
The date and time when the latest database backup was created.- Parameters:
lastBackupTimestamp
- the value to set- Returns:
- this builder
-
lastBackupDurationInSeconds
public DatabaseSummary.Builder lastBackupDurationInSeconds(Integer lastBackupDurationInSeconds)
The duration when the latest database backup created.- Parameters:
lastBackupDurationInSeconds
- the value to set- Returns:
- this builder
-
lastFailedBackupTimestamp
public DatabaseSummary.Builder lastFailedBackupTimestamp(Date lastFailedBackupTimestamp)
The date and time when the latest database backup failed.- Parameters:
lastFailedBackupTimestamp
- the value to set- Returns:
- this builder
-
dbBackupConfig
public DatabaseSummary.Builder dbBackupConfig(DbBackupConfig dbBackupConfig)
-
freeformTags
public DatabaseSummary.Builder freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {"Department": "Finance"}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public DatabaseSummary.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
connectionStrings
public DatabaseSummary.Builder connectionStrings(DatabaseConnectionStrings connectionStrings)
The Connection strings used to connect to the Oracle Database.- Parameters:
connectionStrings
- the value to set- Returns:
- this builder
-
kmsKeyId
public DatabaseSummary.Builder kmsKeyId(String kmsKeyId)
The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.- Parameters:
kmsKeyId
- the value to set- Returns:
- this builder
-
kmsKeyVersionId
public DatabaseSummary.Builder kmsKeyVersionId(String kmsKeyVersionId)
The OCID of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions.If none is specified, the current key version (latest) of the Key Id is used for the operation. Autonomous Database Serverless does not use key versions, hence is not applicable for Autonomous Database Serverless instances.
- Parameters:
kmsKeyVersionId
- the value to set- Returns:
- this builder
-
vaultId
public DatabaseSummary.Builder vaultId(String vaultId)
The OCID of the Oracle Cloud Infrastructure vault.This parameter and secretId are required for Customer Managed Keys.
- Parameters:
vaultId
- the value to set- Returns:
- this builder
-
sourceDatabasePointInTimeRecoveryTimestamp
public DatabaseSummary.Builder sourceDatabasePointInTimeRecoveryTimestamp(Date sourceDatabasePointInTimeRecoveryTimestamp)
Point in time recovery timeStamp of the source database at which cloned database system is cloned from the source database system, as described in RFC 3339- Parameters:
sourceDatabasePointInTimeRecoveryTimestamp
- the value to set- Returns:
- this builder
-
databaseSoftwareImageId
public DatabaseSummary.Builder databaseSoftwareImageId(String databaseSoftwareImageId)
The database software image OCID- Parameters:
databaseSoftwareImageId
- the value to set- Returns:
- this builder
-
isCdb
public DatabaseSummary.Builder isCdb(Boolean isCdb)
True if the database is a container database.- Parameters:
isCdb
- the value to set- Returns:
- this builder
-
databaseManagementConfig
public DatabaseSummary.Builder databaseManagementConfig(CloudDatabaseManagementConfig databaseManagementConfig)
-
sidPrefix
public DatabaseSummary.Builder sidPrefix(String sidPrefix)
Specifies a prefix for the Oracle SID of the database to be created.- Parameters:
sidPrefix
- the value to set- Returns:
- this builder
-
keyStoreId
public DatabaseSummary.Builder keyStoreId(String keyStoreId)
The OCID of the key store of Oracle Vault.- Parameters:
keyStoreId
- the value to set- Returns:
- this builder
-
keyStoreWalletName
public DatabaseSummary.Builder keyStoreWalletName(String keyStoreWalletName)
The wallet name for Oracle Key Vault.- Parameters:
keyStoreWalletName
- the value to set- Returns:
- this builder
-
dataGuardGroup
public DatabaseSummary.Builder dataGuardGroup(DataGuardGroup dataGuardGroup)
-
encryptionKeyLocationDetails
public DatabaseSummary.Builder encryptionKeyLocationDetails(EncryptionKeyLocationDetails encryptionKeyLocationDetails)
-
build
public DatabaseSummary build()
-
copy
public DatabaseSummary.Builder copy(DatabaseSummary model)
-
-