
aws.sdk.kotlin.services.lexmodelsv2.model.DeleteCustomVocabularyRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lexmodelsv2.model
class DeleteCustomVocabularyRequest private constructor(builder: Builder) {
/**
* The unique identifier of the bot to remove the custom
* vocabulary from.
*/
val botId: kotlin.String? = builder.botId
/**
* The version of the bot to remove the custom vocabulary
* from.
*/
val botVersion: kotlin.String? = builder.botVersion
/**
* The locale identifier for the locale that contains the
* custom vocabulary to remove.
*/
val localeId: kotlin.String? = builder.localeId
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lexmodelsv2.model.DeleteCustomVocabularyRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteCustomVocabularyRequest(")
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 DeleteCustomVocabularyRequest
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.DeleteCustomVocabularyRequest = Builder(this).apply(block).build()
class Builder {
/**
* The unique identifier of the bot to remove the custom
* vocabulary from.
*/
var botId: kotlin.String? = null
/**
* The version of the bot to remove the custom vocabulary
* from.
*/
var botVersion: kotlin.String? = null
/**
* The locale identifier for the locale that contains the
* custom vocabulary to remove.
*/
var localeId: kotlin.String? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lexmodelsv2.model.DeleteCustomVocabularyRequest) : this() {
this.botId = x.botId
this.botVersion = x.botVersion
this.localeId = x.localeId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lexmodelsv2.model.DeleteCustomVocabularyRequest = DeleteCustomVocabularyRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy