
commonMain.aws.sdk.kotlin.services.connect.model.DisassociateBotRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.connect.model
public class DisassociateBotRequest private constructor(builder: Builder) {
/**
* The identifier of the Amazon Connect instance. You can [find the instance ID](https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html) in the Amazon Resource Name (ARN) of the instance.
*/
public val instanceId: kotlin.String? = requireNotNull(builder.instanceId) { "A non-null value must be provided for instanceId" }
/**
* Configuration information of an Amazon Lex bot.
*/
public val lexBot: aws.sdk.kotlin.services.connect.model.LexBot? = builder.lexBot
/**
* The Amazon Lex V2 bot to disassociate from the instance.
*/
public val lexV2Bot: aws.sdk.kotlin.services.connect.model.LexV2Bot? = builder.lexV2Bot
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.connect.model.DisassociateBotRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DisassociateBotRequest(")
append("instanceId=$instanceId,")
append("lexBot=$lexBot,")
append("lexV2Bot=$lexV2Bot")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = instanceId?.hashCode() ?: 0
result = 31 * result + (lexBot?.hashCode() ?: 0)
result = 31 * result + (lexV2Bot?.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 DisassociateBotRequest
if (instanceId != other.instanceId) return false
if (lexBot != other.lexBot) return false
if (lexV2Bot != other.lexV2Bot) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.connect.model.DisassociateBotRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The identifier of the Amazon Connect instance. You can [find the instance ID](https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html) in the Amazon Resource Name (ARN) of the instance.
*/
public var instanceId: kotlin.String? = null
/**
* Configuration information of an Amazon Lex bot.
*/
public var lexBot: aws.sdk.kotlin.services.connect.model.LexBot? = null
/**
* The Amazon Lex V2 bot to disassociate from the instance.
*/
public var lexV2Bot: aws.sdk.kotlin.services.connect.model.LexV2Bot? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.connect.model.DisassociateBotRequest) : this() {
this.instanceId = x.instanceId
this.lexBot = x.lexBot
this.lexV2Bot = x.lexV2Bot
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.connect.model.DisassociateBotRequest = DisassociateBotRequest(this)
/**
* construct an [aws.sdk.kotlin.services.connect.model.LexBot] inside the given [block]
*/
public fun lexBot(block: aws.sdk.kotlin.services.connect.model.LexBot.Builder.() -> kotlin.Unit) {
this.lexBot = aws.sdk.kotlin.services.connect.model.LexBot.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.connect.model.LexV2Bot] inside the given [block]
*/
public fun lexV2Bot(block: aws.sdk.kotlin.services.connect.model.LexV2Bot.Builder.() -> kotlin.Unit) {
this.lexV2Bot = aws.sdk.kotlin.services.connect.model.LexV2Bot.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy