Package com.oracle.bmc.database.model
Class AutonomousDatabaseBackup
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.database.model.AutonomousDatabaseBackup
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public final class AutonomousDatabaseBackup extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelAn Autonomous Database backup.
Note: Objects should always be created or deserialized using theAutonomousDatabaseBackup.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 theAutonomousDatabaseBackup.Builder, which maintain a set of all explicitly set fields calledAutonomousDatabaseBackup.Builder.__explicitlySet__. ThehashCode()andequals(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).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAutonomousDatabaseBackup.Builderstatic classAutonomousDatabaseBackup.InfrastructureTypeThe infrastructure type this resource belongs to.static classAutonomousDatabaseBackup.LifecycleStateThe current state of the backup.static classAutonomousDatabaseBackup.TypeThe type of backup.
-
Constructor Summary
Constructors Constructor Description AutonomousDatabaseBackup(String id, String compartmentId, String autonomousDatabaseId, String displayName, AutonomousDatabaseBackup.Type type, Boolean isAutomatic, Date timeStarted, Date timeEnded, String lifecycleDetails, BigDecimal databaseSizeInTBs, AutonomousDatabaseBackup.LifecycleState lifecycleState, Boolean isRestorable, String keyStoreId, String keyStoreWalletName, String kmsKeyId, String vaultId, String kmsKeyVersionId, Integer retentionPeriodInDays, Date timeAvailableTill, String dbVersion, Double sizeInTBs, BackupDestinationDetails backupDestinationDetails, AutonomousDatabaseBackup.InfrastructureType infrastructureType, String region, SourceDatabaseDetails sourceDatabaseDetails)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AutonomousDatabaseBackup.Builderbuilder()Create a new builder.booleanequals(Object o)StringgetAutonomousDatabaseId()The OCID of the Autonomous Database.BackupDestinationDetailsgetBackupDestinationDetails()StringgetCompartmentId()The OCID of the compartment.BigDecimalgetDatabaseSizeInTBs()The size of the database in terabytes at the time the backup was taken.StringgetDbVersion()A valid Oracle Database version for Autonomous Database.StringgetDisplayName()The user-friendly name for the backup.StringgetId()The OCID of the Autonomous Database backup.AutonomousDatabaseBackup.InfrastructureTypegetInfrastructureType()The infrastructure type this resource belongs to.BooleangetIsAutomatic()Indicates whether the backup is user-initiated or automatic.BooleangetIsRestorable()Indicates whether the backup can be used to restore the associated Autonomous Database.StringgetKeyStoreId()The OCID of the key store of Oracle Vault.StringgetKeyStoreWalletName()The wallet name for Oracle Key Vault.StringgetKmsKeyId()The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.StringgetKmsKeyVersionId()The OCID of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions.StringgetLifecycleDetails()Additional information about the current lifecycle state.AutonomousDatabaseBackup.LifecycleStategetLifecycleState()The current state of the backup.StringgetRegion()Name of the region in which backup is taken in.IntegergetRetentionPeriodInDays()Retention period, in days, for long-term backupsDoublegetSizeInTBs()The backup size in terrabytes (TB).SourceDatabaseDetailsgetSourceDatabaseDetails()DategetTimeAvailableTill()Timestamp until when the backup will be availableDategetTimeEnded()The date and time the backup completed.DategetTimeStarted()The date and time the backup started.AutonomousDatabaseBackup.TypegetType()The type of backup.StringgetVaultId()inthashCode()AutonomousDatabaseBackup.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
-
-
-
Constructor Detail
-
AutonomousDatabaseBackup
@Deprecated @ConstructorProperties({"id","compartmentId","autonomousDatabaseId","displayName","type","isAutomatic","timeStarted","timeEnded","lifecycleDetails","databaseSizeInTBs","lifecycleState","isRestorable","keyStoreId","keyStoreWalletName","kmsKeyId","vaultId","kmsKeyVersionId","retentionPeriodInDays","timeAvailableTill","dbVersion","sizeInTBs","backupDestinationDetails","infrastructureType","region","sourceDatabaseDetails"}) public AutonomousDatabaseBackup(String id, String compartmentId, String autonomousDatabaseId, String displayName, AutonomousDatabaseBackup.Type type, Boolean isAutomatic, Date timeStarted, Date timeEnded, String lifecycleDetails, BigDecimal databaseSizeInTBs, AutonomousDatabaseBackup.LifecycleState lifecycleState, Boolean isRestorable, String keyStoreId, String keyStoreWalletName, String kmsKeyId, String vaultId, String kmsKeyVersionId, Integer retentionPeriodInDays, Date timeAvailableTill, String dbVersion, Double sizeInTBs, BackupDestinationDetails backupDestinationDetails, AutonomousDatabaseBackup.InfrastructureType infrastructureType, String region, SourceDatabaseDetails sourceDatabaseDetails)
Deprecated.
-
-
Method Detail
-
builder
public static AutonomousDatabaseBackup.Builder builder()
Create a new builder.
-
toBuilder
public AutonomousDatabaseBackup.Builder toBuilder()
-
getAutonomousDatabaseId
public String getAutonomousDatabaseId()
The OCID of the Autonomous Database.- Returns:
- the value
-
getDisplayName
public String getDisplayName()
The user-friendly name for the backup.The name does not have to be unique.
- Returns:
- the value
-
getType
public AutonomousDatabaseBackup.Type getType()
The type of backup.- Returns:
- the value
-
getIsAutomatic
public Boolean getIsAutomatic()
Indicates whether the backup is user-initiated or automatic.- Returns:
- the value
-
getTimeStarted
public Date getTimeStarted()
The date and time the backup started.- Returns:
- the value
-
getTimeEnded
public Date getTimeEnded()
The date and time the backup completed.- Returns:
- the value
-
getLifecycleDetails
public String getLifecycleDetails()
Additional information about the current lifecycle state.- Returns:
- the value
-
getDatabaseSizeInTBs
public BigDecimal getDatabaseSizeInTBs()
The size of the database in terabytes at the time the backup was taken.- Returns:
- the value
-
getLifecycleState
public AutonomousDatabaseBackup.LifecycleState getLifecycleState()
The current state of the backup.- Returns:
- the value
-
getIsRestorable
public Boolean getIsRestorable()
Indicates whether the backup can be used to restore the associated Autonomous Database.- Returns:
- the value
-
getKeyStoreId
public String getKeyStoreId()
The OCID of the key store of Oracle Vault.- Returns:
- the value
-
getKeyStoreWalletName
public String getKeyStoreWalletName()
The wallet name for Oracle Key Vault.- Returns:
- the value
-
getKmsKeyId
public String getKmsKeyId()
The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.- Returns:
- the value
-
getVaultId
public String getVaultId()
The OCID of the Oracle Cloud Infrastructure vault.This parameter and secretId are required for Customer Managed Keys.
- Returns:
- the value
-
getKmsKeyVersionId
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.
- Returns:
- the value
-
getRetentionPeriodInDays
public Integer getRetentionPeriodInDays()
Retention period, in days, for long-term backups- Returns:
- the value
-
getTimeAvailableTill
public Date getTimeAvailableTill()
Timestamp until when the backup will be available- Returns:
- the value
-
getDbVersion
public String getDbVersion()
A valid Oracle Database version for Autonomous Database.- Returns:
- the value
-
getSizeInTBs
public Double getSizeInTBs()
The backup size in terrabytes (TB).- Returns:
- the value
-
getBackupDestinationDetails
public BackupDestinationDetails getBackupDestinationDetails()
-
getInfrastructureType
public AutonomousDatabaseBackup.InfrastructureType getInfrastructureType()
The infrastructure type this resource belongs to.- Returns:
- the value
-
getRegion
public String getRegion()
Name of the region in which backup is taken in.- Returns:
- the value
-
getSourceDatabaseDetails
public SourceDatabaseDetails getSourceDatabaseDetails()
-
toString
public String toString()
- Overrides:
toStringin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Parameters:
includeByteArrayContents- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCodein classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-