
commonMain.aws.sdk.kotlin.services.kendra.model.SuggestableConfig.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kendra.model
/**
* Provides the configuration information for a document field/attribute that you want to base query suggestions on.
*/
public class SuggestableConfig private constructor(builder: Builder) {
/**
* The name of the document field/attribute.
*/
public val attributeName: kotlin.String? = builder.attributeName
/**
* `TRUE` means the document field/attribute is suggestible, so the contents within the field can be used for query suggestions.
*/
public val suggestable: kotlin.Boolean? = builder.suggestable
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kendra.model.SuggestableConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SuggestableConfig(")
append("attributeName=$attributeName,")
append("suggestable=$suggestable")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = attributeName?.hashCode() ?: 0
result = 31 * result + (suggestable?.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 SuggestableConfig
if (attributeName != other.attributeName) return false
if (suggestable != other.suggestable) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kendra.model.SuggestableConfig = Builder(this).apply(block).build()
public class Builder {
/**
* The name of the document field/attribute.
*/
public var attributeName: kotlin.String? = null
/**
* `TRUE` means the document field/attribute is suggestible, so the contents within the field can be used for query suggestions.
*/
public var suggestable: kotlin.Boolean? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kendra.model.SuggestableConfig) : this() {
this.attributeName = x.attributeName
this.suggestable = x.suggestable
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kendra.model.SuggestableConfig = SuggestableConfig(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy