Package com.oracle.bmc.recovery.model
Class RetentionPeriodValue.Builder
- java.lang.Object
-
- com.oracle.bmc.recovery.model.RetentionPeriodValue.Builder
-
- Enclosing class:
- RetentionPeriodValue
public static class RetentionPeriodValue.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RetentionPeriodValuebuild()RetentionPeriodValue.Buildercopy(RetentionPeriodValue model)RetentionPeriodValue.BuilderretentionCount(Integer retentionCount)Specifies the duration (in days or years) to retain the long-term backup.RetentionPeriodValue.BuilderretentionPeriodType(RetentionPeriodValue.RetentionPeriodType retentionPeriodType)Specifies the retention period type for the long-term backup.
-
-
-
Method Detail
-
retentionPeriodType
public RetentionPeriodValue.Builder retentionPeriodType(RetentionPeriodValue.RetentionPeriodType retentionPeriodType)
Specifies the retention period type for the long-term backup.Allowed values are DAYS or YEARS.
- Parameters:
retentionPeriodType- the value to set- Returns:
- this builder
-
retentionCount
public RetentionPeriodValue.Builder retentionCount(Integer retentionCount)
Specifies the duration (in days or years) to retain the long-term backup.If you have chosen the retentionPeriodType as ‘DAYS’, then specify a duration ranging from 90 days to 3650 days. If you have chosen the retentionPeriodType as ‘YEARS’, then specify a duration ranging from 1 year to 10 years.
- Parameters:
retentionCount- the value to set- Returns:
- this builder
-
build
public RetentionPeriodValue build()
-
copy
public RetentionPeriodValue.Builder copy(RetentionPeriodValue model)
-
-