aws.sdk.kotlin.services.sagemaker.model.GetSearchSuggestionsRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sagemaker.model
class GetSearchSuggestionsRequest private constructor(builder: Builder) {
/**
* The name of the Amazon SageMaker resource to search for.
*/
val resource: aws.sdk.kotlin.services.sagemaker.model.ResourceType? = builder.resource
/**
* Limits the property names that are included in the response.
*/
val suggestionQuery: aws.sdk.kotlin.services.sagemaker.model.SuggestionQuery? = builder.suggestionQuery
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.sagemaker.model.GetSearchSuggestionsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetSearchSuggestionsRequest(")
append("resource=$resource,")
append("suggestionQuery=$suggestionQuery)")
}
override fun hashCode(): kotlin.Int {
var result = resource?.hashCode() ?: 0
result = 31 * result + (suggestionQuery?.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 GetSearchSuggestionsRequest
if (resource != other.resource) return false
if (suggestionQuery != other.suggestionQuery) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.sagemaker.model.GetSearchSuggestionsRequest = Builder(this).apply(block).build()
class Builder {
/**
* The name of the Amazon SageMaker resource to search for.
*/
var resource: aws.sdk.kotlin.services.sagemaker.model.ResourceType? = null
/**
* Limits the property names that are included in the response.
*/
var suggestionQuery: aws.sdk.kotlin.services.sagemaker.model.SuggestionQuery? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.sagemaker.model.GetSearchSuggestionsRequest) : this() {
this.resource = x.resource
this.suggestionQuery = x.suggestionQuery
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.sagemaker.model.GetSearchSuggestionsRequest = GetSearchSuggestionsRequest(this)
/**
* construct an [aws.sdk.kotlin.services.sagemaker.model.SuggestionQuery] inside the given [block]
*/
fun suggestionQuery(block: aws.sdk.kotlin.services.sagemaker.model.SuggestionQuery.Builder.() -> kotlin.Unit) {
this.suggestionQuery = aws.sdk.kotlin.services.sagemaker.model.SuggestionQuery.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy