
commonMain.aws.sdk.kotlin.services.kendra.model.GetQuerySuggestionsResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kendra.model
public class GetQuerySuggestionsResponse private constructor(builder: Builder) {
/**
* The identifier for a list of query suggestions for an index.
*/
public val querySuggestionsId: kotlin.String? = builder.querySuggestionsId
/**
* A list of query suggestions for an index.
*/
public val suggestions: List? = builder.suggestions
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kendra.model.GetQuerySuggestionsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetQuerySuggestionsResponse(")
append("querySuggestionsId=$querySuggestionsId,")
append("suggestions=$suggestions")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = querySuggestionsId?.hashCode() ?: 0
result = 31 * result + (suggestions?.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 GetQuerySuggestionsResponse
if (querySuggestionsId != other.querySuggestionsId) return false
if (suggestions != other.suggestions) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kendra.model.GetQuerySuggestionsResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The identifier for a list of query suggestions for an index.
*/
public var querySuggestionsId: kotlin.String? = null
/**
* A list of query suggestions for an index.
*/
public var suggestions: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kendra.model.GetQuerySuggestionsResponse) : this() {
this.querySuggestionsId = x.querySuggestionsId
this.suggestions = x.suggestions
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kendra.model.GetQuerySuggestionsResponse = GetQuerySuggestionsResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy