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

commonMain.aws.sdk.kotlin.services.lexruntimev2.model.DeleteSessionRequest.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

public class DeleteSessionRequest private constructor(builder: Builder) {
    /**
     * The alias identifier in use for the bot that contains the session data.
     */
    public val botAliasId: kotlin.String? = builder.botAliasId
    /**
     * The identifier of the bot that contains the session data.
     */
    public val botId: kotlin.String? = builder.botId
    /**
     * The locale where the session is in use.
     */
    public val localeId: kotlin.String? = builder.localeId
    /**
     * The identifier of the session to delete.
     */
    public val sessionId: kotlin.String? = builder.sessionId

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

    override fun toString(): kotlin.String = buildString {
        append("DeleteSessionRequest(")
        append("botAliasId=$botAliasId,")
        append("botId=$botId,")
        append("localeId=$localeId,")
        append("sessionId=$sessionId")
        append(")")
    }

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

        if (botAliasId != other.botAliasId) return false
        if (botId != other.botId) return false
        if (localeId != other.localeId) return false
        if (sessionId != other.sessionId) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The alias identifier in use for the bot that contains the session data.
         */
        public var botAliasId: kotlin.String? = null
        /**
         * The identifier of the bot that contains the session data.
         */
        public var botId: kotlin.String? = null
        /**
         * The locale where the session is in use.
         */
        public var localeId: kotlin.String? = null
        /**
         * The identifier of the session to delete.
         */
        public var sessionId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.lexruntimev2.model.DeleteSessionRequest) : this() {
            this.botAliasId = x.botAliasId
            this.botId = x.botId
            this.localeId = x.localeId
            this.sessionId = x.sessionId
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy