Package com.oracle.bmc.database.model
Class AutonomousDatabaseBackup.Builder
- java.lang.Object
-
- com.oracle.bmc.database.model.AutonomousDatabaseBackup.Builder
-
- Enclosing class:
- AutonomousDatabaseBackup
public static class AutonomousDatabaseBackup.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AutonomousDatabaseBackup.Builder
autonomousDatabaseId(String autonomousDatabaseId)
The OCID of the Autonomous Database.AutonomousDatabaseBackup.Builder
backupDestinationDetails(BackupDestinationDetails backupDestinationDetails)
AutonomousDatabaseBackup
build()
AutonomousDatabaseBackup.Builder
compartmentId(String compartmentId)
The OCID of the compartment.AutonomousDatabaseBackup.Builder
copy(AutonomousDatabaseBackup model)
AutonomousDatabaseBackup.Builder
databaseSizeInTBs(BigDecimal databaseSizeInTBs)
The size of the database in terabytes at the time the backup was taken.AutonomousDatabaseBackup.Builder
dbVersion(String dbVersion)
A valid Oracle Database version for Autonomous Database.AutonomousDatabaseBackup.Builder
displayName(String displayName)
The user-friendly name for the backup.AutonomousDatabaseBackup.Builder
id(String id)
The OCID of the Autonomous Database backup.AutonomousDatabaseBackup.Builder
isAutomatic(Boolean isAutomatic)
Indicates whether the backup is user-initiated or automatic.AutonomousDatabaseBackup.Builder
isRestorable(Boolean isRestorable)
Indicates whether the backup can be used to restore the associated Autonomous Database.AutonomousDatabaseBackup.Builder
keyStoreId(String keyStoreId)
The OCID of the key store of Oracle Vault.AutonomousDatabaseBackup.Builder
keyStoreWalletName(String keyStoreWalletName)
The wallet name for Oracle Key Vault.AutonomousDatabaseBackup.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.AutonomousDatabaseBackup.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.AutonomousDatabaseBackup.Builder
lifecycleDetails(String lifecycleDetails)
Additional information about the current lifecycle state.AutonomousDatabaseBackup.Builder
lifecycleState(AutonomousDatabaseBackup.LifecycleState lifecycleState)
The current state of the backup.AutonomousDatabaseBackup.Builder
retentionPeriodInDays(Integer retentionPeriodInDays)
Retention period, in days, for long-term backupsAutonomousDatabaseBackup.Builder
sizeInTBs(Double sizeInTBs)
The backup size in terrabytes (TB).AutonomousDatabaseBackup.Builder
timeAvailableTill(Date timeAvailableTill)
Timestamp until when the backup will be availableAutonomousDatabaseBackup.Builder
timeEnded(Date timeEnded)
The date and time the backup completed.AutonomousDatabaseBackup.Builder
timeStarted(Date timeStarted)
The date and time the backup started.AutonomousDatabaseBackup.Builder
type(AutonomousDatabaseBackup.Type type)
The type of backup.AutonomousDatabaseBackup.Builder
vaultId(String vaultId)
-
-
-
Method Detail
-
id
public AutonomousDatabaseBackup.Builder id(String id)
The OCID of the Autonomous Database backup.- Parameters:
id
- the value to set- Returns:
- this builder
-
compartmentId
public AutonomousDatabaseBackup.Builder compartmentId(String compartmentId)
The OCID of the compartment.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
autonomousDatabaseId
public AutonomousDatabaseBackup.Builder autonomousDatabaseId(String autonomousDatabaseId)
The OCID of the Autonomous Database.- Parameters:
autonomousDatabaseId
- the value to set- Returns:
- this builder
-
displayName
public AutonomousDatabaseBackup.Builder displayName(String displayName)
The user-friendly name for the backup.The name does not have to be unique.
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
type
public AutonomousDatabaseBackup.Builder type(AutonomousDatabaseBackup.Type type)
The type of backup.- Parameters:
type
- the value to set- Returns:
- this builder
-
isAutomatic
public AutonomousDatabaseBackup.Builder isAutomatic(Boolean isAutomatic)
Indicates whether the backup is user-initiated or automatic.- Parameters:
isAutomatic
- the value to set- Returns:
- this builder
-
timeStarted
public AutonomousDatabaseBackup.Builder timeStarted(Date timeStarted)
The date and time the backup started.- Parameters:
timeStarted
- the value to set- Returns:
- this builder
-
timeEnded
public AutonomousDatabaseBackup.Builder timeEnded(Date timeEnded)
The date and time the backup completed.- Parameters:
timeEnded
- the value to set- Returns:
- this builder
-
lifecycleDetails
public AutonomousDatabaseBackup.Builder lifecycleDetails(String lifecycleDetails)
Additional information about the current lifecycle state.- Parameters:
lifecycleDetails
- the value to set- Returns:
- this builder
-
databaseSizeInTBs
public AutonomousDatabaseBackup.Builder databaseSizeInTBs(BigDecimal databaseSizeInTBs)
The size of the database in terabytes at the time the backup was taken.- Parameters:
databaseSizeInTBs
- the value to set- Returns:
- this builder
-
lifecycleState
public AutonomousDatabaseBackup.Builder lifecycleState(AutonomousDatabaseBackup.LifecycleState lifecycleState)
The current state of the backup.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
isRestorable
public AutonomousDatabaseBackup.Builder isRestorable(Boolean isRestorable)
Indicates whether the backup can be used to restore the associated Autonomous Database.- Parameters:
isRestorable
- the value to set- Returns:
- this builder
-
keyStoreId
public AutonomousDatabaseBackup.Builder keyStoreId(String keyStoreId)
The OCID of the key store of Oracle Vault.- Parameters:
keyStoreId
- the value to set- Returns:
- this builder
-
keyStoreWalletName
public AutonomousDatabaseBackup.Builder keyStoreWalletName(String keyStoreWalletName)
The wallet name for Oracle Key Vault.- Parameters:
keyStoreWalletName
- the value to set- Returns:
- this builder
-
kmsKeyId
public AutonomousDatabaseBackup.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
-
vaultId
public AutonomousDatabaseBackup.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
-
kmsKeyVersionId
public AutonomousDatabaseBackup.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
-
retentionPeriodInDays
public AutonomousDatabaseBackup.Builder retentionPeriodInDays(Integer retentionPeriodInDays)
Retention period, in days, for long-term backups- Parameters:
retentionPeriodInDays
- the value to set- Returns:
- this builder
-
timeAvailableTill
public AutonomousDatabaseBackup.Builder timeAvailableTill(Date timeAvailableTill)
Timestamp until when the backup will be available- Parameters:
timeAvailableTill
- the value to set- Returns:
- this builder
-
dbVersion
public AutonomousDatabaseBackup.Builder dbVersion(String dbVersion)
A valid Oracle Database version for Autonomous Database.- Parameters:
dbVersion
- the value to set- Returns:
- this builder
-
sizeInTBs
public AutonomousDatabaseBackup.Builder sizeInTBs(Double sizeInTBs)
The backup size in terrabytes (TB).- Parameters:
sizeInTBs
- the value to set- Returns:
- this builder
-
backupDestinationDetails
public AutonomousDatabaseBackup.Builder backupDestinationDetails(BackupDestinationDetails backupDestinationDetails)
-
build
public AutonomousDatabaseBackup build()
-
copy
public AutonomousDatabaseBackup.Builder copy(AutonomousDatabaseBackup model)
-
-