commonMain.aws.sdk.kotlin.services.lexmodelbuildingservice.model.GetBotChannelAssociationResponse.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
public class GetBotChannelAssociationResponse private constructor(builder: Builder) {
/**
* An alias pointing to the specific version of the Amazon Lex bot to which this association is being made.
*/
public val botAlias: kotlin.String? = builder.botAlias
/**
* Provides information that the messaging platform needs to communicate with the Amazon Lex bot.
*/
public val botConfiguration: Map? = builder.botConfiguration
/**
* The name of the Amazon Lex bot.
*/
public val botName: kotlin.String? = builder.botName
/**
* The date that the association between the bot and the channel was created.
*/
public val createdDate: aws.smithy.kotlin.runtime.time.Instant? = builder.createdDate
/**
* A description of the association between the bot and the channel.
*/
public val description: kotlin.String? = builder.description
/**
* If `status` is `FAILED`, Amazon Lex provides the reason that it failed to create the association.
*/
public val failureReason: kotlin.String? = builder.failureReason
/**
* The name of the association between the bot and the channel.
*/
public val name: kotlin.String? = builder.name
/**
* The status of the bot channel.
* + `CREATED` - The channel has been created and is ready for use.
* + `IN_PROGRESS` - Channel creation is in progress.
* + `FAILED` - There was an error creating the channel. For information about the reason for the failure, see the `failureReason` field.
*/
public val status: aws.sdk.kotlin.services.lexmodelbuildingservice.model.ChannelStatus? = builder.status
/**
* The type of the messaging platform.
*/
public val type: aws.sdk.kotlin.services.lexmodelbuildingservice.model.ChannelType? = builder.type
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lexmodelbuildingservice.model.GetBotChannelAssociationResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetBotChannelAssociationResponse(")
append("botAlias=$botAlias,")
append("botConfiguration=*** Sensitive Data Redacted ***,")
append("botName=$botName,")
append("createdDate=$createdDate,")
append("description=$description,")
append("failureReason=$failureReason,")
append("name=$name,")
append("status=$status,")
append("type=$type")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = botAlias?.hashCode() ?: 0
result = 31 * result + (botConfiguration?.hashCode() ?: 0)
result = 31 * result + (botName?.hashCode() ?: 0)
result = 31 * result + (createdDate?.hashCode() ?: 0)
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (failureReason?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (type?.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 GetBotChannelAssociationResponse
if (botAlias != other.botAlias) return false
if (botConfiguration != other.botConfiguration) return false
if (botName != other.botName) return false
if (createdDate != other.createdDate) return false
if (description != other.description) return false
if (failureReason != other.failureReason) return false
if (name != other.name) return false
if (status != other.status) return false
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lexmodelbuildingservice.model.GetBotChannelAssociationResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* An alias pointing to the specific version of the Amazon Lex bot to which this association is being made.
*/
public var botAlias: kotlin.String? = null
/**
* Provides information that the messaging platform needs to communicate with the Amazon Lex bot.
*/
public var botConfiguration: Map? = null
/**
* The name of the Amazon Lex bot.
*/
public var botName: kotlin.String? = null
/**
* The date that the association between the bot and the channel was created.
*/
public var createdDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* A description of the association between the bot and the channel.
*/
public var description: kotlin.String? = null
/**
* If `status` is `FAILED`, Amazon Lex provides the reason that it failed to create the association.
*/
public var failureReason: kotlin.String? = null
/**
* The name of the association between the bot and the channel.
*/
public var name: kotlin.String? = null
/**
* The status of the bot channel.
* + `CREATED` - The channel has been created and is ready for use.
* + `IN_PROGRESS` - Channel creation is in progress.
* + `FAILED` - There was an error creating the channel. For information about the reason for the failure, see the `failureReason` field.
*/
public var status: aws.sdk.kotlin.services.lexmodelbuildingservice.model.ChannelStatus? = null
/**
* The type of the messaging platform.
*/
public var type: aws.sdk.kotlin.services.lexmodelbuildingservice.model.ChannelType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lexmodelbuildingservice.model.GetBotChannelAssociationResponse) : this() {
this.botAlias = x.botAlias
this.botConfiguration = x.botConfiguration
this.botName = x.botName
this.createdDate = x.createdDate
this.description = x.description
this.failureReason = x.failureReason
this.name = x.name
this.status = x.status
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lexmodelbuildingservice.model.GetBotChannelAssociationResponse = GetBotChannelAssociationResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy