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

commonMain.aws.sdk.kotlin.services.iot.model.DescribeIndexResponse.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 DescribeIndexResponse private constructor(builder: Builder) {
    /**
     * The index name.
     */
    public val indexName: kotlin.String? = builder.indexName
    /**
     * The index status.
     */
    public val indexStatus: aws.sdk.kotlin.services.iot.model.IndexStatus? = builder.indexStatus
    /**
     * Contains a value that specifies the type of indexing performed. Valid values are:
     * + REGISTRY – Your thing index contains only registry data.
     * + REGISTRY_AND_SHADOW - Your thing index contains registry data and shadow data.
     * + REGISTRY_AND_CONNECTIVITY_STATUS - Your thing index contains registry data and thing connectivity status data.
     * + REGISTRY_AND_SHADOW_AND_CONNECTIVITY_STATUS - Your thing index contains registry data, shadow data, and thing connectivity status data.
     * + MULTI_INDEXING_MODE - Your thing index contains multiple data sources. For more information, see [GetIndexingConfiguration](https://docs.aws.amazon.com/iot/latest/apireference/API_GetIndexingConfiguration.html).
     */
    public val schema: kotlin.String? = builder.schema

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeIndexResponse(")
        append("indexName=$indexName,")
        append("indexStatus=$indexStatus,")
        append("schema=$schema")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = indexName?.hashCode() ?: 0
        result = 31 * result + (indexStatus?.hashCode() ?: 0)
        result = 31 * result + (schema?.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 DescribeIndexResponse

        if (indexName != other.indexName) return false
        if (indexStatus != other.indexStatus) return false
        if (schema != other.schema) return false

        return true
    }

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

    public class Builder {
        /**
         * The index name.
         */
        public var indexName: kotlin.String? = null
        /**
         * The index status.
         */
        public var indexStatus: aws.sdk.kotlin.services.iot.model.IndexStatus? = null
        /**
         * Contains a value that specifies the type of indexing performed. Valid values are:
         * + REGISTRY – Your thing index contains only registry data.
         * + REGISTRY_AND_SHADOW - Your thing index contains registry data and shadow data.
         * + REGISTRY_AND_CONNECTIVITY_STATUS - Your thing index contains registry data and thing connectivity status data.
         * + REGISTRY_AND_SHADOW_AND_CONNECTIVITY_STATUS - Your thing index contains registry data, shadow data, and thing connectivity status data.
         * + MULTI_INDEXING_MODE - Your thing index contains multiple data sources. For more information, see [GetIndexingConfiguration](https://docs.aws.amazon.com/iot/latest/apireference/API_GetIndexingConfiguration.html).
         */
        public var schema: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iot.model.DescribeIndexResponse) : this() {
            this.indexName = x.indexName
            this.indexStatus = x.indexStatus
            this.schema = x.schema
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy