
commonMain.aws.sdk.kotlin.services.kendra.model.AttributeSuggestionsDescribeConfig.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kendra.model
/**
* Gets information on the configuration of document fields/attributes that you want to base query suggestions on. To change your configuration, use [AttributeSuggestionsUpdateConfig](https://docs.aws.amazon.com/kendra/latest/dg/API_AttributeSuggestionsUpdateConfig.html) and then call [UpdateQuerySuggestionsConfig](https://docs.aws.amazon.com/kendra/latest/dg/API_UpdateQuerySuggestionsConfig.html).
*/
public class AttributeSuggestionsDescribeConfig private constructor(builder: Builder) {
/**
* The mode is set to either `ACTIVE` or `INACTIVE`. If the `Mode` for query history is set to `ENABLED` when calling [UpdateQuerySuggestionsConfig](https://docs.aws.amazon.com/kendra/latest/dg/API_UpdateQuerySuggestionsConfig.html) and `AttributeSuggestionsMode` to use fields/attributes is set to `ACTIVE`, and you haven't set your `SuggestionTypes` preference to `DOCUMENT_ATTRIBUTES`, then Amazon Kendra uses the query history.
*/
public val attributeSuggestionsMode: aws.sdk.kotlin.services.kendra.model.AttributeSuggestionsMode? = builder.attributeSuggestionsMode
/**
* The list of fields/attributes that you want to set as suggestible for query suggestions.
*/
public val suggestableConfigList: List? = builder.suggestableConfigList
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kendra.model.AttributeSuggestionsDescribeConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AttributeSuggestionsDescribeConfig(")
append("attributeSuggestionsMode=$attributeSuggestionsMode,")
append("suggestableConfigList=$suggestableConfigList")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = attributeSuggestionsMode?.hashCode() ?: 0
result = 31 * result + (suggestableConfigList?.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 AttributeSuggestionsDescribeConfig
if (attributeSuggestionsMode != other.attributeSuggestionsMode) return false
if (suggestableConfigList != other.suggestableConfigList) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kendra.model.AttributeSuggestionsDescribeConfig = Builder(this).apply(block).build()
public class Builder {
/**
* The mode is set to either `ACTIVE` or `INACTIVE`. If the `Mode` for query history is set to `ENABLED` when calling [UpdateQuerySuggestionsConfig](https://docs.aws.amazon.com/kendra/latest/dg/API_UpdateQuerySuggestionsConfig.html) and `AttributeSuggestionsMode` to use fields/attributes is set to `ACTIVE`, and you haven't set your `SuggestionTypes` preference to `DOCUMENT_ATTRIBUTES`, then Amazon Kendra uses the query history.
*/
public var attributeSuggestionsMode: aws.sdk.kotlin.services.kendra.model.AttributeSuggestionsMode? = null
/**
* The list of fields/attributes that you want to set as suggestible for query suggestions.
*/
public var suggestableConfigList: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kendra.model.AttributeSuggestionsDescribeConfig) : this() {
this.attributeSuggestionsMode = x.attributeSuggestionsMode
this.suggestableConfigList = x.suggestableConfigList
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kendra.model.AttributeSuggestionsDescribeConfig = AttributeSuggestionsDescribeConfig(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy