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

commonMain.aws.sdk.kotlin.services.qbusiness.model.UpdateWebExperienceRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.qbusiness.model



public class UpdateWebExperienceRequest private constructor(builder: Builder) {
    /**
     * The identifier of the Amazon Q Business application attached to the web experience.
     */
    public val applicationId: kotlin.String? = builder.applicationId
    /**
     * The authentication configuration of the Amazon Q Business web experience.
     */
    public val authenticationConfiguration: aws.sdk.kotlin.services.qbusiness.model.WebExperienceAuthConfiguration? = builder.authenticationConfiguration
    /**
     * Determines whether sample prompts are enabled in the web experience for an end user.
     */
    public val samplePromptsControlMode: aws.sdk.kotlin.services.qbusiness.model.WebExperienceSamplePromptsControlMode? = builder.samplePromptsControlMode
    /**
     * The subtitle of the Amazon Q Business web experience.
     */
    public val subtitle: kotlin.String? = builder.subtitle
    /**
     * The title of the Amazon Q Business web experience.
     */
    public val title: kotlin.String? = builder.title
    /**
     * The identifier of the Amazon Q Business web experience.
     */
    public val webExperienceId: kotlin.String? = builder.webExperienceId
    /**
     * A customized welcome message for an end user in an Amazon Q Business web experience.
     */
    public val welcomeMessage: kotlin.String? = builder.welcomeMessage

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateWebExperienceRequest(")
        append("applicationId=$applicationId,")
        append("authenticationConfiguration=$authenticationConfiguration,")
        append("samplePromptsControlMode=$samplePromptsControlMode,")
        append("subtitle=$subtitle,")
        append("title=$title,")
        append("webExperienceId=$webExperienceId,")
        append("welcomeMessage=$welcomeMessage")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = applicationId?.hashCode() ?: 0
        result = 31 * result + (authenticationConfiguration?.hashCode() ?: 0)
        result = 31 * result + (samplePromptsControlMode?.hashCode() ?: 0)
        result = 31 * result + (subtitle?.hashCode() ?: 0)
        result = 31 * result + (title?.hashCode() ?: 0)
        result = 31 * result + (webExperienceId?.hashCode() ?: 0)
        result = 31 * result + (welcomeMessage?.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 UpdateWebExperienceRequest

        if (applicationId != other.applicationId) return false
        if (authenticationConfiguration != other.authenticationConfiguration) return false
        if (samplePromptsControlMode != other.samplePromptsControlMode) return false
        if (subtitle != other.subtitle) return false
        if (title != other.title) return false
        if (webExperienceId != other.webExperienceId) return false
        if (welcomeMessage != other.welcomeMessage) return false

        return true
    }

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

    public class Builder {
        /**
         * The identifier of the Amazon Q Business application attached to the web experience.
         */
        public var applicationId: kotlin.String? = null
        /**
         * The authentication configuration of the Amazon Q Business web experience.
         */
        public var authenticationConfiguration: aws.sdk.kotlin.services.qbusiness.model.WebExperienceAuthConfiguration? = null
        /**
         * Determines whether sample prompts are enabled in the web experience for an end user.
         */
        public var samplePromptsControlMode: aws.sdk.kotlin.services.qbusiness.model.WebExperienceSamplePromptsControlMode? = null
        /**
         * The subtitle of the Amazon Q Business web experience.
         */
        public var subtitle: kotlin.String? = null
        /**
         * The title of the Amazon Q Business web experience.
         */
        public var title: kotlin.String? = null
        /**
         * The identifier of the Amazon Q Business web experience.
         */
        public var webExperienceId: kotlin.String? = null
        /**
         * A customized welcome message for an end user in an Amazon Q Business web experience.
         */
        public var welcomeMessage: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.qbusiness.model.UpdateWebExperienceRequest) : this() {
            this.applicationId = x.applicationId
            this.authenticationConfiguration = x.authenticationConfiguration
            this.samplePromptsControlMode = x.samplePromptsControlMode
            this.subtitle = x.subtitle
            this.title = x.title
            this.webExperienceId = x.webExperienceId
            this.welcomeMessage = x.welcomeMessage
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy