Package com.oracle.bmc.recovery.model
Class Metrics.Builder
- java.lang.Object
-
- com.oracle.bmc.recovery.model.Metrics.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Metrics.Builder
backupSpaceEstimateInGBs(Float backupSpaceEstimateInGBs)
The estimated backup storage space, in gigabytes, required to meet the recovery window goal, including foot print and backups for the protected database.Metrics.Builder
backupSpaceUsedInGBs(Float backupSpaceUsedInGBs)
Backup storage space, in gigabytes, utilized by the protected database.Metrics
build()
Metrics.Builder
copy(Metrics model)
Metrics.Builder
currentRetentionPeriodInSeconds(Float currentRetentionPeriodInSeconds)
Number of seconds backups are currently retained for this database.Metrics.Builder
dbSizeInGBs(Float dbSizeInGBs)
The estimated space, in gigabytes, consumed by the protected database.Metrics.Builder
isRedoLogsEnabled(Boolean isRedoLogsEnabled)
The value TRUE indicates that the protected database is configured to use Real-time data protection, and redo-data is sent from the protected database to Recovery Service.Metrics.Builder
minimumRecoveryNeededInDays(Float minimumRecoveryNeededInDays)
Number of days of redo/archive to be applied to recover database.Metrics.Builder
retentionPeriodInDays(Float retentionPeriodInDays)
The maximum number of days to retain backups for a protected database.Metrics.Builder
unprotectedWindowInSeconds(Float unprotectedWindowInSeconds)
This is the time window when there is data loss exposure.
-
-
-
Method Detail
-
backupSpaceUsedInGBs
public Metrics.Builder backupSpaceUsedInGBs(Float backupSpaceUsedInGBs)
Backup storage space, in gigabytes, utilized by the protected database.Oracle charges for the total storage used.
- Parameters:
backupSpaceUsedInGBs
- the value to set- Returns:
- this builder
-
backupSpaceEstimateInGBs
public Metrics.Builder backupSpaceEstimateInGBs(Float backupSpaceEstimateInGBs)
The estimated backup storage space, in gigabytes, required to meet the recovery window goal, including foot print and backups for the protected database.- Parameters:
backupSpaceEstimateInGBs
- the value to set- Returns:
- this builder
-
unprotectedWindowInSeconds
public Metrics.Builder unprotectedWindowInSeconds(Float unprotectedWindowInSeconds)
This is the time window when there is data loss exposure.The point after which recovery is impossible unless additional redo is available. This is the time we received the last backup or last redo-log shipped.
- Parameters:
unprotectedWindowInSeconds
- the value to set- Returns:
- this builder
-
dbSizeInGBs
public Metrics.Builder dbSizeInGBs(Float dbSizeInGBs)
The estimated space, in gigabytes, consumed by the protected database.The database size is based on the size of the data files in the catalog, and does not include archive logs.
- Parameters:
dbSizeInGBs
- the value to set- Returns:
- this builder
-
isRedoLogsEnabled
public Metrics.Builder isRedoLogsEnabled(Boolean isRedoLogsEnabled)
The value TRUE indicates that the protected database is configured to use Real-time data protection, and redo-data is sent from the protected database to Recovery Service.Real-time data protection substantially reduces the window of potential data loss that exists between successive archived redo log backups.
- Parameters:
isRedoLogsEnabled
- the value to set- Returns:
- this builder
-
retentionPeriodInDays
public Metrics.Builder retentionPeriodInDays(Float retentionPeriodInDays)
The maximum number of days to retain backups for a protected database.- Parameters:
retentionPeriodInDays
- the value to set- Returns:
- this builder
-
currentRetentionPeriodInSeconds
public Metrics.Builder currentRetentionPeriodInSeconds(Float currentRetentionPeriodInSeconds)
Number of seconds backups are currently retained for this database.- Parameters:
currentRetentionPeriodInSeconds
- the value to set- Returns:
- this builder
-
minimumRecoveryNeededInDays
public Metrics.Builder minimumRecoveryNeededInDays(Float minimumRecoveryNeededInDays)
Number of days of redo/archive to be applied to recover database.- Parameters:
minimumRecoveryNeededInDays
- the value to set- Returns:
- this builder
-
build
public Metrics build()
-
copy
public Metrics.Builder copy(Metrics model)
-
-