@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public final class DbBackupConfig extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Backup Options To use any of the API operations, you must be authorized in an IAM policy. If
you’re not authorized, talk to an administrator. If you’re an administrator who needs to write
policies to give users access, see Getting Started with
Policies.
Note: Objects should always be created or deserialized using the DbBackupConfig.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 the DbBackupConfig.Builder
, which maintain a
set of all explicitly set fields called DbBackupConfig.Builder.__explicitlySet__
. The hashCode()
and equals(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
).
Modifier and Type | Class and Description |
---|---|
static class |
DbBackupConfig.AutoBackupWindow
Time window selected for initiating automatic backup for the database system.
|
static class |
DbBackupConfig.AutoFullBackupDay
Day of the week the full backup should be applied on the database system.
|
static class |
DbBackupConfig.AutoFullBackupWindow
Time window selected for initiating full backup for the database system.
|
static class |
DbBackupConfig.BackupDeletionPolicy
This defines when the backups will be deleted.
|
static class |
DbBackupConfig.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
DbBackupConfig(Boolean autoBackupEnabled,
Integer recoveryWindowInDays,
DbBackupConfig.AutoBackupWindow autoBackupWindow,
DbBackupConfig.AutoFullBackupWindow autoFullBackupWindow,
DbBackupConfig.AutoFullBackupDay autoFullBackupDay,
Boolean runImmediateFullBackup,
List<BackupDestinationDetails> backupDestinationDetails,
DbBackupConfig.BackupDeletionPolicy backupDeletionPolicy)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static DbBackupConfig.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Boolean |
getAutoBackupEnabled()
If set to true, configures automatic backups.
|
DbBackupConfig.AutoBackupWindow |
getAutoBackupWindow()
Time window selected for initiating automatic backup for the database system.
|
DbBackupConfig.AutoFullBackupDay |
getAutoFullBackupDay()
Day of the week the full backup should be applied on the database system.
|
DbBackupConfig.AutoFullBackupWindow |
getAutoFullBackupWindow()
Time window selected for initiating full backup for the database system.
|
DbBackupConfig.BackupDeletionPolicy |
getBackupDeletionPolicy()
This defines when the backups will be deleted.
|
List<BackupDestinationDetails> |
getBackupDestinationDetails()
Backup destination details.
|
Integer |
getRecoveryWindowInDays()
Number of days between the current and the earliest point of recoverability covered by
automatic backups.
|
Boolean |
getRunImmediateFullBackup()
If set to true, configures automatic full backups in the local region (the region of the DB
system) for the first backup run immediately.
|
int |
hashCode() |
DbBackupConfig.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"autoBackupEnabled","recoveryWindowInDays","autoBackupWindow","autoFullBackupWindow","autoFullBackupDay","runImmediateFullBackup","backupDestinationDetails","backupDeletionPolicy"}) public DbBackupConfig(Boolean autoBackupEnabled, Integer recoveryWindowInDays, DbBackupConfig.AutoBackupWindow autoBackupWindow, DbBackupConfig.AutoFullBackupWindow autoFullBackupWindow, DbBackupConfig.AutoFullBackupDay autoFullBackupDay, Boolean runImmediateFullBackup, List<BackupDestinationDetails> backupDestinationDetails, DbBackupConfig.BackupDeletionPolicy backupDeletionPolicy)
public static DbBackupConfig.Builder builder()
Create a new builder.
public DbBackupConfig.Builder toBuilder()
public Boolean getAutoBackupEnabled()
If set to true, configures automatic backups. If you previously used RMAN or dbcli to configure backups and then you switch to using the Console or the API for backups, a new backup configuration is created and associated with your database. This means that you can no longer rely on your previously configured unmanaged backups to work.
public Integer getRecoveryWindowInDays()
Number of days between the current and the earliest point of recoverability covered by automatic backups. This value applies to automatic backups only. After a new automatic backup has been created, Oracle removes old automatic backups that are created before the window. When the value is updated, it is applied to all existing automatic backups.
public DbBackupConfig.AutoBackupWindow getAutoBackupWindow()
Time window selected for initiating automatic backup for the database system. There are twelve available two-hour time windows. If no option is selected, a start time between 12:00 AM to 7:00 AM in the region of the database is automatically chosen. For example, if the user selects SLOT_TWO from the enum list, the automatic backup job will start in between 2:00 AM (inclusive) to 4:00 AM (exclusive).
Example: SLOT_TWO
public DbBackupConfig.AutoFullBackupWindow getAutoFullBackupWindow()
Time window selected for initiating full backup for the database system. There are twelve available two-hour time windows. If no option is selected, the value is null and a start time between 12:00 AM to 7:00 AM in the region of the database is automatically chosen. For example, if the user selects SLOT_TWO from the enum list, the automatic backup job will start in between 2:00 AM (inclusive) to 4:00 AM (exclusive).
Example: SLOT_TWO
public DbBackupConfig.AutoFullBackupDay getAutoFullBackupDay()
Day of the week the full backup should be applied on the database system. If no option is selected, the value is null and we will default to Sunday.
public Boolean getRunImmediateFullBackup()
If set to true, configures automatic full backups in the local region (the region of the DB system) for the first backup run immediately.
public List<BackupDestinationDetails> getBackupDestinationDetails()
Backup destination details.
public DbBackupConfig.BackupDeletionPolicy getBackupDeletionPolicy()
This defines when the backups will be deleted. - IMMEDIATE option keep the backup for predefined time i.e 72 hours and then delete permanently… - RETAIN will keep the backups as per the policy defined for database backups.
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.