Package com.oracle.bmc.database.model
Class DisasterRecoveryConfiguration.Builder
- java.lang.Object
-
- com.oracle.bmc.database.model.DisasterRecoveryConfiguration.Builder
-
- Enclosing class:
- DisasterRecoveryConfiguration
public static class DisasterRecoveryConfiguration.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DisasterRecoveryConfiguration
build()
DisasterRecoveryConfiguration.Builder
copy(DisasterRecoveryConfiguration model)
DisasterRecoveryConfiguration.Builder
disasterRecoveryType(DisasterRecoveryConfiguration.DisasterRecoveryType disasterRecoveryType)
Indicates the disaster recovery (DR) type of the Autonomous Database Serverless instance.DisasterRecoveryConfiguration.Builder
isReplicateAutomaticBackups(Boolean isReplicateAutomaticBackups)
If true, 7 days worth of backups are replicated across regions for Cross-Region ADB or Backup-Based DR between Primary and Standby.DisasterRecoveryConfiguration.Builder
isSnapshotStandby(Boolean isSnapshotStandby)
Indicates if user wants to convert to a snapshot standby.DisasterRecoveryConfiguration.Builder
timeSnapshotStandbyEnabledTill(Date timeSnapshotStandbyEnabledTill)
Time and date stored as an RFC 3339 formatted timestamp string.
-
-
-
Method Detail
-
disasterRecoveryType
public DisasterRecoveryConfiguration.Builder disasterRecoveryType(DisasterRecoveryConfiguration.DisasterRecoveryType disasterRecoveryType)
Indicates the disaster recovery (DR) type of the Autonomous Database Serverless instance.Autonomous Data Guard (ADG) DR type provides business critical DR with a faster recovery time objective (RTO) during failover or switchover. Backup-based DR type provides lower cost DR with a slower RTO during failover or switchover.
- Parameters:
disasterRecoveryType
- the value to set- Returns:
- this builder
-
timeSnapshotStandbyEnabledTill
public DisasterRecoveryConfiguration.Builder timeSnapshotStandbyEnabledTill(Date timeSnapshotStandbyEnabledTill)
Time and date stored as an RFC 3339 formatted timestamp string.For example, 2022-01-01T12:00:00.000Z would set a limit for the snapshot standby to be converted back to a cross-region standby database.
- Parameters:
timeSnapshotStandbyEnabledTill
- the value to set- Returns:
- this builder
-
isSnapshotStandby
public DisasterRecoveryConfiguration.Builder isSnapshotStandby(Boolean isSnapshotStandby)
Indicates if user wants to convert to a snapshot standby.For example, true would set a standby database to snapshot standby database. False would set a snapshot standby database back to regular standby database.
- Parameters:
isSnapshotStandby
- the value to set- Returns:
- this builder
-
isReplicateAutomaticBackups
public DisasterRecoveryConfiguration.Builder isReplicateAutomaticBackups(Boolean isReplicateAutomaticBackups)
If true, 7 days worth of backups are replicated across regions for Cross-Region ADB or Backup-Based DR between Primary and Standby.If false, the backups taken on the Primary are not replicated to the Standby database.
- Parameters:
isReplicateAutomaticBackups
- the value to set- Returns:
- this builder
-
build
public DisasterRecoveryConfiguration build()
-
copy
public DisasterRecoveryConfiguration.Builder copy(DisasterRecoveryConfiguration model)
-
-