BucketDefaultRetention

data class BucketDefaultRetention(val days: Int? = null, val mode: BucketDefaultRetentionMode? = null, val years: Int? = null)

The container element for optionally specifying the default Object Lock retention settings for new objects placed in the specified bucket. + The `DefaultRetention` settings require both a mode and a period.

  • The `DefaultRetention` period can be either `Days` or `Years` but you must select one. You cannot specify `Days` and `Years` at the same time.

Constructors

Link copied to clipboard
constructor(days: Int? = null, mode: BucketDefaultRetentionMode? = null, years: Int? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val days: Int? = null

The number of days that you want to specify for the default retention period. If Object Lock is turned on, you must specify `Mode` and specify either `Days` or `Years`.

Link copied to clipboard

The default Object Lock retention mode you want to apply to new objects placed in the specified bucket. If Object Lock is turned on, you must specify `Mode` and specify either `Days` or `Years`.

Link copied to clipboard
val years: Int? = null

The number of years that you want to specify for the default retention period. If Object Lock is turned on, you must specify `Mode` and specify either `Days` or `Years`.