Class BackupPolicy.Builder
- java.lang.Object
-
- com.oracle.bmc.mysql.model.BackupPolicy.Builder
-
- Enclosing class:
- BackupPolicy
public static class BackupPolicy.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BackupPolicy
build()
BackupPolicy.Builder
copy(BackupPolicy model)
BackupPolicy.Builder
copyPolicies(List<CopyPolicy> copyPolicies)
List of policies of a DB system to schedule cross-region DB system backup copy.BackupPolicy.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Usage of predefined tag keys.BackupPolicy.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair applied without any predefined name, type or scope.BackupPolicy.Builder
isEnabled(Boolean isEnabled)
If automated backups are enabled or disabled.BackupPolicy.Builder
pitrPolicy(PitrPolicy pitrPolicy)
BackupPolicy.Builder
retentionInDays(Integer retentionInDays)
The number of days automated backups are retained.BackupPolicy.Builder
windowStartTime(String windowStartTime)
The start of a 30-minute window of time in which daily, automated backups occur.
-
-
-
Method Detail
-
isEnabled
public BackupPolicy.Builder isEnabled(Boolean isEnabled)
If automated backups are enabled or disabled.- Parameters:
isEnabled
- the value to set- Returns:
- this builder
-
copyPolicies
public BackupPolicy.Builder copyPolicies(List<CopyPolicy> copyPolicies)
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.
- Parameters:
copyPolicies
- the value to set- Returns:
- this builder
-
windowStartTime
public BackupPolicy.Builder windowStartTime(String windowStartTime)
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
- Parameters:
windowStartTime
- the value to set- Returns:
- this builder
-
retentionInDays
public BackupPolicy.Builder retentionInDays(Integer retentionInDays)
The number of days automated backups are retained.- Parameters:
retentionInDays
- the value to set- Returns:
- this builder
-
freeformTags
public BackupPolicy.Builder freeformTags(Map<String,String> freeformTags)
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"}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public BackupPolicy.Builder definedTags(Map<String,Map<String,Object>> definedTags)
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"}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
pitrPolicy
public BackupPolicy.Builder pitrPolicy(PitrPolicy pitrPolicy)
-
build
public BackupPolicy build()
-
copy
public BackupPolicy.Builder copy(BackupPolicy model)
-
-