commonMain.aws.sdk.kotlin.services.connect.model.DeleteVocabularyResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.connect.model
public class DeleteVocabularyResponse private constructor(builder: Builder) {
/**
* The current state of the custom vocabulary.
*/
public val state: aws.sdk.kotlin.services.connect.model.VocabularyState? = builder.state
/**
* The Amazon Resource Name (ARN) of the custom vocabulary.
*/
public val vocabularyArn: kotlin.String? = builder.vocabularyArn
/**
* The identifier of the custom vocabulary.
*/
public val vocabularyId: kotlin.String? = builder.vocabularyId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.connect.model.DeleteVocabularyResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteVocabularyResponse(")
append("state=$state,")
append("vocabularyArn=$vocabularyArn,")
append("vocabularyId=$vocabularyId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = state?.hashCode() ?: 0
result = 31 * result + (vocabularyArn?.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 DeleteVocabularyResponse
if (state != other.state) return false
if (vocabularyArn != other.vocabularyArn) return false
if (vocabularyId != other.vocabularyId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.connect.model.DeleteVocabularyResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The current state of the custom vocabulary.
*/
public var state: aws.sdk.kotlin.services.connect.model.VocabularyState? = null
/**
* The Amazon Resource Name (ARN) of the custom vocabulary.
*/
public var vocabularyArn: 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.DeleteVocabularyResponse) : this() {
this.state = x.state
this.vocabularyArn = x.vocabularyArn
this.vocabularyId = x.vocabularyId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.connect.model.DeleteVocabularyResponse = DeleteVocabularyResponse(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy