case class UpdateCollectionSettings(maxExpiry: Option[Duration] = None, history: Option[Boolean] = None) extends Product with Serializable
Used when updating a new collection.
- maxExpiry
is the time for the TTL for new documents in the collection. It defaults to no expiry.
- history
is whether history retention override is enabled on this collection. If not set it will default to the bucket-level setting.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- UpdateCollectionSettings
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new UpdateCollectionSettings(maxExpiry: Option[Duration] = None, history: Option[Boolean] = None)
- maxExpiry
is the time for the TTL for new documents in the collection. It defaults to no expiry.
- history
is whether history retention override is enabled on this collection. If not set it will default to the bucket-level setting.
Value Members
- def history(history: Boolean): UpdateCollectionSettings
Sets whether history retention override is enabled on this collection.
- val history: Option[Boolean]
- def maxExpiry(maxExpiry: Duration): UpdateCollectionSettings
Sets the TTL for new documents in the collection.
- val maxExpiry: Option[Duration]
- def productElementNames: Iterator[String]
- Definition Classes
- Product