commonMain.aws.sdk.kotlin.services.lexmodelbuildingservice.model.GetUtterancesViewResponse.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
public class GetUtterancesViewResponse private constructor(builder: Builder) {
/**
* The name of the bot for which utterance information was returned.
*/
public val botName: kotlin.String? = builder.botName
/**
* An array of UtteranceList objects, each containing a list of UtteranceData objects describing the utterances that were processed by your bot. The response contains a maximum of 100 `UtteranceData` objects for each version. Amazon Lex returns the most frequent utterances received by the bot in the last 15 days.
*/
public val utterances: List? = builder.utterances
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lexmodelbuildingservice.model.GetUtterancesViewResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetUtterancesViewResponse(")
append("botName=$botName,")
append("utterances=$utterances")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = botName?.hashCode() ?: 0
result = 31 * result + (utterances?.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 GetUtterancesViewResponse
if (botName != other.botName) return false
if (utterances != other.utterances) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lexmodelbuildingservice.model.GetUtterancesViewResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the bot for which utterance information was returned.
*/
public var botName: kotlin.String? = null
/**
* An array of UtteranceList objects, each containing a list of UtteranceData objects describing the utterances that were processed by your bot. The response contains a maximum of 100 `UtteranceData` objects for each version. Amazon Lex returns the most frequent utterances received by the bot in the last 15 days.
*/
public var utterances: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lexmodelbuildingservice.model.GetUtterancesViewResponse) : this() {
this.botName = x.botName
this.utterances = x.utterances
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lexmodelbuildingservice.model.GetUtterancesViewResponse = GetUtterancesViewResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy