
aws.sdk.kotlin.services.lexmodelsv2.model.BuildBotLocaleResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lexmodelsv2.model
import aws.smithy.kotlin.runtime.time.Instant
class BuildBotLocaleResponse private constructor(builder: Builder) {
/**
* The identifier of the specified bot.
*/
val botId: kotlin.String? = builder.botId
/**
* The bot's build status. When the status is
* ReadyExpressTesting you can test the bot using the
* utterances defined for the intents and slot types. When the status is
* Built, the bot is ready for use and can be tested using
* any utterance.
*/
val botLocaleStatus: aws.sdk.kotlin.services.lexmodelsv2.model.BotLocaleStatus? = builder.botLocaleStatus
/**
* The version of the bot that was built. This is only the draft
* version of the bot.
*/
val botVersion: kotlin.String? = builder.botVersion
/**
* A timestamp indicating the date and time that the bot was last built
* for this locale.
*/
val lastBuildSubmittedDateTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastBuildSubmittedDateTime
/**
* The language and locale specified of where the bot can be
* used.
*/
val localeId: kotlin.String? = builder.localeId
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lexmodelsv2.model.BuildBotLocaleResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BuildBotLocaleResponse(")
append("botId=$botId,")
append("botLocaleStatus=$botLocaleStatus,")
append("botVersion=$botVersion,")
append("lastBuildSubmittedDateTime=$lastBuildSubmittedDateTime,")
append("localeId=$localeId)")
}
override fun hashCode(): kotlin.Int {
var result = botId?.hashCode() ?: 0
result = 31 * result + (botLocaleStatus?.hashCode() ?: 0)
result = 31 * result + (botVersion?.hashCode() ?: 0)
result = 31 * result + (lastBuildSubmittedDateTime?.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 BuildBotLocaleResponse
if (botId != other.botId) return false
if (botLocaleStatus != other.botLocaleStatus) return false
if (botVersion != other.botVersion) return false
if (lastBuildSubmittedDateTime != other.lastBuildSubmittedDateTime) return false
if (localeId != other.localeId) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lexmodelsv2.model.BuildBotLocaleResponse = Builder(this).apply(block).build()
class Builder {
/**
* The identifier of the specified bot.
*/
var botId: kotlin.String? = null
/**
* The bot's build status. When the status is
* ReadyExpressTesting you can test the bot using the
* utterances defined for the intents and slot types. When the status is
* Built, the bot is ready for use and can be tested using
* any utterance.
*/
var botLocaleStatus: aws.sdk.kotlin.services.lexmodelsv2.model.BotLocaleStatus? = null
/**
* The version of the bot that was built. This is only the draft
* version of the bot.
*/
var botVersion: kotlin.String? = null
/**
* A timestamp indicating the date and time that the bot was last built
* for this locale.
*/
var lastBuildSubmittedDateTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The language and locale specified of where the bot can be
* used.
*/
var localeId: kotlin.String? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lexmodelsv2.model.BuildBotLocaleResponse) : this() {
this.botId = x.botId
this.botLocaleStatus = x.botLocaleStatus
this.botVersion = x.botVersion
this.lastBuildSubmittedDateTime = x.lastBuildSubmittedDateTime
this.localeId = x.localeId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lexmodelsv2.model.BuildBotLocaleResponse = BuildBotLocaleResponse(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy