
commonMain.aws.sdk.kotlin.services.lexruntimev2.model.RuntimeHintDetails.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
/**
* Provides an array of phrases that should be given preference when resolving values for a slot.
*/
public class RuntimeHintDetails private constructor(builder: Builder) {
/**
* One or more strings that Amazon Lex V2 should look for in the input to the bot. Each phrase is given preference when deciding on slot values.
*/
public val runtimeHintValues: List? = builder.runtimeHintValues
/**
* A map of constituent sub slot names inside a composite slot in the intent and the phrases that should be added for each sub slot. Inside each composite slot hints, this structure provides a mechanism to add granular sub slot phrases. Only sub slot hints are supported for composite slots. The intent name, composite slot name and the constituent sub slot names must exist.
*/
public val subSlotHints: Map? = builder.subSlotHints
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lexruntimev2.model.RuntimeHintDetails = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RuntimeHintDetails(")
append("runtimeHintValues=$runtimeHintValues,")
append("subSlotHints=$subSlotHints")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = runtimeHintValues?.hashCode() ?: 0
result = 31 * result + (subSlotHints?.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 RuntimeHintDetails
if (runtimeHintValues != other.runtimeHintValues) return false
if (subSlotHints != other.subSlotHints) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lexruntimev2.model.RuntimeHintDetails = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* One or more strings that Amazon Lex V2 should look for in the input to the bot. Each phrase is given preference when deciding on slot values.
*/
public var runtimeHintValues: List? = null
/**
* A map of constituent sub slot names inside a composite slot in the intent and the phrases that should be added for each sub slot. Inside each composite slot hints, this structure provides a mechanism to add granular sub slot phrases. Only sub slot hints are supported for composite slots. The intent name, composite slot name and the constituent sub slot names must exist.
*/
public var subSlotHints: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lexruntimev2.model.RuntimeHintDetails) : this() {
this.runtimeHintValues = x.runtimeHintValues
this.subSlotHints = x.subSlotHints
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lexruntimev2.model.RuntimeHintDetails = RuntimeHintDetails(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy