
commonMain.aws.sdk.kotlin.services.lexruntimev2.model.RuntimeHintValue.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 the phrase that Amazon Lex V2 should look for in the user's input to the bot.
*/
public class RuntimeHintValue private constructor(builder: Builder) {
/**
* The phrase that Amazon Lex V2 should look for in the user's input to the bot.
*/
public val phrase: kotlin.String = requireNotNull(builder.phrase) { "A non-null value must be provided for phrase" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lexruntimev2.model.RuntimeHintValue = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RuntimeHintValue(")
append("phrase=$phrase")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = phrase.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 RuntimeHintValue
if (phrase != other.phrase) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lexruntimev2.model.RuntimeHintValue = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The phrase that Amazon Lex V2 should look for in the user's input to the bot.
*/
public var phrase: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lexruntimev2.model.RuntimeHintValue) : this() {
this.phrase = x.phrase
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lexruntimev2.model.RuntimeHintValue = RuntimeHintValue(this)
internal fun correctErrors(): Builder {
if (phrase == null) phrase = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy