commonMain.aws.sdk.kotlin.services.lexmodelbuildingservice.model.UtteranceData.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
/**
* Provides information about a single utterance that was made to your bot.
*/
public class UtteranceData private constructor(builder: Builder) {
/**
* The number of times that the utterance was processed.
*/
public val count: kotlin.Int? = builder.count
/**
* The total number of individuals that used the utterance.
*/
public val distinctUsers: kotlin.Int? = builder.distinctUsers
/**
* The date that the utterance was first recorded.
*/
public val firstUtteredDate: aws.smithy.kotlin.runtime.time.Instant? = builder.firstUtteredDate
/**
* The date that the utterance was last recorded.
*/
public val lastUtteredDate: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUtteredDate
/**
* The text that was entered by the user or the text representation of an audio clip.
*/
public val utteranceString: kotlin.String? = builder.utteranceString
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lexmodelbuildingservice.model.UtteranceData = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UtteranceData(")
append("count=$count,")
append("distinctUsers=$distinctUsers,")
append("firstUtteredDate=$firstUtteredDate,")
append("lastUtteredDate=$lastUtteredDate,")
append("utteranceString=$utteranceString")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = count ?: 0
result = 31 * result + (distinctUsers ?: 0)
result = 31 * result + (firstUtteredDate?.hashCode() ?: 0)
result = 31 * result + (lastUtteredDate?.hashCode() ?: 0)
result = 31 * result + (utteranceString?.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 UtteranceData
if (count != other.count) return false
if (distinctUsers != other.distinctUsers) return false
if (firstUtteredDate != other.firstUtteredDate) return false
if (lastUtteredDate != other.lastUtteredDate) return false
if (utteranceString != other.utteranceString) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lexmodelbuildingservice.model.UtteranceData = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The number of times that the utterance was processed.
*/
public var count: kotlin.Int? = null
/**
* The total number of individuals that used the utterance.
*/
public var distinctUsers: kotlin.Int? = null
/**
* The date that the utterance was first recorded.
*/
public var firstUtteredDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The date that the utterance was last recorded.
*/
public var lastUtteredDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The text that was entered by the user or the text representation of an audio clip.
*/
public var utteranceString: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lexmodelbuildingservice.model.UtteranceData) : this() {
this.count = x.count
this.distinctUsers = x.distinctUsers
this.firstUtteredDate = x.firstUtteredDate
this.lastUtteredDate = x.lastUtteredDate
this.utteranceString = x.utteranceString
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lexmodelbuildingservice.model.UtteranceData = UtteranceData(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy