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

commonMain.aws.sdk.kotlin.services.qapps.model.UpdateQAppSessionRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.qapps.model

import aws.smithy.kotlin.runtime.SdkDsl

public class UpdateQAppSessionRequest private constructor(builder: Builder) {
    /**
     * The unique identifier of the Amazon Q Business application environment instance.
     */
    public val instanceId: kotlin.String? = builder.instanceId
    /**
     * The unique identifier of the Q App session to provide input for.
     */
    public val sessionId: kotlin.String? = builder.sessionId
    /**
     * The input values to provide for the current state of the Q App session.
     */
    public val values: List? = builder.values

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateQAppSessionRequest(")
        append("instanceId=$instanceId,")
        append("sessionId=$sessionId,")
        append("values=$values")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = instanceId?.hashCode() ?: 0
        result = 31 * result + (sessionId?.hashCode() ?: 0)
        result = 31 * result + (values?.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 UpdateQAppSessionRequest

        if (instanceId != other.instanceId) return false
        if (sessionId != other.sessionId) return false
        if (values != other.values) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The unique identifier of the Amazon Q Business application environment instance.
         */
        public var instanceId: kotlin.String? = null
        /**
         * The unique identifier of the Q App session to provide input for.
         */
        public var sessionId: kotlin.String? = null
        /**
         * The input values to provide for the current state of the Q App session.
         */
        public var values: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.qapps.model.UpdateQAppSessionRequest) : this() {
            this.instanceId = x.instanceId
            this.sessionId = x.sessionId
            this.values = x.values
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy