
commonMain.aws.sdk.kotlin.services.lexruntimev2.model.RecognizedBotMember.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lexruntimev2.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The bot member that processes the request.
*/
public class RecognizedBotMember private constructor(builder: Builder) {
/**
* The identifier of the bot member that processes the request.
*/
public val botId: kotlin.String = requireNotNull(builder.botId) { "A non-null value must be provided for botId" }
/**
* The name of the bot member that processes the request.
*/
public val botName: kotlin.String? = builder.botName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lexruntimev2.model.RecognizedBotMember = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RecognizedBotMember(")
append("botId=$botId,")
append("botName=$botName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = botId.hashCode()
result = 31 * result + (botName?.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 RecognizedBotMember
if (botId != other.botId) return false
if (botName != other.botName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lexruntimev2.model.RecognizedBotMember = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The identifier of the bot member that processes the request.
*/
public var botId: kotlin.String? = null
/**
* The name of the bot member that processes the request.
*/
public var botName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lexruntimev2.model.RecognizedBotMember) : this() {
this.botId = x.botId
this.botName = x.botName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lexruntimev2.model.RecognizedBotMember = RecognizedBotMember(this)
internal fun correctErrors(): Builder {
if (botId == null) botId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy