commonMain.aws.sdk.kotlin.services.wisdom.model.QuickResponseSearchExpression.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wisdom-jvm Show documentation
Show all versions of wisdom-jvm Show documentation
The AWS SDK for Kotlin client for Wisdom
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.wisdom.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Information about the import job.
*/
public class QuickResponseSearchExpression private constructor(builder: Builder) {
/**
* The configuration of filtering rules applied to quick response query results.
*/
public val filters: List? = builder.filters
/**
* The quick response attribute fields on which the query results are ordered.
*/
public val orderOnField: aws.sdk.kotlin.services.wisdom.model.QuickResponseOrderField? = builder.orderOnField
/**
* The quick response query expressions.
*/
public val queries: List? = builder.queries
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.wisdom.model.QuickResponseSearchExpression = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("QuickResponseSearchExpression(")
append("filters=$filters,")
append("orderOnField=$orderOnField,")
append("queries=$queries")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = filters?.hashCode() ?: 0
result = 31 * result + (orderOnField?.hashCode() ?: 0)
result = 31 * result + (queries?.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 QuickResponseSearchExpression
if (filters != other.filters) return false
if (orderOnField != other.orderOnField) return false
if (queries != other.queries) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.wisdom.model.QuickResponseSearchExpression = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The configuration of filtering rules applied to quick response query results.
*/
public var filters: List? = null
/**
* The quick response attribute fields on which the query results are ordered.
*/
public var orderOnField: aws.sdk.kotlin.services.wisdom.model.QuickResponseOrderField? = null
/**
* The quick response query expressions.
*/
public var queries: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.wisdom.model.QuickResponseSearchExpression) : this() {
this.filters = x.filters
this.orderOnField = x.orderOnField
this.queries = x.queries
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.wisdom.model.QuickResponseSearchExpression = QuickResponseSearchExpression(this)
/**
* construct an [aws.sdk.kotlin.services.wisdom.model.QuickResponseOrderField] inside the given [block]
*/
public fun orderOnField(block: aws.sdk.kotlin.services.wisdom.model.QuickResponseOrderField.Builder.() -> kotlin.Unit) {
this.orderOnField = aws.sdk.kotlin.services.wisdom.model.QuickResponseOrderField.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}