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

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

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

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



public class CreateThingGroupResponse private constructor(builder: Builder) {
    /**
     * The thing group ARN.
     */
    public val thingGroupArn: kotlin.String? = builder.thingGroupArn
    /**
     * The thing group ID.
     */
    public val thingGroupId: kotlin.String? = builder.thingGroupId
    /**
     * The thing group name.
     */
    public val thingGroupName: kotlin.String? = builder.thingGroupName

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

    override fun toString(): kotlin.String = buildString {
        append("CreateThingGroupResponse(")
        append("thingGroupArn=$thingGroupArn,")
        append("thingGroupId=$thingGroupId,")
        append("thingGroupName=$thingGroupName")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = thingGroupArn?.hashCode() ?: 0
        result = 31 * result + (thingGroupId?.hashCode() ?: 0)
        result = 31 * result + (thingGroupName?.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 CreateThingGroupResponse

        if (thingGroupArn != other.thingGroupArn) return false
        if (thingGroupId != other.thingGroupId) return false
        if (thingGroupName != other.thingGroupName) return false

        return true
    }

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

    public class Builder {
        /**
         * The thing group ARN.
         */
        public var thingGroupArn: kotlin.String? = null
        /**
         * The thing group ID.
         */
        public var thingGroupId: kotlin.String? = null
        /**
         * The thing group name.
         */
        public var thingGroupName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iot.model.CreateThingGroupResponse) : this() {
            this.thingGroupArn = x.thingGroupArn
            this.thingGroupId = x.thingGroupId
            this.thingGroupName = x.thingGroupName
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy