Package com.oracle.bmc.database.model
Class BackupSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.database.model.BackupSummary.Builder
-
- Enclosing class:
- BackupSummary
public static class BackupSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BackupSummary.Builder
availabilityDomain(String availabilityDomain)
The name of the availability domain where the database backup is stored.BackupSummary.Builder
backupDestinationType(BackupSummary.BackupDestinationType backupDestinationType)
Type of the backup destination.BackupSummary
build()
BackupSummary.Builder
compartmentId(String compartmentId)
The OCID of the compartment.BackupSummary.Builder
copy(BackupSummary model)
BackupSummary.Builder
databaseEdition(BackupSummary.DatabaseEdition databaseEdition)
The Oracle Database edition of the DB system from which the database backup was taken.BackupSummary.Builder
databaseId(String databaseId)
The OCID of the database.BackupSummary.Builder
databaseSizeInGBs(Double databaseSizeInGBs)
The size of the database in gigabytes at the time the backup was taken.BackupSummary.Builder
displayName(String displayName)
The user-friendly name for the backup.BackupSummary.Builder
encryptionKeyLocationDetails(EncryptionKeyLocationDetails encryptionKeyLocationDetails)
BackupSummary.Builder
id(String id)
The OCID of the backup.BackupSummary.Builder
isUsingOracleManagedKeys(Boolean isUsingOracleManagedKeys)
True if Oracle Managed Keys is required for restore of the backup.BackupSummary.Builder
keyStoreId(String keyStoreId)
The OCID of the key store of Oracle Vault.BackupSummary.Builder
keyStoreWalletName(String keyStoreWalletName)
The wallet name for Oracle Key Vault.BackupSummary.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.BackupSummary.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.BackupSummary.Builder
lifecycleDetails(String lifecycleDetails)
Additional information about the current lifecycle state.BackupSummary.Builder
lifecycleState(BackupSummary.LifecycleState lifecycleState)
The current state of the backup.BackupSummary.Builder
retentionPeriodInDays(Integer retentionPeriodInDays)
The retention period of the long term backup in days.BackupSummary.Builder
retentionPeriodInYears(Integer retentionPeriodInYears)
The retention period of the long term backup in years.BackupSummary.Builder
secondaryKmsKeyIds(List<String> secondaryKmsKeyIds)
List of OCIDs of the key containers used as the secondary encryption key in database transparent data encryption (TDE) operations.BackupSummary.Builder
shape(String shape)
Shape of the backup’s source database.BackupSummary.Builder
timeEnded(Date timeEnded)
The date and time the backup was completed.BackupSummary.Builder
timeExpiryScheduled(Date timeExpiryScheduled)
Expiration time of the long term database backup.BackupSummary.Builder
timeStarted(Date timeStarted)
The date and time the backup started.BackupSummary.Builder
type(BackupSummary.Type type)
The type of backup.BackupSummary.Builder
vaultId(String vaultId)
BackupSummary.Builder
version(String version)
Version of the backup’s source database
-
-
-
Method Detail
-
id
public BackupSummary.Builder id(String id)
The OCID of the backup.- Parameters:
id
- the value to set- Returns:
- this builder
-
compartmentId
public BackupSummary.Builder compartmentId(String compartmentId)
The OCID of the compartment.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
databaseId
public BackupSummary.Builder databaseId(String databaseId)
The OCID of the database.- Parameters:
databaseId
- the value to set- Returns:
- this builder
-
displayName
public BackupSummary.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 BackupSummary.Builder type(BackupSummary.Type type)
The type of backup.- Parameters:
type
- the value to set- Returns:
- this builder
-
timeStarted
public BackupSummary.Builder timeStarted(Date timeStarted)
The date and time the backup started.- Parameters:
timeStarted
- the value to set- Returns:
- this builder
-
timeEnded
public BackupSummary.Builder timeEnded(Date timeEnded)
The date and time the backup was completed.- Parameters:
timeEnded
- the value to set- Returns:
- this builder
-
lifecycleDetails
public BackupSummary.Builder lifecycleDetails(String lifecycleDetails)
Additional information about the current lifecycle state.- Parameters:
lifecycleDetails
- the value to set- Returns:
- this builder
-
availabilityDomain
public BackupSummary.Builder availabilityDomain(String availabilityDomain)
The name of the availability domain where the database backup is stored.- Parameters:
availabilityDomain
- the value to set- Returns:
- this builder
-
lifecycleState
public BackupSummary.Builder lifecycleState(BackupSummary.LifecycleState lifecycleState)
The current state of the backup.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
databaseEdition
public BackupSummary.Builder databaseEdition(BackupSummary.DatabaseEdition databaseEdition)
The Oracle Database edition of the DB system from which the database backup was taken.- Parameters:
databaseEdition
- the value to set- Returns:
- this builder
-
databaseSizeInGBs
public BackupSummary.Builder databaseSizeInGBs(Double databaseSizeInGBs)
The size of the database in gigabytes at the time the backup was taken.- Parameters:
databaseSizeInGBs
- the value to set- Returns:
- this builder
-
shape
public BackupSummary.Builder shape(String shape)
Shape of the backup’s source database.- Parameters:
shape
- the value to set- Returns:
- this builder
-
version
public BackupSummary.Builder version(String version)
Version of the backup’s source database- Parameters:
version
- the value to set- Returns:
- this builder
-
kmsKeyId
public BackupSummary.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 BackupSummary.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 BackupSummary.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
-
keyStoreId
public BackupSummary.Builder keyStoreId(String keyStoreId)
The OCID of the key store of Oracle Vault.- Parameters:
keyStoreId
- the value to set- Returns:
- this builder
-
keyStoreWalletName
public BackupSummary.Builder keyStoreWalletName(String keyStoreWalletName)
The wallet name for Oracle Key Vault.- Parameters:
keyStoreWalletName
- the value to set- Returns:
- this builder
-
secondaryKmsKeyIds
public BackupSummary.Builder secondaryKmsKeyIds(List<String> secondaryKmsKeyIds)
List of OCIDs of the key containers used as the secondary encryption key in database transparent data encryption (TDE) operations.- Parameters:
secondaryKmsKeyIds
- the value to set- Returns:
- this builder
-
retentionPeriodInDays
public BackupSummary.Builder retentionPeriodInDays(Integer retentionPeriodInDays)
The retention period of the long term backup in days.- Parameters:
retentionPeriodInDays
- the value to set- Returns:
- this builder
-
retentionPeriodInYears
public BackupSummary.Builder retentionPeriodInYears(Integer retentionPeriodInYears)
The retention period of the long term backup in years.- Parameters:
retentionPeriodInYears
- the value to set- Returns:
- this builder
-
timeExpiryScheduled
public BackupSummary.Builder timeExpiryScheduled(Date timeExpiryScheduled)
Expiration time of the long term database backup.- Parameters:
timeExpiryScheduled
- the value to set- Returns:
- this builder
-
isUsingOracleManagedKeys
public BackupSummary.Builder isUsingOracleManagedKeys(Boolean isUsingOracleManagedKeys)
True if Oracle Managed Keys is required for restore of the backup.- Parameters:
isUsingOracleManagedKeys
- the value to set- Returns:
- this builder
-
backupDestinationType
public BackupSummary.Builder backupDestinationType(BackupSummary.BackupDestinationType backupDestinationType)
Type of the backup destination.- Parameters:
backupDestinationType
- the value to set- Returns:
- this builder
-
encryptionKeyLocationDetails
public BackupSummary.Builder encryptionKeyLocationDetails(EncryptionKeyLocationDetails encryptionKeyLocationDetails)
-
build
public BackupSummary build()
-
copy
public BackupSummary.Builder copy(BackupSummary model)
-
-