commonMain.aws.sdk.kotlin.services.lexmodelbuildingservice.model.BotMetadata.kt Maven / Gradle / Ivy
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lexmodelbuildingservice.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* Provides information about a bot. .
*/
public class BotMetadata private constructor(builder: Builder) {
/**
* The date that the bot was created.
*/
public val createdDate: aws.smithy.kotlin.runtime.time.Instant? = builder.createdDate
/**
* A description of the bot.
*/
public val description: kotlin.String? = builder.description
/**
* The date that the bot was updated. When you create a bot, the creation date and last updated date are the same.
*/
public val lastUpdatedDate: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdatedDate
/**
* The name of the bot.
*/
public val name: kotlin.String? = builder.name
/**
* The status of the bot.
*/
public val status: aws.sdk.kotlin.services.lexmodelbuildingservice.model.Status? = builder.status
/**
* The version of the bot. For a new bot, the version is always `$LATEST`.
*/
public val version: kotlin.String? = builder.version
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lexmodelbuildingservice.model.BotMetadata = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BotMetadata(")
append("createdDate=$createdDate,")
append("description=$description,")
append("lastUpdatedDate=$lastUpdatedDate,")
append("name=$name,")
append("status=$status,")
append("version=$version")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = createdDate?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (lastUpdatedDate?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (version?.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 BotMetadata
if (createdDate != other.createdDate) return false
if (description != other.description) return false
if (lastUpdatedDate != other.lastUpdatedDate) return false
if (name != other.name) return false
if (status != other.status) return false
if (version != other.version) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lexmodelbuildingservice.model.BotMetadata = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The date that the bot was created.
*/
public var createdDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* A description of the bot.
*/
public var description: kotlin.String? = null
/**
* The date that the bot was updated. When you create a bot, the creation date and last updated date are the same.
*/
public var lastUpdatedDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The name of the bot.
*/
public var name: kotlin.String? = null
/**
* The status of the bot.
*/
public var status: aws.sdk.kotlin.services.lexmodelbuildingservice.model.Status? = null
/**
* The version of the bot. For a new bot, the version is always `$LATEST`.
*/
public var version: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lexmodelbuildingservice.model.BotMetadata) : this() {
this.createdDate = x.createdDate
this.description = x.description
this.lastUpdatedDate = x.lastUpdatedDate
this.name = x.name
this.status = x.status
this.version = x.version
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lexmodelbuildingservice.model.BotMetadata = BotMetadata(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy