commonMain.aws.sdk.kotlin.services.lexruntimeservice.model.IntentConfidence.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lexruntimeservice-jvm Show documentation
Show all versions of lexruntimeservice-jvm Show documentation
The AWS Kotlin client for Lex Runtime Service
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lexruntimeservice.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Provides a score that indicates the confidence that Amazon Lex has that an intent is the one that satisfies the user's intent.
*/
public class IntentConfidence private constructor(builder: Builder) {
/**
* A score that indicates how confident Amazon Lex is that an intent satisfies the user's intent. Ranges between 0.00 and 1.00. Higher scores indicate higher confidence.
*/
public val score: kotlin.Double = builder.score
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lexruntimeservice.model.IntentConfidence = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("IntentConfidence(")
append("score=$score")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = score.hashCode()
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 IntentConfidence
if (!(score?.equals(other.score) ?: (other.score == null))) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lexruntimeservice.model.IntentConfidence = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A score that indicates how confident Amazon Lex is that an intent satisfies the user's intent. Ranges between 0.00 and 1.00. Higher scores indicate higher confidence.
*/
public var score: kotlin.Double = 0.0
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lexruntimeservice.model.IntentConfidence) : this() {
this.score = x.score
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lexruntimeservice.model.IntentConfidence = IntentConfidence(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy