Package com.oracle.bmc.mysql.model
Class CopyBackupDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.mysql.model.CopyBackupDetails.Builder
-
- Enclosing class:
- CopyBackupDetails
public static class CopyBackupDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CopyBackupDetails.BuilderbackupCopyRetentionInDays(Integer backupCopyRetentionInDays)Number of days to retain the copied DB system backup.CopyBackupDetailsbuild()CopyBackupDetails.BuildercompartmentId(String compartmentId)The OCID of the compartment the DB system backup is to be copied to.CopyBackupDetails.Buildercopy(CopyBackupDetails model)CopyBackupDetails.Builderdescription(String description)A user-supplied description for the DB system backup.CopyBackupDetails.BuilderdisplayName(String displayName)A user-supplied display name for the DB system backup.CopyBackupDetails.BuilderencryptData(EncryptDataDetails encryptData)CopyBackupDetails.BuildersourceBackupId(String sourceBackupId)The OCID of DB system backup to be copied.CopyBackupDetails.BuildersourceRegion(String sourceRegion)The region identifier of the source region where the DB system backup exists.
-
-
-
Method Detail
-
compartmentId
public CopyBackupDetails.Builder compartmentId(String compartmentId)
The OCID of the compartment the DB system backup is to be copied to.*Note:** The compartment must be the same as the compartment of the DB system backup in the source region.
- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
description
public CopyBackupDetails.Builder description(String description)
A user-supplied description for the DB system backup.By default, the source backup description will be used.
- Parameters:
description- the value to set- Returns:
- this builder
-
displayName
public CopyBackupDetails.Builder displayName(String displayName)
A user-supplied display name for the DB system backup.By default, the source backup display name will be used.
- Parameters:
displayName- the value to set- Returns:
- this builder
-
backupCopyRetentionInDays
public CopyBackupDetails.Builder backupCopyRetentionInDays(Integer backupCopyRetentionInDays)
Number of days to retain the copied DB system backup.*Note:** The maximum value for an automatic backup is 35, and the maximum value for a manual backup is 365.
- Parameters:
backupCopyRetentionInDays- the value to set- Returns:
- this builder
-
sourceBackupId
public CopyBackupDetails.Builder sourceBackupId(String sourceBackupId)
The OCID of DB system backup to be copied.- Parameters:
sourceBackupId- the value to set- Returns:
- this builder
-
sourceRegion
public CopyBackupDetails.Builder sourceRegion(String sourceRegion)
The region identifier of the source region where the DB system backup exists.For more information, please see Regions and Availability Domains.
- Parameters:
sourceRegion- the value to set- Returns:
- this builder
-
encryptData
public CopyBackupDetails.Builder encryptData(EncryptDataDetails encryptData)
-
build
public CopyBackupDetails build()
-
copy
public CopyBackupDetails.Builder copy(CopyBackupDetails model)
-
-