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

aws.sdk.kotlin.services.lexmodelsv2.model.ListSlotsResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.lexmodelsv2.model



class ListSlotsResponse private constructor(builder: Builder) {
    /**
     * The identifier of the bot that contains the slots.
     */
    val botId: kotlin.String? = builder.botId
    /**
     * The version of the bot that contains the slots.
     */
    val botVersion: kotlin.String? = builder.botVersion
    /**
     * The identifier of the intent that contains the slots.
     */
    val intentId: kotlin.String? = builder.intentId
    /**
     * The language and locale of the slots in the list.
     */
    val localeId: kotlin.String? = builder.localeId
    /**
     * A token that indicates whether there are more results to return in a
     * response to the ListSlots operation. If the
     * nextToken field is present, you send the contents as
     * the nextToken parameter of a ListSlots
     * operation request to get the next page of results.
     */
    val nextToken: kotlin.String? = builder.nextToken
    /**
     * Summary information for the slots that meet the filter criteria
     * specified in the request. The length of the list is specified in the
     * maxResults parameter of the request. If there are more
     * slots available, the nextToken field contains a token to
     * get the next page of results.
     */
    val slotSummaries: List? = builder.slotSummaries

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

    override fun toString(): kotlin.String = buildString {
        append("ListSlotsResponse(")
        append("botId=$botId,")
        append("botVersion=$botVersion,")
        append("intentId=$intentId,")
        append("localeId=$localeId,")
        append("nextToken=$nextToken,")
        append("slotSummaries=$slotSummaries)")
    }

    override fun hashCode(): kotlin.Int {
        var result = botId?.hashCode() ?: 0
        result = 31 * result + (botVersion?.hashCode() ?: 0)
        result = 31 * result + (intentId?.hashCode() ?: 0)
        result = 31 * result + (localeId?.hashCode() ?: 0)
        result = 31 * result + (nextToken?.hashCode() ?: 0)
        result = 31 * result + (slotSummaries?.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 ListSlotsResponse

        if (botId != other.botId) return false
        if (botVersion != other.botVersion) return false
        if (intentId != other.intentId) return false
        if (localeId != other.localeId) return false
        if (nextToken != other.nextToken) return false
        if (slotSummaries != other.slotSummaries) return false

        return true
    }

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

    class Builder {
        /**
         * The identifier of the bot that contains the slots.
         */
        var botId: kotlin.String? = null
        /**
         * The version of the bot that contains the slots.
         */
        var botVersion: kotlin.String? = null
        /**
         * The identifier of the intent that contains the slots.
         */
        var intentId: kotlin.String? = null
        /**
         * The language and locale of the slots in the list.
         */
        var localeId: kotlin.String? = null
        /**
         * A token that indicates whether there are more results to return in a
         * response to the ListSlots operation. If the
         * nextToken field is present, you send the contents as
         * the nextToken parameter of a ListSlots
         * operation request to get the next page of results.
         */
        var nextToken: kotlin.String? = null
        /**
         * Summary information for the slots that meet the filter criteria
         * specified in the request. The length of the list is specified in the
         * maxResults parameter of the request. If there are more
         * slots available, the nextToken field contains a token to
         * get the next page of results.
         */
        var slotSummaries: List? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.lexmodelsv2.model.ListSlotsResponse) : this() {
            this.botId = x.botId
            this.botVersion = x.botVersion
            this.intentId = x.intentId
            this.localeId = x.localeId
            this.nextToken = x.nextToken
            this.slotSummaries = x.slotSummaries
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.lexmodelsv2.model.ListSlotsResponse = ListSlotsResponse(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy