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

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

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

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



public class CreateWebExperienceRequest private constructor(builder: Builder) {
    /**
     * The identifier of the Amazon Q Business web experience.
     */
    public val applicationId: kotlin.String? = builder.applicationId
    /**
     * A token you provide to identify a request to create an Amazon Q Business web experience.
     */
    public val clientToken: kotlin.String? = builder.clientToken
    /**
     * The Amazon Resource Name (ARN) of the service role attached to your web experience.
     */
    public val roleArn: kotlin.String? = builder.roleArn
    /**
     * 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
    /**
     * A subtitle to personalize your Amazon Q Business web experience.
     */
    public val subtitle: kotlin.String? = builder.subtitle
    /**
     * A list of key-value pairs that identify or categorize your Amazon Q Business web experience. You can also use tags to help control access to the web experience. Tag keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @.
     */
    public val tags: List? = builder.tags
    /**
     * The title for your Amazon Q Business web experience.
     */
    public val title: kotlin.String? = builder.title
    /**
     * The customized welcome message for end users of 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.CreateWebExperienceRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("CreateWebExperienceRequest(")
        append("applicationId=$applicationId,")
        append("clientToken=$clientToken,")
        append("roleArn=$roleArn,")
        append("samplePromptsControlMode=$samplePromptsControlMode,")
        append("subtitle=$subtitle,")
        append("tags=$tags,")
        append("title=$title,")
        append("welcomeMessage=$welcomeMessage")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = applicationId?.hashCode() ?: 0
        result = 31 * result + (clientToken?.hashCode() ?: 0)
        result = 31 * result + (roleArn?.hashCode() ?: 0)
        result = 31 * result + (samplePromptsControlMode?.hashCode() ?: 0)
        result = 31 * result + (subtitle?.hashCode() ?: 0)
        result = 31 * result + (tags?.hashCode() ?: 0)
        result = 31 * result + (title?.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 CreateWebExperienceRequest

        if (applicationId != other.applicationId) return false
        if (clientToken != other.clientToken) return false
        if (roleArn != other.roleArn) return false
        if (samplePromptsControlMode != other.samplePromptsControlMode) return false
        if (subtitle != other.subtitle) return false
        if (tags != other.tags) return false
        if (title != other.title) return false
        if (welcomeMessage != other.welcomeMessage) return false

        return true
    }

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

    public class Builder {
        /**
         * The identifier of the Amazon Q Business web experience.
         */
        public var applicationId: kotlin.String? = null
        /**
         * A token you provide to identify a request to create an Amazon Q Business web experience.
         */
        public var clientToken: kotlin.String? = null
        /**
         * The Amazon Resource Name (ARN) of the service role attached to your web experience.
         */
        public var roleArn: kotlin.String? = 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
        /**
         * A subtitle to personalize your Amazon Q Business web experience.
         */
        public var subtitle: kotlin.String? = null
        /**
         * A list of key-value pairs that identify or categorize your Amazon Q Business web experience. You can also use tags to help control access to the web experience. Tag keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @.
         */
        public var tags: List? = null
        /**
         * The title for your Amazon Q Business web experience.
         */
        public var title: kotlin.String? = null
        /**
         * The customized welcome message for end users of 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.CreateWebExperienceRequest) : this() {
            this.applicationId = x.applicationId
            this.clientToken = x.clientToken
            this.roleArn = x.roleArn
            this.samplePromptsControlMode = x.samplePromptsControlMode
            this.subtitle = x.subtitle
            this.tags = x.tags
            this.title = x.title
            this.welcomeMessage = x.welcomeMessage
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy