Show / Hide Table of Contents

Class Duration

The amount of time that objects in the bucket should be preserved for and which is calculated in relation to each object's Last-Modified timestamp. If duration is not present, then there is no time limit and the objects in the bucket will be preserved indefinitely.

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

Properties

TimeAmount

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

The timeAmount is interpreted in units defined by the timeUnit parameter, and is calculated in relation to each object's Last-Modified timestamp.

Remarks

Required

TimeUnit

Declaration
[Required(ErrorMessage = "TimeUnit is required.")]
[JsonProperty(PropertyName = "timeUnit")]
[JsonConverter(typeof(ResponseEnumConverter))]
public Duration.TimeUnitEnum? TimeUnit { get; set; }
Property Value
Type Description
Duration.TimeUnitEnum?

The unit that should be used to interpret timeAmount.

Remarks

Required

In this article
Back to top