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