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

commonMain.aws.sdk.kotlin.services.iot.model.SearchIndexResponse.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.iot.model



public class SearchIndexResponse private constructor(builder: Builder) {
    /**
     * The token used to get the next set of results, or `null` if there are no additional results.
     */
    public val nextToken: kotlin.String? = builder.nextToken
    /**
     * The thing groups that match the search query.
     */
    public val thingGroups: List? = builder.thingGroups
    /**
     * The things that match the search query.
     */
    public val things: List? = builder.things

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

    override fun toString(): kotlin.String = buildString {
        append("SearchIndexResponse(")
        append("nextToken=$nextToken,")
        append("thingGroups=$thingGroups,")
        append("things=$things")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = nextToken?.hashCode() ?: 0
        result = 31 * result + (thingGroups?.hashCode() ?: 0)
        result = 31 * result + (things?.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 SearchIndexResponse

        if (nextToken != other.nextToken) return false
        if (thingGroups != other.thingGroups) return false
        if (things != other.things) return false

        return true
    }

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

    public class Builder {
        /**
         * The token used to get the next set of results, or `null` if there are no additional results.
         */
        public var nextToken: kotlin.String? = null
        /**
         * The thing groups that match the search query.
         */
        public var thingGroups: List? = null
        /**
         * The things that match the search query.
         */
        public var things: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iot.model.SearchIndexResponse) : this() {
            this.nextToken = x.nextToken
            this.thingGroups = x.thingGroups
            this.things = x.things
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.iot.model.SearchIndexResponse = SearchIndexResponse(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy