CollectionSpec

class CollectionSpec(val scopeName: String, val name: String, val maxExpiry: Duration? = null, val history: Boolean? = null)

Information about a collection.

Constructors

Link copied to clipboard
constructor(scopeName: String, name: String, maxExpiry: Duration? = null, history: Boolean? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val history: Boolean? = null
Link copied to clipboard
val maxExpiry: Duration? = null

Maximum expiry for documents in the collection. Null means the collection's max expiry is always the same as the bucket's max expiry. A duration equal to NEVER_EXPIRE (-1 seconds) means documents in the collection never expire, regardless of the bucket's max expiry.

Link copied to clipboard

Name of the collection

Link copied to clipboard

Name of the parent scope

Functions

Link copied to clipboard
fun copy(scopeName: String = this.scopeName, name: String = this.name, maxExpiry: Duration? = this.maxExpiry, history: Boolean? = this.history): CollectionSpec
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String