
aws.sdk.kotlin.services.lexmodelsv2.model.DeleteCustomVocabularyResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lexmodelsv2.model
class DeleteCustomVocabularyResponse private constructor(builder: Builder) {
/**
* The identifier of the bot that the custom vocabulary
* was removed from.
*/
val botId: kotlin.String? = builder.botId
/**
* The version of the bot that the custom vocabulary
* was removed from.
*/
val botVersion: kotlin.String? = builder.botVersion
/**
* The status of removing the custom vocabulary.
*/
val customVocabularyStatus: aws.sdk.kotlin.services.lexmodelsv2.model.CustomVocabularyStatus? = builder.customVocabularyStatus
/**
* The locale identifier for the locale that the
* custom vocabulary was removed from.
*/
val localeId: kotlin.String? = builder.localeId
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lexmodelsv2.model.DeleteCustomVocabularyResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteCustomVocabularyResponse(")
append("botId=$botId,")
append("botVersion=$botVersion,")
append("customVocabularyStatus=$customVocabularyStatus,")
append("localeId=$localeId)")
}
override fun hashCode(): kotlin.Int {
var result = botId?.hashCode() ?: 0
result = 31 * result + (botVersion?.hashCode() ?: 0)
result = 31 * result + (customVocabularyStatus?.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 DeleteCustomVocabularyResponse
if (botId != other.botId) return false
if (botVersion != other.botVersion) return false
if (customVocabularyStatus != other.customVocabularyStatus) return false
if (localeId != other.localeId) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lexmodelsv2.model.DeleteCustomVocabularyResponse = Builder(this).apply(block).build()
class Builder {
/**
* The identifier of the bot that the custom vocabulary
* was removed from.
*/
var botId: kotlin.String? = null
/**
* The version of the bot that the custom vocabulary
* was removed from.
*/
var botVersion: kotlin.String? = null
/**
* The status of removing the custom vocabulary.
*/
var customVocabularyStatus: aws.sdk.kotlin.services.lexmodelsv2.model.CustomVocabularyStatus? = null
/**
* The locale identifier for the locale that the
* custom vocabulary was removed from.
*/
var localeId: kotlin.String? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lexmodelsv2.model.DeleteCustomVocabularyResponse) : this() {
this.botId = x.botId
this.botVersion = x.botVersion
this.customVocabularyStatus = x.customVocabularyStatus
this.localeId = x.localeId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lexmodelsv2.model.DeleteCustomVocabularyResponse = DeleteCustomVocabularyResponse(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy