Class Database.Builder
- java.lang.Object
- 
- com.oracle.bmc.database.model.Database.Builder
 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Databasebuild()Database.BuildercharacterSet(String characterSet)The character set for the database.Database.BuildercompartmentId(String compartmentId)The OCID of the compartment.Database.BuilderconnectionStrings(DatabaseConnectionStrings connectionStrings)The Connection strings used to connect to the Oracle Database.Database.Buildercopy(Database model)Database.BuilderdatabaseManagementConfig(CloudDatabaseManagementConfig databaseManagementConfig)Database.BuilderdatabaseSoftwareImageId(String databaseSoftwareImageId)The database software image OCIDDatabase.BuilderdataGuardGroup(DataGuardGroup dataGuardGroup)Database.BuilderdbBackupConfig(DbBackupConfig dbBackupConfig)Database.BuilderdbHomeId(String dbHomeId)The OCID of the Database Home.Database.BuilderdbName(String dbName)The database name.Database.BuilderdbSystemId(String dbSystemId)The OCID of the DB system.Database.BuilderdbUniqueName(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).Database.BuilderdbWorkload(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.Database.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.Database.BuilderencryptionKeyLocationDetails(EncryptionKeyLocationDetails encryptionKeyLocationDetails)Database.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.Database.Builderid(String id)The OCID of the database.Database.BuilderisCdb(Boolean isCdb)True if the database is a container database.Database.BuilderkeyStoreId(String keyStoreId)The OCID of the key store of Oracle Vault.Database.BuilderkeyStoreWalletName(String keyStoreWalletName)The wallet name for Oracle Key Vault.Database.BuilderkmsKeyId(String kmsKeyId)The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.Database.BuilderkmsKeyVersionId(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.Database.BuilderlastBackupDurationInSeconds(Integer lastBackupDurationInSeconds)The duration when the latest database backup created.Database.BuilderlastBackupTimestamp(Date lastBackupTimestamp)The date and time when the latest database backup was created.Database.BuilderlastFailedBackupTimestamp(Date lastFailedBackupTimestamp)The date and time when the latest database backup failed.Database.BuilderlifecycleDetails(String lifecycleDetails)Additional information about the current lifecycle state.Database.BuilderlifecycleState(Database.LifecycleState lifecycleState)The current state of the database.Database.BuilderncharacterSet(String ncharacterSet)The national character set for the database.Database.BuilderpdbName(String pdbName)The name of the pluggable database.Database.BuildersidPrefix(String sidPrefix)Specifies a prefix for the Oracle SID of the database to be created.Database.BuildersourceDatabasePointInTimeRecoveryTimestamp(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 3339Database.BuilderstorageSizeDetails(DatabaseStorageSizeResponseDetails storageSizeDetails)Database.BuildersystemTags(Map<String,Map<String,Object>> systemTags)System tags for this resource.Database.BuildertimeCreated(Date timeCreated)The date and time the database was created.Database.BuildervaultId(String vaultId)Database.BuildervmClusterId(String vmClusterId)The OCID of the VM cluster.
 
- 
- 
- 
Method Detail- 
idpublic Database.Builder id(String id) The OCID of the database.- Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
compartmentIdpublic Database.Builder compartmentId(String compartmentId) The OCID of the compartment.- Parameters:
- compartmentId- the value to set
- Returns:
- this builder
 
 - 
characterSetpublic Database.Builder characterSet(String characterSet) The character set for the database.- Parameters:
- characterSet- the value to set
- Returns:
- this builder
 
 - 
ncharacterSetpublic Database.Builder ncharacterSet(String ncharacterSet) The national character set for the database.- Parameters:
- ncharacterSet- the value to set
- Returns:
- this builder
 
 - 
dbHomeIdpublic Database.Builder dbHomeId(String dbHomeId) The OCID of the Database Home.- Parameters:
- dbHomeId- the value to set
- Returns:
- this builder
 
 - 
dbSystemIdpublic Database.Builder dbSystemId(String dbSystemId) The OCID of the DB system.- Parameters:
- dbSystemId- the value to set
- Returns:
- this builder
 
 - 
vmClusterIdpublic Database.Builder vmClusterId(String vmClusterId) The OCID of the VM cluster.- Parameters:
- vmClusterId- the value to set
- Returns:
- this builder
 
 - 
dbNamepublic Database.Builder dbName(String dbName) The database name.- Parameters:
- dbName- the value to set
- Returns:
- this builder
 
 - 
pdbNamepublic Database.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
 
 - 
dbWorkloadpublic Database.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
 
 - 
dbUniqueNamepublic Database.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
 
 - 
lifecycleDetailspublic Database.Builder lifecycleDetails(String lifecycleDetails) Additional information about the current lifecycle state.- Parameters:
- lifecycleDetails- the value to set
- Returns:
- this builder
 
 - 
lifecycleStatepublic Database.Builder lifecycleState(Database.LifecycleState lifecycleState) The current state of the database.- Parameters:
- lifecycleState- the value to set
- Returns:
- this builder
 
 - 
timeCreatedpublic Database.Builder timeCreated(Date timeCreated) The date and time the database was created.- Parameters:
- timeCreated- the value to set
- Returns:
- this builder
 
 - 
lastBackupTimestamppublic Database.Builder lastBackupTimestamp(Date lastBackupTimestamp) The date and time when the latest database backup was created.- Parameters:
- lastBackupTimestamp- the value to set
- Returns:
- this builder
 
 - 
lastBackupDurationInSecondspublic Database.Builder lastBackupDurationInSeconds(Integer lastBackupDurationInSeconds) The duration when the latest database backup created.- Parameters:
- lastBackupDurationInSeconds- the value to set
- Returns:
- this builder
 
 - 
lastFailedBackupTimestamppublic Database.Builder lastFailedBackupTimestamp(Date lastFailedBackupTimestamp) The date and time when the latest database backup failed.- Parameters:
- lastFailedBackupTimestamp- the value to set
- Returns:
- this builder
 
 - 
dbBackupConfigpublic Database.Builder dbBackupConfig(DbBackupConfig dbBackupConfig) 
 - 
freeformTagspublic Database.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
 
 - 
definedTagspublic Database.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
 
 - 
systemTagspublic Database.Builder systemTags(Map<String,Map<String,Object>> systemTags) System tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags. - Parameters:
- systemTags- the value to set
- Returns:
- this builder
 
 - 
connectionStringspublic Database.Builder connectionStrings(DatabaseConnectionStrings connectionStrings) The Connection strings used to connect to the Oracle Database.- Parameters:
- connectionStrings- the value to set
- Returns:
- this builder
 
 - 
kmsKeyIdpublic Database.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
 
 - 
kmsKeyVersionIdpublic Database.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 AI Database Serverless does not use key versions, hence is not applicable for Autonomous AI Database Serverless instances. - Parameters:
- kmsKeyVersionId- the value to set
- Returns:
- this builder
 
 - 
vaultIdpublic Database.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
 
 - 
sourceDatabasePointInTimeRecoveryTimestamppublic Database.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
 
 - 
databaseSoftwareImageIdpublic Database.Builder databaseSoftwareImageId(String databaseSoftwareImageId) The database software image OCID- Parameters:
- databaseSoftwareImageId- the value to set
- Returns:
- this builder
 
 - 
isCdbpublic Database.Builder isCdb(Boolean isCdb) True if the database is a container database.- Parameters:
- isCdb- the value to set
- Returns:
- this builder
 
 - 
databaseManagementConfigpublic Database.Builder databaseManagementConfig(CloudDatabaseManagementConfig databaseManagementConfig) 
 - 
sidPrefixpublic Database.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
 
 - 
keyStoreIdpublic Database.Builder keyStoreId(String keyStoreId) The OCID of the key store of Oracle Vault.- Parameters:
- keyStoreId- the value to set
- Returns:
- this builder
 
 - 
keyStoreWalletNamepublic Database.Builder keyStoreWalletName(String keyStoreWalletName) The wallet name for Oracle Key Vault.- Parameters:
- keyStoreWalletName- the value to set
- Returns:
- this builder
 
 - 
dataGuardGrouppublic Database.Builder dataGuardGroup(DataGuardGroup dataGuardGroup) 
 - 
encryptionKeyLocationDetailspublic Database.Builder encryptionKeyLocationDetails(EncryptionKeyLocationDetails encryptionKeyLocationDetails) 
 - 
storageSizeDetailspublic Database.Builder storageSizeDetails(DatabaseStorageSizeResponseDetails storageSizeDetails) 
 - 
buildpublic Database build() 
 - 
copypublic Database.Builder copy(Database model) 
 
- 
 
-