aws.sdk.kotlin.services.sagemaker.model.GetSearchSuggestionsResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sagemaker.model
class GetSearchSuggestionsResponse private constructor(builder: BuilderImpl) {
/**
* A list of property names for a Resource that match a
* SuggestionQuery.
*/
val propertyNameSuggestions: List? = builder.propertyNameSuggestions
companion object {
@JvmStatic
fun fluentBuilder(): FluentBuilder = BuilderImpl()
internal fun builder(): DslBuilder = BuilderImpl()
operator fun invoke(block: DslBuilder.() -> kotlin.Unit): GetSearchSuggestionsResponse = BuilderImpl().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetSearchSuggestionsResponse(")
append("propertyNameSuggestions=$propertyNameSuggestions)")
}
override fun hashCode(): kotlin.Int {
var result = propertyNameSuggestions?.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 GetSearchSuggestionsResponse
if (propertyNameSuggestions != other.propertyNameSuggestions) return false
return true
}
fun copy(block: DslBuilder.() -> kotlin.Unit = {}): GetSearchSuggestionsResponse = BuilderImpl(this).apply(block).build()
interface FluentBuilder {
fun build(): GetSearchSuggestionsResponse
/**
* A list of property names for a Resource that match a
* SuggestionQuery.
*/
fun propertyNameSuggestions(propertyNameSuggestions: List): FluentBuilder
}
interface DslBuilder {
/**
* A list of property names for a Resource that match a
* SuggestionQuery.
*/
var propertyNameSuggestions: List?
fun build(): GetSearchSuggestionsResponse
}
private class BuilderImpl() : FluentBuilder, DslBuilder {
override var propertyNameSuggestions: List? = null
constructor(x: GetSearchSuggestionsResponse) : this() {
this.propertyNameSuggestions = x.propertyNameSuggestions
}
override fun build(): GetSearchSuggestionsResponse = GetSearchSuggestionsResponse(this)
override fun propertyNameSuggestions(propertyNameSuggestions: List): FluentBuilder = apply { this.propertyNameSuggestions = propertyNameSuggestions }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy