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

commonMain.aws.sdk.kotlin.services.lexmodelbuildingservice.model.GetIntentResponse.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.time.Instant

public class GetIntentResponse private constructor(builder: Builder) {
    /**
     * Checksum of the intent.
     */
    public val checksum: kotlin.String? = builder.checksum
    /**
     * After the Lambda function specified in the `fulfillmentActivity` element fulfills the intent, Amazon Lex conveys this statement to the user.
     */
    public val conclusionStatement: aws.sdk.kotlin.services.lexmodelbuildingservice.model.Statement? = builder.conclusionStatement
    /**
     * If defined in the bot, Amazon Lex uses prompt to confirm the intent before fulfilling the user's request. For more information, see PutIntent.
     */
    public val confirmationPrompt: aws.sdk.kotlin.services.lexmodelbuildingservice.model.Prompt? = builder.confirmationPrompt
    /**
     * The date that the intent was created.
     */
    public val createdDate: aws.smithy.kotlin.runtime.time.Instant? = builder.createdDate
    /**
     * A description of the intent.
     */
    public val description: kotlin.String? = builder.description
    /**
     * If defined in the bot, Amazon Amazon Lex invokes this Lambda function for each user input. For more information, see PutIntent.
     */
    public val dialogCodeHook: aws.sdk.kotlin.services.lexmodelbuildingservice.model.CodeHook? = builder.dialogCodeHook
    /**
     * If defined in the bot, Amazon Lex uses this prompt to solicit additional user activity after the intent is fulfilled. For more information, see PutIntent.
     */
    public val followUpPrompt: aws.sdk.kotlin.services.lexmodelbuildingservice.model.FollowUpPrompt? = builder.followUpPrompt
    /**
     * Describes how the intent is fulfilled. For more information, see PutIntent.
     */
    public val fulfillmentActivity: aws.sdk.kotlin.services.lexmodelbuildingservice.model.FulfillmentActivity? = builder.fulfillmentActivity
    /**
     * An array of `InputContext` objects that lists the contexts that must be active for Amazon Lex to choose the intent in a conversation with the user.
     */
    public val inputContexts: List? = builder.inputContexts
    /**
     * Configuration information, if any, to connect to an Amazon Kendra index with the `AMAZON.KendraSearchIntent` intent.
     */
    public val kendraConfiguration: aws.sdk.kotlin.services.lexmodelbuildingservice.model.KendraConfiguration? = builder.kendraConfiguration
    /**
     * The date that the intent was updated. When you create a resource, the creation date and the last updated date are the same.
     */
    public val lastUpdatedDate: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdatedDate
    /**
     * The name of the intent.
     */
    public val name: kotlin.String? = builder.name
    /**
     * An array of `OutputContext` objects that lists the contexts that the intent activates when the intent is fulfilled.
     */
    public val outputContexts: List? = builder.outputContexts
    /**
     * A unique identifier for a built-in intent.
     */
    public val parentIntentSignature: kotlin.String? = builder.parentIntentSignature
    /**
     * If the user answers "no" to the question defined in `confirmationPrompt`, Amazon Lex responds with this statement to acknowledge that the intent was canceled.
     */
    public val rejectionStatement: aws.sdk.kotlin.services.lexmodelbuildingservice.model.Statement? = builder.rejectionStatement
    /**
     * An array of sample utterances configured for the intent.
     */
    public val sampleUtterances: List? = builder.sampleUtterances
    /**
     * An array of intent slots configured for the intent.
     */
    public val slots: List? = builder.slots
    /**
     * The version of the intent.
     */
    public val version: kotlin.String? = builder.version

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

    override fun toString(): kotlin.String = buildString {
        append("GetIntentResponse(")
        append("checksum=$checksum,")
        append("conclusionStatement=$conclusionStatement,")
        append("confirmationPrompt=$confirmationPrompt,")
        append("createdDate=$createdDate,")
        append("description=$description,")
        append("dialogCodeHook=$dialogCodeHook,")
        append("followUpPrompt=$followUpPrompt,")
        append("fulfillmentActivity=$fulfillmentActivity,")
        append("inputContexts=$inputContexts,")
        append("kendraConfiguration=$kendraConfiguration,")
        append("lastUpdatedDate=$lastUpdatedDate,")
        append("name=$name,")
        append("outputContexts=$outputContexts,")
        append("parentIntentSignature=$parentIntentSignature,")
        append("rejectionStatement=$rejectionStatement,")
        append("sampleUtterances=$sampleUtterances,")
        append("slots=$slots,")
        append("version=$version")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = checksum?.hashCode() ?: 0
        result = 31 * result + (conclusionStatement?.hashCode() ?: 0)
        result = 31 * result + (confirmationPrompt?.hashCode() ?: 0)
        result = 31 * result + (createdDate?.hashCode() ?: 0)
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (dialogCodeHook?.hashCode() ?: 0)
        result = 31 * result + (followUpPrompt?.hashCode() ?: 0)
        result = 31 * result + (fulfillmentActivity?.hashCode() ?: 0)
        result = 31 * result + (inputContexts?.hashCode() ?: 0)
        result = 31 * result + (kendraConfiguration?.hashCode() ?: 0)
        result = 31 * result + (lastUpdatedDate?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (outputContexts?.hashCode() ?: 0)
        result = 31 * result + (parentIntentSignature?.hashCode() ?: 0)
        result = 31 * result + (rejectionStatement?.hashCode() ?: 0)
        result = 31 * result + (sampleUtterances?.hashCode() ?: 0)
        result = 31 * result + (slots?.hashCode() ?: 0)
        result = 31 * result + (version?.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 GetIntentResponse

        if (checksum != other.checksum) return false
        if (conclusionStatement != other.conclusionStatement) return false
        if (confirmationPrompt != other.confirmationPrompt) return false
        if (createdDate != other.createdDate) return false
        if (description != other.description) return false
        if (dialogCodeHook != other.dialogCodeHook) return false
        if (followUpPrompt != other.followUpPrompt) return false
        if (fulfillmentActivity != other.fulfillmentActivity) return false
        if (inputContexts != other.inputContexts) return false
        if (kendraConfiguration != other.kendraConfiguration) return false
        if (lastUpdatedDate != other.lastUpdatedDate) return false
        if (name != other.name) return false
        if (outputContexts != other.outputContexts) return false
        if (parentIntentSignature != other.parentIntentSignature) return false
        if (rejectionStatement != other.rejectionStatement) return false
        if (sampleUtterances != other.sampleUtterances) return false
        if (slots != other.slots) return false
        if (version != other.version) return false

        return true
    }

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

    public class Builder {
        /**
         * Checksum of the intent.
         */
        public var checksum: kotlin.String? = null
        /**
         * After the Lambda function specified in the `fulfillmentActivity` element fulfills the intent, Amazon Lex conveys this statement to the user.
         */
        public var conclusionStatement: aws.sdk.kotlin.services.lexmodelbuildingservice.model.Statement? = null
        /**
         * If defined in the bot, Amazon Lex uses prompt to confirm the intent before fulfilling the user's request. For more information, see PutIntent.
         */
        public var confirmationPrompt: aws.sdk.kotlin.services.lexmodelbuildingservice.model.Prompt? = null
        /**
         * The date that the intent was created.
         */
        public var createdDate: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * A description of the intent.
         */
        public var description: kotlin.String? = null
        /**
         * If defined in the bot, Amazon Amazon Lex invokes this Lambda function for each user input. For more information, see PutIntent.
         */
        public var dialogCodeHook: aws.sdk.kotlin.services.lexmodelbuildingservice.model.CodeHook? = null
        /**
         * If defined in the bot, Amazon Lex uses this prompt to solicit additional user activity after the intent is fulfilled. For more information, see PutIntent.
         */
        public var followUpPrompt: aws.sdk.kotlin.services.lexmodelbuildingservice.model.FollowUpPrompt? = null
        /**
         * Describes how the intent is fulfilled. For more information, see PutIntent.
         */
        public var fulfillmentActivity: aws.sdk.kotlin.services.lexmodelbuildingservice.model.FulfillmentActivity? = null
        /**
         * An array of `InputContext` objects that lists the contexts that must be active for Amazon Lex to choose the intent in a conversation with the user.
         */
        public var inputContexts: List? = null
        /**
         * Configuration information, if any, to connect to an Amazon Kendra index with the `AMAZON.KendraSearchIntent` intent.
         */
        public var kendraConfiguration: aws.sdk.kotlin.services.lexmodelbuildingservice.model.KendraConfiguration? = null
        /**
         * The date that the intent was updated. When you create a resource, the creation date and the last updated date are the same.
         */
        public var lastUpdatedDate: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The name of the intent.
         */
        public var name: kotlin.String? = null
        /**
         * An array of `OutputContext` objects that lists the contexts that the intent activates when the intent is fulfilled.
         */
        public var outputContexts: List? = null
        /**
         * A unique identifier for a built-in intent.
         */
        public var parentIntentSignature: kotlin.String? = null
        /**
         * If the user answers "no" to the question defined in `confirmationPrompt`, Amazon Lex responds with this statement to acknowledge that the intent was canceled.
         */
        public var rejectionStatement: aws.sdk.kotlin.services.lexmodelbuildingservice.model.Statement? = null
        /**
         * An array of sample utterances configured for the intent.
         */
        public var sampleUtterances: List? = null
        /**
         * An array of intent slots configured for the intent.
         */
        public var slots: List? = null
        /**
         * The version of the intent.
         */
        public var version: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.lexmodelbuildingservice.model.GetIntentResponse) : this() {
            this.checksum = x.checksum
            this.conclusionStatement = x.conclusionStatement
            this.confirmationPrompt = x.confirmationPrompt
            this.createdDate = x.createdDate
            this.description = x.description
            this.dialogCodeHook = x.dialogCodeHook
            this.followUpPrompt = x.followUpPrompt
            this.fulfillmentActivity = x.fulfillmentActivity
            this.inputContexts = x.inputContexts
            this.kendraConfiguration = x.kendraConfiguration
            this.lastUpdatedDate = x.lastUpdatedDate
            this.name = x.name
            this.outputContexts = x.outputContexts
            this.parentIntentSignature = x.parentIntentSignature
            this.rejectionStatement = x.rejectionStatement
            this.sampleUtterances = x.sampleUtterances
            this.slots = x.slots
            this.version = x.version
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.lexmodelbuildingservice.model.Statement] inside the given [block]
         */
        public fun conclusionStatement(block: aws.sdk.kotlin.services.lexmodelbuildingservice.model.Statement.Builder.() -> kotlin.Unit) {
            this.conclusionStatement = aws.sdk.kotlin.services.lexmodelbuildingservice.model.Statement.invoke(block)
        }

        /**
         * construct an [aws.sdk.kotlin.services.lexmodelbuildingservice.model.Prompt] inside the given [block]
         */
        public fun confirmationPrompt(block: aws.sdk.kotlin.services.lexmodelbuildingservice.model.Prompt.Builder.() -> kotlin.Unit) {
            this.confirmationPrompt = aws.sdk.kotlin.services.lexmodelbuildingservice.model.Prompt.invoke(block)
        }

        /**
         * construct an [aws.sdk.kotlin.services.lexmodelbuildingservice.model.CodeHook] inside the given [block]
         */
        public fun dialogCodeHook(block: aws.sdk.kotlin.services.lexmodelbuildingservice.model.CodeHook.Builder.() -> kotlin.Unit) {
            this.dialogCodeHook = aws.sdk.kotlin.services.lexmodelbuildingservice.model.CodeHook.invoke(block)
        }

        /**
         * construct an [aws.sdk.kotlin.services.lexmodelbuildingservice.model.FollowUpPrompt] inside the given [block]
         */
        public fun followUpPrompt(block: aws.sdk.kotlin.services.lexmodelbuildingservice.model.FollowUpPrompt.Builder.() -> kotlin.Unit) {
            this.followUpPrompt = aws.sdk.kotlin.services.lexmodelbuildingservice.model.FollowUpPrompt.invoke(block)
        }

        /**
         * construct an [aws.sdk.kotlin.services.lexmodelbuildingservice.model.FulfillmentActivity] inside the given [block]
         */
        public fun fulfillmentActivity(block: aws.sdk.kotlin.services.lexmodelbuildingservice.model.FulfillmentActivity.Builder.() -> kotlin.Unit) {
            this.fulfillmentActivity = aws.sdk.kotlin.services.lexmodelbuildingservice.model.FulfillmentActivity.invoke(block)
        }

        /**
         * construct an [aws.sdk.kotlin.services.lexmodelbuildingservice.model.KendraConfiguration] inside the given [block]
         */
        public fun kendraConfiguration(block: aws.sdk.kotlin.services.lexmodelbuildingservice.model.KendraConfiguration.Builder.() -> kotlin.Unit) {
            this.kendraConfiguration = aws.sdk.kotlin.services.lexmodelbuildingservice.model.KendraConfiguration.invoke(block)
        }

        /**
         * construct an [aws.sdk.kotlin.services.lexmodelbuildingservice.model.Statement] inside the given [block]
         */
        public fun rejectionStatement(block: aws.sdk.kotlin.services.lexmodelbuildingservice.model.Statement.Builder.() -> kotlin.Unit) {
            this.rejectionStatement = aws.sdk.kotlin.services.lexmodelbuildingservice.model.Statement.invoke(block)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy