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

commonMain.aws.sdk.kotlin.services.lexmodelbuildingservice.model.GetUtterancesViewRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.lexmodelbuildingservice.model

import aws.smithy.kotlin.runtime.SdkDsl

public class GetUtterancesViewRequest private constructor(builder: Builder) {
    /**
     * The name of the bot for which utterance information should be returned.
     */
    public val botName: kotlin.String? = builder.botName
    /**
     * An array of bot versions for which utterance information should be returned. The limit is 5 versions per request.
     */
    public val botVersions: List? = builder.botVersions
    /**
     * To return utterances that were recognized and handled, use `Detected`. To return utterances that were not recognized, use `Missed`.
     */
    public val statusType: aws.sdk.kotlin.services.lexmodelbuildingservice.model.StatusType? = builder.statusType

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

    override fun toString(): kotlin.String = buildString {
        append("GetUtterancesViewRequest(")
        append("botName=$botName,")
        append("botVersions=$botVersions,")
        append("statusType=$statusType")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = botName?.hashCode() ?: 0
        result = 31 * result + (botVersions?.hashCode() ?: 0)
        result = 31 * result + (statusType?.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 GetUtterancesViewRequest

        if (botName != other.botName) return false
        if (botVersions != other.botVersions) return false
        if (statusType != other.statusType) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The name of the bot for which utterance information should be returned.
         */
        public var botName: kotlin.String? = null
        /**
         * An array of bot versions for which utterance information should be returned. The limit is 5 versions per request.
         */
        public var botVersions: List? = null
        /**
         * To return utterances that were recognized and handled, use `Detected`. To return utterances that were not recognized, use `Missed`.
         */
        public var statusType: aws.sdk.kotlin.services.lexmodelbuildingservice.model.StatusType? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.lexmodelbuildingservice.model.GetUtterancesViewRequest) : this() {
            this.botName = x.botName
            this.botVersions = x.botVersions
            this.statusType = x.statusType
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy