case class CreateCollectionSettings(maxExpiry: Option[Duration] = None, history: Option[Boolean] = None) extends Product with Serializable
Used when creating 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
- CreateCollectionSettings
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new CreateCollectionSettings(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): CreateCollectionSettings
Sets whether history retention override is enabled on this collection.
- def maxExpiry(maxExpiry: Duration): CreateCollectionSettings
Sets the TTL for new documents in the collection.
- def productElementNames: Iterator[String]
- Definition Classes
- Product