@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public final class Database extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Database.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the Database.Builder
, which maintain a
set of all explicitly set fields called Database.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).Modifier and Type | Class and Description |
---|---|
static class |
Database.Builder |
static class |
Database.LifecycleState
The current state of the database.
|
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
Database(String id,
String compartmentId,
String characterSet,
String ncharacterSet,
String dbHomeId,
String dbSystemId,
String vmClusterId,
String dbName,
String pdbName,
String dbWorkload,
String dbUniqueName,
String lifecycleDetails,
Database.LifecycleState lifecycleState,
Date timeCreated,
Date lastBackupTimestamp,
Integer lastBackupDurationInSeconds,
Date lastFailedBackupTimestamp,
DbBackupConfig dbBackupConfig,
Map<String,String> freeformTags,
Map<String,Map<String,Object>> definedTags,
DatabaseConnectionStrings connectionStrings,
String kmsKeyId,
String kmsKeyVersionId,
String vaultId,
Date sourceDatabasePointInTimeRecoveryTimestamp,
String databaseSoftwareImageId,
Boolean isCdb,
CloudDatabaseManagementConfig databaseManagementConfig,
String sidPrefix,
String keyStoreId,
String keyStoreWalletName)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static Database.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getCharacterSet()
The character set for the database.
|
String |
getCompartmentId()
The OCID of the
compartment.
|
DatabaseConnectionStrings |
getConnectionStrings()
The Connection strings used to connect to the Oracle Database.
|
CloudDatabaseManagementConfig |
getDatabaseManagementConfig() |
String |
getDatabaseSoftwareImageId()
The database software image
OCID
|
DbBackupConfig |
getDbBackupConfig() |
String |
getDbHomeId()
The OCID of the
Database Home.
|
String |
getDbName()
The database name.
|
String |
getDbSystemId()
The OCID of the DB
system.
|
String |
getDbUniqueName()
A system-generated name for the database to ensure uniqueness within an Oracle Data Guard
group (a primary database and its standby databases).
|
String |
getDbWorkload()
Deprecated. The dbWorkload field has been deprecated for Exadata Database Service on
Dedicated Infrastructure, Exadata Database Service on Cloud@Customer, and Base Database
Service.
|
Map<String,Map<String,Object>> |
getDefinedTags()
Defined tags for this resource.
|
Map<String,String> |
getFreeformTags()
Free-form tags for this resource.
|
String |
getId()
The OCID of the
database.
|
Boolean |
getIsCdb()
True if the database is a container database.
|
String |
getKeyStoreId()
The OCID of the key
store of Oracle Vault.
|
String |
getKeyStoreWalletName()
The wallet name for Oracle Key Vault.
|
String |
getKmsKeyId()
The OCID of the key container that is used as the master encryption key in database
transparent data encryption (TDE) operations.
|
String |
getKmsKeyVersionId()
The OCID of the key container version that is used in database transparent data encryption
(TDE) operations KMS Key can have multiple key versions.
|
Integer |
getLastBackupDurationInSeconds()
The duration when the latest database backup created.
|
Date |
getLastBackupTimestamp()
The date and time when the latest database backup was created.
|
Date |
getLastFailedBackupTimestamp()
The date and time when the latest database backup failed.
|
String |
getLifecycleDetails()
Additional information about the current lifecycle state.
|
Database.LifecycleState |
getLifecycleState()
The current state of the database.
|
String |
getNcharacterSet()
The national character set for the database.
|
String |
getPdbName()
The name of the pluggable database.
|
String |
getSidPrefix()
Specifies a prefix for the
Oracle SID of the database to be created. |
Date |
getSourceDatabasePointInTimeRecoveryTimestamp()
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
|
Date |
getTimeCreated()
The date and time the database was created.
|
String |
getVaultId()
|
String |
getVmClusterId()
The OCID of the VM
cluster.
|
int |
hashCode() |
Database.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"id","compartmentId","characterSet","ncharacterSet","dbHomeId","dbSystemId","vmClusterId","dbName","pdbName","dbWorkload","dbUniqueName","lifecycleDetails","lifecycleState","timeCreated","lastBackupTimestamp","lastBackupDurationInSeconds","lastFailedBackupTimestamp","dbBackupConfig","freeformTags","definedTags","connectionStrings","kmsKeyId","kmsKeyVersionId","vaultId","sourceDatabasePointInTimeRecoveryTimestamp","databaseSoftwareImageId","isCdb","databaseManagementConfig","sidPrefix","keyStoreId","keyStoreWalletName"}) public Database(String id, String compartmentId, String characterSet, String ncharacterSet, String dbHomeId, String dbSystemId, String vmClusterId, String dbName, String pdbName, String dbWorkload, String dbUniqueName, String lifecycleDetails, Database.LifecycleState lifecycleState, Date timeCreated, Date lastBackupTimestamp, Integer lastBackupDurationInSeconds, Date lastFailedBackupTimestamp, DbBackupConfig dbBackupConfig, Map<String,String> freeformTags, Map<String,Map<String,Object>> definedTags, DatabaseConnectionStrings connectionStrings, String kmsKeyId, String kmsKeyVersionId, String vaultId, Date sourceDatabasePointInTimeRecoveryTimestamp, String databaseSoftwareImageId, Boolean isCdb, CloudDatabaseManagementConfig databaseManagementConfig, String sidPrefix, String keyStoreId, String keyStoreWalletName)
public static Database.Builder builder()
Create a new builder.
public Database.Builder toBuilder()
public String getCharacterSet()
The character set for the database.
public String getNcharacterSet()
The national character set for the database.
public String getDbName()
The database name.
public String getPdbName()
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.
public String getDbWorkload()
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.
public String getDbUniqueName()
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.
public String getLifecycleDetails()
Additional information about the current lifecycle state.
public Database.LifecycleState getLifecycleState()
The current state of the database.
public Date getTimeCreated()
The date and time the database was created.
public Date getLastBackupTimestamp()
The date and time when the latest database backup was created.
public Integer getLastBackupDurationInSeconds()
The duration when the latest database backup created.
public Date getLastFailedBackupTimestamp()
The date and time when the latest database backup failed.
public DbBackupConfig getDbBackupConfig()
public Map<String,String> getFreeformTags()
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"}
public Map<String,Map<String,Object>> getDefinedTags()
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
public DatabaseConnectionStrings getConnectionStrings()
The Connection strings used to connect to the Oracle Database.
public String getKmsKeyId()
The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.
public String getKmsKeyVersionId()
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.
public String getVaultId()
The OCID of the
Oracle Cloud Infrastructure
vault.
This parameter and secretId
are required for Customer Managed Keys.
public Date getSourceDatabasePointInTimeRecoveryTimestamp()
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
public String getDatabaseSoftwareImageId()
The database software image OCID
public Boolean getIsCdb()
True if the database is a container database.
public CloudDatabaseManagementConfig getDatabaseManagementConfig()
public String getSidPrefix()
Specifies a prefix for the Oracle SID
of the database to be created.
public String getKeyStoreId()
The OCID of the key store of Oracle Vault.
public String getKeyStoreWalletName()
The wallet name for Oracle Key Vault.
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.