Class BackupPolicy
- java.lang.Object
- 
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
- 
- com.oracle.bmc.mysql.model.BackupPolicy
 
 
- 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20190415") public final class BackupPolicy extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelThe Backup policy for the DB System.
 Note: Objects should always be created or deserialized using theBackupPolicy.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 theBackupPolicy.Builder, which maintain a set of all explicitly set fields calledBackupPolicy.Builder.__explicitlySet__. ThehashCode()andequals(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).
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classBackupPolicy.Builder
 - 
Constructor SummaryConstructors Constructor Description BackupPolicy(Boolean isEnabled, SoftDelete softDelete, List<CopyPolicy> copyPolicies, String windowStartTime, Integer retentionInDays, Map<String,String> freeformTags, Map<String,Map<String,Object>> definedTags, PitrPolicy pitrPolicy)Deprecated.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BackupPolicy.Builderbuilder()Create a new builder.booleanequals(Object o)List<CopyPolicy>getCopyPolicies()List of policies of a DB system to schedule cross-region DB system backup copy.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.BooleangetIsEnabled()If automated backups are enabled or disabled.PitrPolicygetPitrPolicy()IntegergetRetentionInDays()The number of days automated backups are retained.SoftDeletegetSoftDelete()Retains the backup to be deleted due to the retention policy in DELETE SCHEDULED state for 7 days before permanently deleting it.StringgetWindowStartTime()The start of a 30-minute window of time in which daily, automated backups occur.inthashCode()BackupPolicy.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
 
- 
- 
- 
Constructor Detail- 
BackupPolicy@Deprecated @ConstructorProperties({"isEnabled","softDelete","copyPolicies","windowStartTime","retentionInDays","freeformTags","definedTags","pitrPolicy"}) public BackupPolicy(Boolean isEnabled, SoftDelete softDelete, List<CopyPolicy> copyPolicies, String windowStartTime, Integer retentionInDays, Map<String,String> freeformTags, Map<String,Map<String,Object>> definedTags, PitrPolicy pitrPolicy) Deprecated.
 
- 
 - 
Method Detail- 
builderpublic static BackupPolicy.Builder builder() Create a new builder.
 - 
toBuilderpublic BackupPolicy.Builder toBuilder() 
 - 
getIsEnabledpublic Boolean getIsEnabled() If automated backups are enabled or disabled.- Returns:
- the value
 
 - 
getSoftDeletepublic SoftDelete getSoftDelete() Retains the backup to be deleted due to the retention policy in DELETE SCHEDULED state for 7 days before permanently deleting it.- Returns:
- the value
 
 - 
getCopyPoliciespublic List<CopyPolicy> getCopyPolicies() List of policies of a DB system to schedule cross-region DB system backup copy.The policy includes the name of the destination region to which the DB system backup will be copied, and an optional parameter which specifies the retention period of the copied DB system backup in days. *Note:** Currently, only one policy can be specified in the list. - Returns:
- the value
 
 - 
getWindowStartTimepublic 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 - Returns:
- the value
 
 - 
getRetentionInDayspublic Integer getRetentionInDays() The number of days automated backups are retained.- Returns:
- the value
 
 - 
getFreeformTagspublic 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"} - Returns:
- the value
 
 - 
getDefinedTagspublic 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"}} - Returns:
- the value
 
 - 
getPitrPolicypublic PitrPolicy getPitrPolicy() 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
toStringpublic String toString(boolean includeByteArrayContents) Return a string representation of the object.- Parameters:
- includeByteArrayContents- true to include the full contents of byte arrays
- Returns:
- string representation
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 
- 
 
-