Class Database.Builder
- java.lang.Object
-
- com.oracle.bmc.database.model.Database.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All 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
-
id
public Database.Builder id(String id)
The OCID of the database.- Parameters:
id- the value to set- Returns:
- this builder
-
compartmentId
public Database.Builder compartmentId(String compartmentId)
The OCID of the compartment.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
characterSet
public Database.Builder characterSet(String characterSet)
The character set for the database.- Parameters:
characterSet- the value to set- Returns:
- this builder
-
ncharacterSet
public Database.Builder ncharacterSet(String ncharacterSet)
The national character set for the database.- Parameters:
ncharacterSet- the value to set- Returns:
- this builder
-
dbHomeId
public Database.Builder dbHomeId(String dbHomeId)
The OCID of the Database Home.- Parameters:
dbHomeId- the value to set- Returns:
- this builder
-
dbSystemId
public Database.Builder dbSystemId(String dbSystemId)
The OCID of the DB system.- Parameters:
dbSystemId- the value to set- Returns:
- this builder
-
vmClusterId
public Database.Builder vmClusterId(String vmClusterId)
The OCID of the VM cluster.- Parameters:
vmClusterId- the value to set- Returns:
- this builder
-
dbName
public Database.Builder dbName(String dbName)
The database name.- Parameters:
dbName- the value to set- Returns:
- this builder
-
pdbName
public 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
-
dbWorkload
public 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
-
dbUniqueName
public 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
-
lifecycleDetails
public Database.Builder lifecycleDetails(String lifecycleDetails)
Additional information about the current lifecycle state.- Parameters:
lifecycleDetails- the value to set- Returns:
- this builder
-
lifecycleState
public Database.Builder lifecycleState(Database.LifecycleState lifecycleState)
The current state of the database.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
timeCreated
public Database.Builder timeCreated(Date timeCreated)
The date and time the database was created.- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
lastBackupTimestamp
public 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
-
lastBackupDurationInSeconds
public Database.Builder lastBackupDurationInSeconds(Integer lastBackupDurationInSeconds)
The duration when the latest database backup created.- Parameters:
lastBackupDurationInSeconds- the value to set- Returns:
- this builder
-
lastFailedBackupTimestamp
public Database.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 Database.Builder dbBackupConfig(DbBackupConfig dbBackupConfig)
-
freeformTags
public 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
-
definedTags
public 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
-
systemTags
public 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
-
connectionStrings
public Database.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 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
-
kmsKeyVersionId
public 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 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 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
-
sourceDatabasePointInTimeRecoveryTimestamp
public 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
-
databaseSoftwareImageId
public Database.Builder databaseSoftwareImageId(String databaseSoftwareImageId)
The database software image OCID- Parameters:
databaseSoftwareImageId- the value to set- Returns:
- this builder
-
isCdb
public Database.Builder isCdb(Boolean isCdb)
True if the database is a container database.- Parameters:
isCdb- the value to set- Returns:
- this builder
-
databaseManagementConfig
public Database.Builder databaseManagementConfig(CloudDatabaseManagementConfig databaseManagementConfig)
-
sidPrefix
public 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
-
keyStoreId
public Database.Builder keyStoreId(String keyStoreId)
The OCID of the key store of Oracle Vault.- Parameters:
keyStoreId- the value to set- Returns:
- this builder
-
keyStoreWalletName
public Database.Builder keyStoreWalletName(String keyStoreWalletName)
The wallet name for Oracle Key Vault.- Parameters:
keyStoreWalletName- the value to set- Returns:
- this builder
-
dataGuardGroup
public Database.Builder dataGuardGroup(DataGuardGroup dataGuardGroup)
-
encryptionKeyLocationDetails
public Database.Builder encryptionKeyLocationDetails(EncryptionKeyLocationDetails encryptionKeyLocationDetails)
-
storageSizeDetails
public Database.Builder storageSizeDetails(DatabaseStorageSizeResponseDetails storageSizeDetails)
-
build
public Database build()
-
copy
public Database.Builder copy(Database model)
-
-