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

commonMain.aws.sdk.kotlin.services.connect.model.DeleteVocabularyRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.connect.model



public class DeleteVocabularyRequest private constructor(builder: Builder) {
    /**
     * The identifier of the Amazon Connect instance. You can [find the instance ID](https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html) in the Amazon Resource Name (ARN) of the instance.
     */
    public val instanceId: kotlin.String? = requireNotNull(builder.instanceId) { "A non-null value must be provided for instanceId" }
    /**
     * The identifier of the custom vocabulary.
     */
    public val vocabularyId: kotlin.String? = requireNotNull(builder.vocabularyId) { "A non-null value must be provided for vocabularyId" }

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

    override fun toString(): kotlin.String = buildString {
        append("DeleteVocabularyRequest(")
        append("instanceId=$instanceId,")
        append("vocabularyId=$vocabularyId")
        append(")")
    }

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

        if (instanceId != other.instanceId) return false
        if (vocabularyId != other.vocabularyId) return false

        return true
    }

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

    public class Builder {
        /**
         * The identifier of the Amazon Connect instance. You can [find the instance ID](https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html) in the Amazon Resource Name (ARN) of the instance.
         */
        public var instanceId: kotlin.String? = null
        /**
         * The identifier of the custom vocabulary.
         */
        public var vocabularyId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.connect.model.DeleteVocabularyRequest) : this() {
            this.instanceId = x.instanceId
            this.vocabularyId = x.vocabularyId
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy