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

commonMain.aws.sdk.kotlin.services.iot.model.UpdateDynamicThingGroupRequest.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.iot.model



public class UpdateDynamicThingGroupRequest private constructor(builder: Builder) {
    /**
     * The expected version of the dynamic thing group to update.
     */
    public val expectedVersion: kotlin.Long? = builder.expectedVersion
    /**
     * The dynamic thing group index to update.
     *
     * Currently one index is supported: `AWS_Things`.
     */
    public val indexName: kotlin.String? = builder.indexName
    /**
     * The dynamic thing group search query string to update.
     */
    public val queryString: kotlin.String? = builder.queryString
    /**
     * The dynamic thing group query version to update.
     *
     * Currently one query version is supported: "2017-09-30". If not specified, the query version defaults to this value.
     */
    public val queryVersion: kotlin.String? = builder.queryVersion
    /**
     * The name of the dynamic thing group to update.
     */
    public val thingGroupName: kotlin.String? = builder.thingGroupName
    /**
     * The dynamic thing group properties to update.
     */
    public val thingGroupProperties: aws.sdk.kotlin.services.iot.model.ThingGroupProperties? = builder.thingGroupProperties

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateDynamicThingGroupRequest(")
        append("expectedVersion=$expectedVersion,")
        append("indexName=$indexName,")
        append("queryString=$queryString,")
        append("queryVersion=$queryVersion,")
        append("thingGroupName=$thingGroupName,")
        append("thingGroupProperties=$thingGroupProperties")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = expectedVersion?.hashCode() ?: 0
        result = 31 * result + (indexName?.hashCode() ?: 0)
        result = 31 * result + (queryString?.hashCode() ?: 0)
        result = 31 * result + (queryVersion?.hashCode() ?: 0)
        result = 31 * result + (thingGroupName?.hashCode() ?: 0)
        result = 31 * result + (thingGroupProperties?.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 UpdateDynamicThingGroupRequest

        if (expectedVersion != other.expectedVersion) return false
        if (indexName != other.indexName) return false
        if (queryString != other.queryString) return false
        if (queryVersion != other.queryVersion) return false
        if (thingGroupName != other.thingGroupName) return false
        if (thingGroupProperties != other.thingGroupProperties) return false

        return true
    }

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

    public class Builder {
        /**
         * The expected version of the dynamic thing group to update.
         */
        public var expectedVersion: kotlin.Long? = null
        /**
         * The dynamic thing group index to update.
         *
         * Currently one index is supported: `AWS_Things`.
         */
        public var indexName: kotlin.String? = null
        /**
         * The dynamic thing group search query string to update.
         */
        public var queryString: kotlin.String? = null
        /**
         * The dynamic thing group query version to update.
         *
         * Currently one query version is supported: "2017-09-30". If not specified, the query version defaults to this value.
         */
        public var queryVersion: kotlin.String? = null
        /**
         * The name of the dynamic thing group to update.
         */
        public var thingGroupName: kotlin.String? = null
        /**
         * The dynamic thing group properties to update.
         */
        public var thingGroupProperties: aws.sdk.kotlin.services.iot.model.ThingGroupProperties? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iot.model.UpdateDynamicThingGroupRequest) : this() {
            this.expectedVersion = x.expectedVersion
            this.indexName = x.indexName
            this.queryString = x.queryString
            this.queryVersion = x.queryVersion
            this.thingGroupName = x.thingGroupName
            this.thingGroupProperties = x.thingGroupProperties
        }

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

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

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy