
aws.sdk.kotlin.services.lexmodelsv2.model.BotLocaleSummary.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
/**
* Summary information about bot locales returned by the ListBotLocales operation.
*/
class BotLocaleSummary private constructor(builder: Builder) {
/**
* The current status of the bot locale. When the status is
* Built the locale is ready for use.
*/
val botLocaleStatus: aws.sdk.kotlin.services.lexmodelsv2.model.BotLocaleStatus? = builder.botLocaleStatus
/**
* The description of the bot locale.
*/
val description: kotlin.String? = builder.description
/**
* A timestamp of the date and time that the bot locale was last
* built.
*/
val lastBuildSubmittedDateTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastBuildSubmittedDateTime
/**
* A timestamp of the date and time that the bot locale was last
* updated.
*/
val lastUpdatedDateTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdatedDateTime
/**
* The language and locale of the bot locale.
*/
val localeId: kotlin.String? = builder.localeId
/**
* The name of the bot locale.
*/
val localeName: kotlin.String? = builder.localeName
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lexmodelsv2.model.BotLocaleSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BotLocaleSummary(")
append("botLocaleStatus=$botLocaleStatus,")
append("description=$description,")
append("lastBuildSubmittedDateTime=$lastBuildSubmittedDateTime,")
append("lastUpdatedDateTime=$lastUpdatedDateTime,")
append("localeId=$localeId,")
append("localeName=$localeName)")
}
override fun hashCode(): kotlin.Int {
var result = botLocaleStatus?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (lastBuildSubmittedDateTime?.hashCode() ?: 0)
result = 31 * result + (lastUpdatedDateTime?.hashCode() ?: 0)
result = 31 * result + (localeId?.hashCode() ?: 0)
result = 31 * result + (localeName?.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 BotLocaleSummary
if (botLocaleStatus != other.botLocaleStatus) return false
if (description != other.description) return false
if (lastBuildSubmittedDateTime != other.lastBuildSubmittedDateTime) return false
if (lastUpdatedDateTime != other.lastUpdatedDateTime) return false
if (localeId != other.localeId) return false
if (localeName != other.localeName) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lexmodelsv2.model.BotLocaleSummary = Builder(this).apply(block).build()
class Builder {
/**
* The current status of the bot locale. When the status is
* Built the locale is ready for use.
*/
var botLocaleStatus: aws.sdk.kotlin.services.lexmodelsv2.model.BotLocaleStatus? = null
/**
* The description of the bot locale.
*/
var description: kotlin.String? = null
/**
* A timestamp of the date and time that the bot locale was last
* built.
*/
var lastBuildSubmittedDateTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* A timestamp of the date and time that the bot locale was last
* updated.
*/
var lastUpdatedDateTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The language and locale of the bot locale.
*/
var localeId: kotlin.String? = null
/**
* The name of the bot locale.
*/
var localeName: kotlin.String? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lexmodelsv2.model.BotLocaleSummary) : this() {
this.botLocaleStatus = x.botLocaleStatus
this.description = x.description
this.lastBuildSubmittedDateTime = x.lastBuildSubmittedDateTime
this.lastUpdatedDateTime = x.lastUpdatedDateTime
this.localeId = x.localeId
this.localeName = x.localeName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lexmodelsv2.model.BotLocaleSummary = BotLocaleSummary(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy