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

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

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

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



class ListIntentsResponse private constructor(builder: Builder) {
    /**
     * The identifier of the bot that contains the intent.
     */
    val botId: kotlin.String? = builder.botId
    /**
     * The version of the bot that contains the intent.
     */
    val botVersion: kotlin.String? = builder.botVersion
    /**
     * Summary information for the intents 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
     * intents available, the nextToken field contains a token to
     * get the next page of results.
     */
    val intentSummaries: List? = builder.intentSummaries
    /**
     * The language and locale of the intents 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 ListIntents operation. If the
     * nextToken field is present, you send the contents as
     * the nextToken parameter of a ListIntents
     * operation request to get the next page of results.
     */
    val nextToken: kotlin.String? = builder.nextToken

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

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

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

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

        return true
    }

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

    class Builder {
        /**
         * The identifier of the bot that contains the intent.
         */
        var botId: kotlin.String? = null
        /**
         * The version of the bot that contains the intent.
         */
        var botVersion: kotlin.String? = null
        /**
         * Summary information for the intents 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
         * intents available, the nextToken field contains a token to
         * get the next page of results.
         */
        var intentSummaries: List? = null
        /**
         * The language and locale of the intents in the list.
         */
        var localeId: kotlin.String? = null
        /**
         * A token that indicates whether there are more results to return in a
         * response to the ListIntents operation. If the
         * nextToken field is present, you send the contents as
         * the nextToken parameter of a ListIntents
         * operation request to get the next page of results.
         */
        var nextToken: kotlin.String? = null

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy