Show / Hide Table of Contents

Class RetentionDuration

This field is used to define the retention period for backups. This is an optional field. If it is not specified, it is set to null, no retention period will be applied to the backups.

Inheritance
object
RetentionDuration
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.CoreService.Models
Assembly: OCI.DotNetSDK.Core.dll
Syntax
public class RetentionDuration

Properties

RetentionTimeAmount

Declaration
[Required(ErrorMessage = "RetentionTimeAmount is required.")]
[JsonProperty(PropertyName = "retentionTimeAmount")]
public int? RetentionTimeAmount { get; set; }
Property Value
Type Description
int?

The value to enter for the amount of retention time should be a numerical figure (such as 1, 7, 30, etc.) that corresponds to the period specified in the retention time unit property (such as YEARS, DAYS). The combination of these two properties determines the total length of the retention period.

Remarks

Required

RetentionTimeUnit

Declaration
[Required(ErrorMessage = "RetentionTimeUnit is required.")]
[JsonProperty(PropertyName = "retentionTimeUnit")]
[JsonConverter(typeof(ResponseEnumConverter))]
public RetentionDuration.RetentionTimeUnitEnum? RetentionTimeUnit { get; set; }
Property Value
Type Description
RetentionDuration.RetentionTimeUnitEnum?

The value you can assign to the Time Unit property for this Duration may be either "YEARS" or "DAYS".

Remarks

Required

In this article
Back to top