@Generated(value="OracleSDKGenerator", comments="API Version: 20190415") public final class BackupPolicy extends Object
The Backup policy for the DB System.
Note: Objects should always be created or deserialized using the BackupPolicy.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 BackupPolicy.Builder, which maintain a set of all explicitly set fields called
__explicitlySet__. The hashCode() and equals(Object) methods are implemented to take
__explicitlySet__ into account. The constructor, on the other hand, does not set __explicitlySet__
(since the constructor cannot distinguish explicit null from unset null).
| Modifier and Type | Class and Description |
|---|---|
static class |
BackupPolicy.Builder |
| Constructor and Description |
|---|
BackupPolicy(Boolean isEnabled,
String windowStartTime,
Integer retentionInDays,
Map<String,String> freeformTags,
Map<String,Map<String,Object>> definedTags)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static BackupPolicy.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Set<String> |
get__explicitlySet__() |
Map<String,Map<String,Object>> |
getDefinedTags()
Usage of predefined tag keys.
|
Map<String,String> |
getFreeformTags()
Simple key-value pair applied without any predefined name, type or scope.
|
Boolean |
getIsEnabled()
If automated backups are enabled or disabled.
|
Integer |
getRetentionInDays()
The number of days automated backups are retained.
|
String |
getWindowStartTime()
The start of a 30-minute window of time in which daily, automated backups occur.
|
int |
hashCode() |
BackupPolicy.Builder |
toBuilder() |
String |
toString() |
@ConstructorProperties(value={"isEnabled","windowStartTime","retentionInDays","freeformTags","definedTags"}) @Deprecated public BackupPolicy(Boolean isEnabled, String windowStartTime, Integer retentionInDays, Map<String,String> freeformTags, Map<String,Map<String,Object>> definedTags)
public static BackupPolicy.Builder builder()
Create a new builder.
public BackupPolicy.Builder toBuilder()
public Boolean getIsEnabled()
If automated backups are enabled or disabled.
public String getWindowStartTime()
The start of a 30-minute window of time in which daily, automated backups occur.
This should be in the format of the \"Time\" portion of an RFC3339-formatted timestamp. Any second or sub-second time data will be truncated to zero.
At some point in the window, the system may incur a brief service disruption as the backup is performed.
If not defined, a window is selected from the following Region-based time-spans: - eu-frankfurt-1: 20:00 - 04:00 UTC - us-ashburn-1: 03:00 - 11:00 UTC - uk-london-1: 06:00 - 14:00 UTC - ap-tokyo-1: 13:00 - 21:00 - us-phoenix-1: 06:00 - 14:00
public Integer getRetentionInDays()
The number of days automated backups are retained.
public Map<String,String> getFreeformTags()
Simple key-value pair applied without any predefined name, type or scope. Exists for cross-compatibility only.
Tags defined here will be copied verbatim as tags on the Backup resource created by this BackupPolicy.
Example: `{\"bar-key\": \"value\"}`
public Map<String,Map<String,Object>> getDefinedTags()
Usage of predefined tag keys. These predefined keys are scoped to namespaces.
Tags defined here will be copied verbatim as tags on the Backup resource created by this BackupPolicy.
Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
Copyright © 2016–2021. All rights reserved.