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

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

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

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



public class DescribeThingGroupResponse private constructor(builder: Builder) {
    /**
     * The dynamic thing group index name.
     */
    public val indexName: kotlin.String? = builder.indexName
    /**
     * The dynamic thing group search query string.
     */
    public val queryString: kotlin.String? = builder.queryString
    /**
     * The dynamic thing group query version.
     */
    public val queryVersion: kotlin.String? = builder.queryVersion
    /**
     * The dynamic thing group status.
     */
    public val status: aws.sdk.kotlin.services.iot.model.DynamicGroupStatus? = builder.status
    /**
     * The thing group ARN.
     */
    public val thingGroupArn: kotlin.String? = builder.thingGroupArn
    /**
     * The thing group ID.
     */
    public val thingGroupId: kotlin.String? = builder.thingGroupId
    /**
     * Thing group metadata.
     */
    public val thingGroupMetadata: aws.sdk.kotlin.services.iot.model.ThingGroupMetadata? = builder.thingGroupMetadata
    /**
     * The name of the thing group.
     */
    public val thingGroupName: kotlin.String? = builder.thingGroupName
    /**
     * The thing group properties.
     */
    public val thingGroupProperties: aws.sdk.kotlin.services.iot.model.ThingGroupProperties? = builder.thingGroupProperties
    /**
     * The version of the thing group.
     */
    public val version: kotlin.Long = builder.version

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeThingGroupResponse(")
        append("indexName=$indexName,")
        append("queryString=$queryString,")
        append("queryVersion=$queryVersion,")
        append("status=$status,")
        append("thingGroupArn=$thingGroupArn,")
        append("thingGroupId=$thingGroupId,")
        append("thingGroupMetadata=$thingGroupMetadata,")
        append("thingGroupName=$thingGroupName,")
        append("thingGroupProperties=$thingGroupProperties,")
        append("version=$version")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = indexName?.hashCode() ?: 0
        result = 31 * result + (queryString?.hashCode() ?: 0)
        result = 31 * result + (queryVersion?.hashCode() ?: 0)
        result = 31 * result + (status?.hashCode() ?: 0)
        result = 31 * result + (thingGroupArn?.hashCode() ?: 0)
        result = 31 * result + (thingGroupId?.hashCode() ?: 0)
        result = 31 * result + (thingGroupMetadata?.hashCode() ?: 0)
        result = 31 * result + (thingGroupName?.hashCode() ?: 0)
        result = 31 * result + (thingGroupProperties?.hashCode() ?: 0)
        result = 31 * result + (version.hashCode())
        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 DescribeThingGroupResponse

        if (indexName != other.indexName) return false
        if (queryString != other.queryString) return false
        if (queryVersion != other.queryVersion) return false
        if (status != other.status) return false
        if (thingGroupArn != other.thingGroupArn) return false
        if (thingGroupId != other.thingGroupId) return false
        if (thingGroupMetadata != other.thingGroupMetadata) return false
        if (thingGroupName != other.thingGroupName) return false
        if (thingGroupProperties != other.thingGroupProperties) return false
        if (version != other.version) return false

        return true
    }

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

    public class Builder {
        /**
         * The dynamic thing group index name.
         */
        public var indexName: kotlin.String? = null
        /**
         * The dynamic thing group search query string.
         */
        public var queryString: kotlin.String? = null
        /**
         * The dynamic thing group query version.
         */
        public var queryVersion: kotlin.String? = null
        /**
         * The dynamic thing group status.
         */
        public var status: aws.sdk.kotlin.services.iot.model.DynamicGroupStatus? = null
        /**
         * The thing group ARN.
         */
        public var thingGroupArn: kotlin.String? = null
        /**
         * The thing group ID.
         */
        public var thingGroupId: kotlin.String? = null
        /**
         * Thing group metadata.
         */
        public var thingGroupMetadata: aws.sdk.kotlin.services.iot.model.ThingGroupMetadata? = null
        /**
         * The name of the thing group.
         */
        public var thingGroupName: kotlin.String? = null
        /**
         * The thing group properties.
         */
        public var thingGroupProperties: aws.sdk.kotlin.services.iot.model.ThingGroupProperties? = null
        /**
         * The version of the thing group.
         */
        public var version: kotlin.Long = 0L

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iot.model.DescribeThingGroupResponse) : this() {
            this.indexName = x.indexName
            this.queryString = x.queryString
            this.queryVersion = x.queryVersion
            this.status = x.status
            this.thingGroupArn = x.thingGroupArn
            this.thingGroupId = x.thingGroupId
            this.thingGroupMetadata = x.thingGroupMetadata
            this.thingGroupName = x.thingGroupName
            this.thingGroupProperties = x.thingGroupProperties
            this.version = x.version
        }

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

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

        /**
         * 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