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

commonMain.aws.sdk.kotlin.services.wisdom.model.UpdateQuickResponseRequest.kt Maven / Gradle / Ivy

There is a newer version: 1.3.80
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.wisdom.model

import aws.smithy.kotlin.runtime.SdkDsl

public class UpdateQuickResponseRequest private constructor(builder: Builder) {
    /**
     * The Amazon Connect contact channels this quick response applies to. The supported contact channel types include `Chat`.
     */
    public val channels: List? = builder.channels
    /**
     * The updated content of the quick response.
     */
    public val content: aws.sdk.kotlin.services.wisdom.model.QuickResponseDataProvider? = builder.content
    /**
     * The media type of the quick response content.
     * + Use `application/x.quickresponse;format=plain` for quick response written in plain text.
     * + Use `application/x.quickresponse;format=markdown` for quick response written in richtext.
     */
    public val contentType: kotlin.String? = builder.contentType
    /**
     * The updated description of the quick response.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The updated grouping configuration of the quick response.
     */
    public val groupingConfiguration: aws.sdk.kotlin.services.wisdom.model.GroupingConfiguration? = builder.groupingConfiguration
    /**
     * Whether the quick response is active.
     */
    public val isActive: kotlin.Boolean? = builder.isActive
    /**
     * The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Wisdom Content resource to it. Can be either the ID or the ARN. URLs cannot contain the ARN.
     */
    public val knowledgeBaseId: kotlin.String? = builder.knowledgeBaseId
    /**
     * The language code value for the language in which the quick response is written. The supported language codes include `de_DE`, `en_US`, `es_ES`, `fr_FR`, `id_ID`, `it_IT`, `ja_JP`, `ko_KR`, `pt_BR`, `zh_CN`, `zh_TW`
     */
    public val language: kotlin.String? = builder.language
    /**
     * The name of the quick response.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The identifier of the quick response.
     */
    public val quickResponseId: kotlin.String? = builder.quickResponseId
    /**
     * Whether to remove the description from the quick response.
     */
    public val removeDescription: kotlin.Boolean? = builder.removeDescription
    /**
     * Whether to remove the grouping configuration of the quick response.
     */
    public val removeGroupingConfiguration: kotlin.Boolean? = builder.removeGroupingConfiguration
    /**
     * Whether to remove the shortcut key of the quick response.
     */
    public val removeShortcutKey: kotlin.Boolean? = builder.removeShortcutKey
    /**
     * The shortcut key of the quick response. The value should be unique across the knowledge base.
     */
    public val shortcutKey: kotlin.String? = builder.shortcutKey

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateQuickResponseRequest(")
        append("channels=*** Sensitive Data Redacted ***,")
        append("content=$content,")
        append("contentType=$contentType,")
        append("description=$description,")
        append("groupingConfiguration=$groupingConfiguration,")
        append("isActive=$isActive,")
        append("knowledgeBaseId=$knowledgeBaseId,")
        append("language=$language,")
        append("name=$name,")
        append("quickResponseId=$quickResponseId,")
        append("removeDescription=$removeDescription,")
        append("removeGroupingConfiguration=$removeGroupingConfiguration,")
        append("removeShortcutKey=$removeShortcutKey,")
        append("shortcutKey=$shortcutKey")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = channels?.hashCode() ?: 0
        result = 31 * result + (content?.hashCode() ?: 0)
        result = 31 * result + (contentType?.hashCode() ?: 0)
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (groupingConfiguration?.hashCode() ?: 0)
        result = 31 * result + (isActive?.hashCode() ?: 0)
        result = 31 * result + (knowledgeBaseId?.hashCode() ?: 0)
        result = 31 * result + (language?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (quickResponseId?.hashCode() ?: 0)
        result = 31 * result + (removeDescription?.hashCode() ?: 0)
        result = 31 * result + (removeGroupingConfiguration?.hashCode() ?: 0)
        result = 31 * result + (removeShortcutKey?.hashCode() ?: 0)
        result = 31 * result + (shortcutKey?.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 UpdateQuickResponseRequest

        if (channels != other.channels) return false
        if (content != other.content) return false
        if (contentType != other.contentType) return false
        if (description != other.description) return false
        if (groupingConfiguration != other.groupingConfiguration) return false
        if (isActive != other.isActive) return false
        if (knowledgeBaseId != other.knowledgeBaseId) return false
        if (language != other.language) return false
        if (name != other.name) return false
        if (quickResponseId != other.quickResponseId) return false
        if (removeDescription != other.removeDescription) return false
        if (removeGroupingConfiguration != other.removeGroupingConfiguration) return false
        if (removeShortcutKey != other.removeShortcutKey) return false
        if (shortcutKey != other.shortcutKey) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The Amazon Connect contact channels this quick response applies to. The supported contact channel types include `Chat`.
         */
        public var channels: List? = null
        /**
         * The updated content of the quick response.
         */
        public var content: aws.sdk.kotlin.services.wisdom.model.QuickResponseDataProvider? = null
        /**
         * The media type of the quick response content.
         * + Use `application/x.quickresponse;format=plain` for quick response written in plain text.
         * + Use `application/x.quickresponse;format=markdown` for quick response written in richtext.
         */
        public var contentType: kotlin.String? = null
        /**
         * The updated description of the quick response.
         */
        public var description: kotlin.String? = null
        /**
         * The updated grouping configuration of the quick response.
         */
        public var groupingConfiguration: aws.sdk.kotlin.services.wisdom.model.GroupingConfiguration? = null
        /**
         * Whether the quick response is active.
         */
        public var isActive: kotlin.Boolean? = null
        /**
         * The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Wisdom Content resource to it. Can be either the ID or the ARN. URLs cannot contain the ARN.
         */
        public var knowledgeBaseId: kotlin.String? = null
        /**
         * The language code value for the language in which the quick response is written. The supported language codes include `de_DE`, `en_US`, `es_ES`, `fr_FR`, `id_ID`, `it_IT`, `ja_JP`, `ko_KR`, `pt_BR`, `zh_CN`, `zh_TW`
         */
        public var language: kotlin.String? = null
        /**
         * The name of the quick response.
         */
        public var name: kotlin.String? = null
        /**
         * The identifier of the quick response.
         */
        public var quickResponseId: kotlin.String? = null
        /**
         * Whether to remove the description from the quick response.
         */
        public var removeDescription: kotlin.Boolean? = null
        /**
         * Whether to remove the grouping configuration of the quick response.
         */
        public var removeGroupingConfiguration: kotlin.Boolean? = null
        /**
         * Whether to remove the shortcut key of the quick response.
         */
        public var removeShortcutKey: kotlin.Boolean? = null
        /**
         * The shortcut key of the quick response. The value should be unique across the knowledge base.
         */
        public var shortcutKey: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.wisdom.model.UpdateQuickResponseRequest) : this() {
            this.channels = x.channels
            this.content = x.content
            this.contentType = x.contentType
            this.description = x.description
            this.groupingConfiguration = x.groupingConfiguration
            this.isActive = x.isActive
            this.knowledgeBaseId = x.knowledgeBaseId
            this.language = x.language
            this.name = x.name
            this.quickResponseId = x.quickResponseId
            this.removeDescription = x.removeDescription
            this.removeGroupingConfiguration = x.removeGroupingConfiguration
            this.removeShortcutKey = x.removeShortcutKey
            this.shortcutKey = x.shortcutKey
        }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy