commonMain.aws.sdk.kotlin.services.cloudsearch.model.DescribeSuggestersRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloudsearch-jvm Show documentation
Show all versions of cloudsearch-jvm Show documentation
The AWS SDK for Kotlin client for CloudSearch
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cloudsearch.model
/**
* Container for the parameters to the `DescribeSuggester` operation. Specifies the name of the domain you want to describe. To restrict the response to particular suggesters, specify the names of the suggesters you want to describe. To show the active configuration and exclude any pending changes, set the `Deployed` option to `true`.
*/
public class DescribeSuggestersRequest private constructor(builder: Builder) {
/**
* Whether to display the deployed configuration (`true`) or include any pending changes (`false`). Defaults to `false`.
*/
public val deployed: kotlin.Boolean? = builder.deployed
/**
* The name of the domain you want to describe.
*/
public val domainName: kotlin.String? = builder.domainName
/**
* The suggesters you want to describe.
*/
public val suggesterNames: List? = builder.suggesterNames
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cloudsearch.model.DescribeSuggestersRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeSuggestersRequest(")
append("deployed=$deployed,")
append("domainName=$domainName,")
append("suggesterNames=$suggesterNames")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = deployed?.hashCode() ?: 0
result = 31 * result + (domainName?.hashCode() ?: 0)
result = 31 * result + (suggesterNames?.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 DescribeSuggestersRequest
if (deployed != other.deployed) return false
if (domainName != other.domainName) return false
if (suggesterNames != other.suggesterNames) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cloudsearch.model.DescribeSuggestersRequest = Builder(this).apply(block).build()
public class Builder {
/**
* Whether to display the deployed configuration (`true`) or include any pending changes (`false`). Defaults to `false`.
*/
public var deployed: kotlin.Boolean? = null
/**
* The name of the domain you want to describe.
*/
public var domainName: kotlin.String? = null
/**
* The suggesters you want to describe.
*/
public var suggesterNames: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cloudsearch.model.DescribeSuggestersRequest) : this() {
this.deployed = x.deployed
this.domainName = x.domainName
this.suggesterNames = x.suggesterNames
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cloudsearch.model.DescribeSuggestersRequest = DescribeSuggestersRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy