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

commonMain.aws.sdk.kotlin.services.iot1clickdevicesservice.model.FinalizeDeviceClaimRequest.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.iot1clickdevicesservice.model

import aws.smithy.kotlin.runtime.SdkDsl

public class FinalizeDeviceClaimRequest private constructor(builder: Builder) {
    /**
     * The unique identifier of the device.
     */
    public val deviceId: kotlin.String? = builder.deviceId
    /**
     * A collection of key/value pairs defining the resource tags. For example, { "tags": {"key1": "value1", "key2": "value2"} }. For more information, see [AWS Tagging Strategies](https://aws.amazon.com/answers/account-management/aws-tagging-strategies/).
     */
    public val tags: Map? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("FinalizeDeviceClaimRequest(")
        append("deviceId=$deviceId,")
        append("tags=$tags")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = deviceId?.hashCode() ?: 0
        result = 31 * result + (tags?.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 FinalizeDeviceClaimRequest

        if (deviceId != other.deviceId) return false
        if (tags != other.tags) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The unique identifier of the device.
         */
        public var deviceId: kotlin.String? = null
        /**
         * A collection of key/value pairs defining the resource tags. For example, { "tags": {"key1": "value1", "key2": "value2"} }. For more information, see [AWS Tagging Strategies](https://aws.amazon.com/answers/account-management/aws-tagging-strategies/).
         */
        public var tags: Map? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iot1clickdevicesservice.model.FinalizeDeviceClaimRequest) : this() {
            this.deviceId = x.deviceId
            this.tags = x.tags
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy