commonMain.aws.sdk.kotlin.services.lexmodelbuildingservice.model.GetBotAliasResponse.kt Maven / Gradle / Ivy
// 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
public class GetBotAliasResponse private constructor(builder: Builder) {
/**
* The name of the bot that the alias points to.
*/
public val botName: kotlin.String? = builder.botName
/**
* The version of the bot that the alias points to.
*/
public val botVersion: kotlin.String? = builder.botVersion
/**
* Checksum of the bot alias.
*/
public val checksum: kotlin.String? = builder.checksum
/**
* The settings that determine how Amazon Lex uses conversation logs for the alias.
*/
public val conversationLogs: aws.sdk.kotlin.services.lexmodelbuildingservice.model.ConversationLogsResponse? = builder.conversationLogs
/**
* The date that the bot alias was created.
*/
public val createdDate: aws.smithy.kotlin.runtime.time.Instant? = builder.createdDate
/**
* A description of the bot alias.
*/
public val description: kotlin.String? = builder.description
/**
* The date that the bot alias was updated. When you create a resource, the creation date and the last updated date are the same.
*/
public val lastUpdatedDate: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdatedDate
/**
* The name of the bot alias.
*/
public val name: kotlin.String? = builder.name
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lexmodelbuildingservice.model.GetBotAliasResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetBotAliasResponse(")
append("botName=$botName,")
append("botVersion=$botVersion,")
append("checksum=$checksum,")
append("conversationLogs=$conversationLogs,")
append("createdDate=$createdDate,")
append("description=$description,")
append("lastUpdatedDate=$lastUpdatedDate,")
append("name=$name")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = botName?.hashCode() ?: 0
result = 31 * result + (botVersion?.hashCode() ?: 0)
result = 31 * result + (checksum?.hashCode() ?: 0)
result = 31 * result + (conversationLogs?.hashCode() ?: 0)
result = 31 * result + (createdDate?.hashCode() ?: 0)
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (lastUpdatedDate?.hashCode() ?: 0)
result = 31 * result + (name?.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 GetBotAliasResponse
if (botName != other.botName) return false
if (botVersion != other.botVersion) return false
if (checksum != other.checksum) return false
if (conversationLogs != other.conversationLogs) return false
if (createdDate != other.createdDate) return false
if (description != other.description) return false
if (lastUpdatedDate != other.lastUpdatedDate) return false
if (name != other.name) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lexmodelbuildingservice.model.GetBotAliasResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the bot that the alias points to.
*/
public var botName: kotlin.String? = null
/**
* The version of the bot that the alias points to.
*/
public var botVersion: kotlin.String? = null
/**
* Checksum of the bot alias.
*/
public var checksum: kotlin.String? = null
/**
* The settings that determine how Amazon Lex uses conversation logs for the alias.
*/
public var conversationLogs: aws.sdk.kotlin.services.lexmodelbuildingservice.model.ConversationLogsResponse? = null
/**
* The date that the bot alias was created.
*/
public var createdDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* A description of the bot alias.
*/
public var description: kotlin.String? = null
/**
* The date that the bot alias was updated. When you create a resource, the creation date and the last updated date are the same.
*/
public var lastUpdatedDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The name of the bot alias.
*/
public var name: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lexmodelbuildingservice.model.GetBotAliasResponse) : this() {
this.botName = x.botName
this.botVersion = x.botVersion
this.checksum = x.checksum
this.conversationLogs = x.conversationLogs
this.createdDate = x.createdDate
this.description = x.description
this.lastUpdatedDate = x.lastUpdatedDate
this.name = x.name
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lexmodelbuildingservice.model.GetBotAliasResponse = GetBotAliasResponse(this)
/**
* construct an [aws.sdk.kotlin.services.lexmodelbuildingservice.model.ConversationLogsResponse] inside the given [block]
*/
public fun conversationLogs(block: aws.sdk.kotlin.services.lexmodelbuildingservice.model.ConversationLogsResponse.Builder.() -> kotlin.Unit) {
this.conversationLogs = aws.sdk.kotlin.services.lexmodelbuildingservice.model.ConversationLogsResponse.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy