Class CreateLongTermBackupDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.recovery.model.CreateLongTermBackupDetails.Builder
-
- Enclosing class:
- CreateLongTermBackupDetails
public static class CreateLongTermBackupDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateLongTermBackupDetailsbuild()CreateLongTermBackupDetails.Buildercopy(CreateLongTermBackupDetails model)CreateLongTermBackupDetails.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.CreateLongTermBackupDetails.BuilderdisplayName(String displayName)A user provided name for the long term backup.CreateLongTermBackupDetails.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.CreateLongTermBackupDetails.BuilderprotectedDatabaseId(String protectedDatabaseId)The OCID of the protected database for which you want to create the long-term backup.CreateLongTermBackupDetails.BuilderretentionPeriod(List<RetentionPeriodValue> retentionPeriod)The maximum period to retain the long-term backup.CreateLongTermBackupDetails.BuilderretentionPointInTime(Date retentionPointInTime)An RFC3339 formatted datetime string that indicates the desired target point in time in the database at which you want to create the long-term backup.CreateLongTermBackupDetails.BuilderretentionScn(Integer retentionScn)The desired target point (SCN) at which you want to create the long-term backup of the database.For example, specify the value as 1000 if you want to create the long-term backup until SCN 1000.
-
-
-
Method Detail
-
displayName
public CreateLongTermBackupDetails.Builder displayName(String displayName)
A user provided name for the long term backup.The ‘displayName’ does not have to be unique, and it can be modified. Avoid entering confidential information.
- Parameters:
displayName- the value to set- Returns:
- this builder
-
protectedDatabaseId
public CreateLongTermBackupDetails.Builder protectedDatabaseId(String protectedDatabaseId)
The OCID of the protected database for which you want to create the long-term backup.- Parameters:
protectedDatabaseId- the value to set- Returns:
- this builder
-
retentionScn
public CreateLongTermBackupDetails.Builder retentionScn(Integer retentionScn)
The desired target point (SCN) at which you want to create the long-term backup of the database.For example, specify the value as 1000 if you want to create the long-term backup until SCN 1000.If you want to specify the target point as a time expression instead of the SCN value, then use the longTermRetentionPointInTime parameter.
- Parameters:
retentionScn- the value to set- Returns:
- this builder
-
retentionPointInTime
public CreateLongTermBackupDetails.Builder retentionPointInTime(Date retentionPointInTime)
An RFC3339 formatted datetime string that indicates the desired target point in time in the database at which you want to create the long-term backup.For example, if you want the long-term backup to include all the changes until May 22 at 9:10 PM, then specify the value as, ‘2020-05-22T21:10:00.000Z’. If you want to specify the target point as an SCN value instead of the target time, then use the databaseSCN parameter.
- Parameters:
retentionPointInTime- the value to set- Returns:
- this builder
-
retentionPeriod
public CreateLongTermBackupDetails.Builder retentionPeriod(List<RetentionPeriodValue> retentionPeriod)
The maximum period to retain the long-term backup.Specify the retention period type and the duration for the long-term backup. If you have chosen the retention period type as ‘DAYS’, then specify a duration ranging from 90 days to 3650 days. If you have chosen the retention period type as ‘YEARS’, then specify a duration ranging from 1 year to 10 years.
- Parameters:
retentionPeriod- the value to set- Returns:
- this builder
-
freeformTags
public CreateLongTermBackupDetails.Builder freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.Exists for cross-compatibility only. Example: {“bar-key”: “value”}
- Parameters:
freeformTags- the value to set- Returns:
- this builder
-
definedTags
public CreateLongTermBackupDetails.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}. For more information, see Resource Tags
- Parameters:
definedTags- the value to set- Returns:
- this builder
-
build
public CreateLongTermBackupDetails build()
-
copy
public CreateLongTermBackupDetails.Builder copy(CreateLongTermBackupDetails model)
-
-