in.svix-kotlin.1.38.0.source-code.MessageListOptions.kt Maven / Gradle / Ivy
package com.svix.kotlin
import java.time.OffsetDateTime
class MessageListOptions : ListOptions() {
var eventTypes: List? = null
var before: OffsetDateTime? = null
var after: OffsetDateTime? = null
var channel: String? = null
var withContent: Boolean? = null
var tag: String? = null
fun eventTypes(eventTypes: List) = apply { this.eventTypes = eventTypes }
fun before(before: OffsetDateTime) = apply { this.before = before }
fun after(after: OffsetDateTime) = apply { this.after = after }
fun channel(channel: String) = apply { this.channel = channel }
override fun iterator(iterator: String) = apply { super.iterator(iterator) }
override fun limit(limit: Int) = apply { super.limit(limit) }
fun withContent(withContent: Boolean) = apply { this.withContent = withContent }
fun tag(tag: String) = apply { this.tag = tag }
}