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

aws.sdk.kotlin.services.lexmodelsv2.model.CustomVocabularyExportSpecification.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.lexmodelsv2.model



/**
 * Provides the parameters required for exporting a custom vocabulary.
 */
class CustomVocabularyExportSpecification private constructor(builder: Builder) {
    /**
     * The identifier of the bot that contains the custom vocabulary to export.
     */
    val botId: kotlin.String? = builder.botId
    /**
     * The version of the bot that contains the custom vocabulary to export.
     */
    val botVersion: kotlin.String? = builder.botVersion
    /**
     * The locale of the bot that contains the custom vocabulary to export.
     */
    val localeId: kotlin.String? = builder.localeId

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

    override fun toString(): kotlin.String = buildString {
        append("CustomVocabularyExportSpecification(")
        append("botId=$botId,")
        append("botVersion=$botVersion,")
        append("localeId=$localeId)")
    }

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

        if (botId != other.botId) return false
        if (botVersion != other.botVersion) return false
        if (localeId != other.localeId) return false

        return true
    }

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

    class Builder {
        /**
         * The identifier of the bot that contains the custom vocabulary to export.
         */
        var botId: kotlin.String? = null
        /**
         * The version of the bot that contains the custom vocabulary to export.
         */
        var botVersion: kotlin.String? = null
        /**
         * The locale of the bot that contains the custom vocabulary to export.
         */
        var localeId: kotlin.String? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.lexmodelsv2.model.CustomVocabularyExportSpecification) : this() {
            this.botId = x.botId
            this.botVersion = x.botVersion
            this.localeId = x.localeId
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.lexmodelsv2.model.CustomVocabularyExportSpecification = CustomVocabularyExportSpecification(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy