@Generated(value="OracleSDKGenerator", comments="API Version: 20190415") public final class UpdateBackupPolicyDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Backup Policy as optionally used for DB System update.
Note: Objects should always be created or deserialized using the UpdateBackupPolicyDetails.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 UpdateBackupPolicyDetails.Builder
, which maintain a
set of all explicitly set fields called ExplicitlySetBmcModel.__explicitlySet__
. The hashCode()
and
equals(Object)
methods are implemented to take ExplicitlySetBmcModel.__explicitlySet__
into account.
The constructor, on the other hand, does not set ExplicitlySetBmcModel.__explicitlySet__
(since the
constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
UpdateBackupPolicyDetails.Builder |
Constructor and Description |
---|
UpdateBackupPolicyDetails(Boolean isEnabled,
String windowStartTime,
Integer retentionInDays,
Map<String,String> freeformTags,
Map<String,Map<String,Object>> definedTags,
PitrPolicy pitrPolicy)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static UpdateBackupPolicyDetails.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
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()
Specifies if automatic backups are enabled.
|
PitrPolicy |
getPitrPolicy() |
Integer |
getRetentionInDays()
Number of days to retain an automatic backup.
|
String |
getWindowStartTime()
The start of a 30-minute window of time in which daily, automated backups occur.
|
int |
hashCode() |
UpdateBackupPolicyDetails.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"isEnabled","windowStartTime","retentionInDays","freeformTags","definedTags","pitrPolicy"}) public UpdateBackupPolicyDetails(Boolean isEnabled, String windowStartTime, Integer retentionInDays, Map<String,String> freeformTags, Map<String,Map<String,Object>> definedTags, PitrPolicy pitrPolicy)
public static UpdateBackupPolicyDetails.Builder builder()
Create a new builder.
public UpdateBackupPolicyDetails.Builder toBuilder()
public Boolean getIsEnabled()
Specifies if automatic backups are enabled.
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.
public Integer getRetentionInDays()
Number of days to retain an automatic backup.
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"}}
public PitrPolicy getPitrPolicy()
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–2023. All rights reserved.