All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.cloudsearch.model.DeleteSuggesterResponse.kt Maven / Gradle / Ivy

There is a newer version: 1.3.99
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.cloudsearch.model



/**
 * The result of a `DeleteSuggester` request. Contains the status of the deleted suggester.
 */
public class DeleteSuggesterResponse private constructor(builder: Builder) {
    /**
     * The status of the suggester being deleted.
     */
    public val suggester: aws.sdk.kotlin.services.cloudsearch.model.SuggesterStatus? = builder.suggester

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cloudsearch.model.DeleteSuggesterResponse = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("DeleteSuggesterResponse(")
        append("suggester=$suggester")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = suggester?.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 DeleteSuggesterResponse

        if (suggester != other.suggester) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cloudsearch.model.DeleteSuggesterResponse = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The status of the suggester being deleted.
         */
        public var suggester: aws.sdk.kotlin.services.cloudsearch.model.SuggesterStatus? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.cloudsearch.model.DeleteSuggesterResponse) : this() {
            this.suggester = x.suggester
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.cloudsearch.model.DeleteSuggesterResponse = DeleteSuggesterResponse(this)

        /**
         * construct an [aws.sdk.kotlin.services.cloudsearch.model.SuggesterStatus] inside the given [block]
         */
        public fun suggester(block: aws.sdk.kotlin.services.cloudsearch.model.SuggesterStatus.Builder.() -> kotlin.Unit) {
            this.suggester = aws.sdk.kotlin.services.cloudsearch.model.SuggesterStatus.invoke(block)
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy