All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.lexruntimev2.model.PlaybackCompletionEvent.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.lexruntimev2.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Event sent from the client application to Amazon Lex V2 to indicate that playback of audio is complete and that Amazon Lex V2 should start processing the user's input.
 */
public class PlaybackCompletionEvent private constructor(builder: Builder) {
    /**
     * A timestamp set by the client of the date and time that the event was sent to Amazon Lex V2.
     */
    public val clientTimestampMillis: kotlin.Long = builder.clientTimestampMillis
    /**
     * A unique identifier that your application assigns to the event. You can use this to identify events in logs.
     */
    public val eventId: kotlin.String? = builder.eventId

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lexruntimev2.model.PlaybackCompletionEvent = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("PlaybackCompletionEvent(")
        append("clientTimestampMillis=$clientTimestampMillis,")
        append("eventId=$eventId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = clientTimestampMillis.hashCode()
        result = 31 * result + (eventId?.hashCode() ?: 0)
        return result
    }

    override fun equals(other: kotlin.Any?): kotlin.Boolean {
        if (this === other) return true
        if (other == null || this::class != other::class) return false

        other as PlaybackCompletionEvent

        if (clientTimestampMillis != other.clientTimestampMillis) return false
        if (eventId != other.eventId) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lexruntimev2.model.PlaybackCompletionEvent = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * A timestamp set by the client of the date and time that the event was sent to Amazon Lex V2.
         */
        public var clientTimestampMillis: kotlin.Long = 0L
        /**
         * A unique identifier that your application assigns to the event. You can use this to identify events in logs.
         */
        public var eventId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.lexruntimev2.model.PlaybackCompletionEvent) : this() {
            this.clientTimestampMillis = x.clientTimestampMillis
            this.eventId = x.eventId
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.lexruntimev2.model.PlaybackCompletionEvent = PlaybackCompletionEvent(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy