aws.sdk.kotlin.services.sagemaker.model.SuggestionQuery.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sagemaker.model
/**
* Specified in the GetSearchSuggestions request.
* Limits the property names that are included in the response.
*/
class SuggestionQuery private constructor(builder: BuilderImpl) {
/**
* Defines a property name hint. Only property
* names that begin with the specified hint are included in the response.
*/
val propertyNameQuery: PropertyNameQuery? = builder.propertyNameQuery
companion object {
@JvmStatic
fun fluentBuilder(): FluentBuilder = BuilderImpl()
internal fun builder(): DslBuilder = BuilderImpl()
operator fun invoke(block: DslBuilder.() -> kotlin.Unit): SuggestionQuery = BuilderImpl().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SuggestionQuery(")
append("propertyNameQuery=$propertyNameQuery)")
}
override fun hashCode(): kotlin.Int {
var result = propertyNameQuery?.hashCode() ?: 0
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (javaClass != other?.javaClass) return false
other as SuggestionQuery
if (propertyNameQuery != other.propertyNameQuery) return false
return true
}
fun copy(block: DslBuilder.() -> kotlin.Unit = {}): SuggestionQuery = BuilderImpl(this).apply(block).build()
interface FluentBuilder {
fun build(): SuggestionQuery
/**
* Defines a property name hint. Only property
* names that begin with the specified hint are included in the response.
*/
fun propertyNameQuery(propertyNameQuery: PropertyNameQuery): FluentBuilder
}
interface DslBuilder {
/**
* Defines a property name hint. Only property
* names that begin with the specified hint are included in the response.
*/
var propertyNameQuery: PropertyNameQuery?
fun build(): SuggestionQuery
/**
* construct an [aws.sdk.kotlin.services.sagemaker.model.PropertyNameQuery] inside the given [block]
*/
fun propertyNameQuery(block: PropertyNameQuery.DslBuilder.() -> kotlin.Unit) {
this.propertyNameQuery = PropertyNameQuery.invoke(block)
}
}
private class BuilderImpl() : FluentBuilder, DslBuilder {
override var propertyNameQuery: PropertyNameQuery? = null
constructor(x: SuggestionQuery) : this() {
this.propertyNameQuery = x.propertyNameQuery
}
override fun build(): SuggestionQuery = SuggestionQuery(this)
override fun propertyNameQuery(propertyNameQuery: PropertyNameQuery): FluentBuilder = apply { this.propertyNameQuery = propertyNameQuery }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy