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

commonMain.aws.sdk.kotlin.services.snowdevicemanagement.model.DeviceSummary.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.snowdevicemanagement.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Identifying information about the device.
 */
public class DeviceSummary private constructor(builder: Builder) {
    /**
     * The ID of the job used to order the device.
     */
    public val associatedWithJob: kotlin.String? = builder.associatedWithJob
    /**
     * The Amazon Resource Name (ARN) of the device.
     */
    public val managedDeviceArn: kotlin.String? = builder.managedDeviceArn
    /**
     * The ID of the device.
     */
    public val managedDeviceId: kotlin.String? = builder.managedDeviceId
    /**
     * Optional metadata that you assign to a resource. You can use tags to categorize a resource in different ways, such as by purpose, owner, or environment.
     */
    public val tags: Map? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("DeviceSummary(")
        append("associatedWithJob=$associatedWithJob,")
        append("managedDeviceArn=$managedDeviceArn,")
        append("managedDeviceId=$managedDeviceId,")
        append("tags=$tags")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = associatedWithJob?.hashCode() ?: 0
        result = 31 * result + (managedDeviceArn?.hashCode() ?: 0)
        result = 31 * result + (managedDeviceId?.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 DeviceSummary

        if (associatedWithJob != other.associatedWithJob) return false
        if (managedDeviceArn != other.managedDeviceArn) return false
        if (managedDeviceId != other.managedDeviceId) return false
        if (tags != other.tags) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The ID of the job used to order the device.
         */
        public var associatedWithJob: kotlin.String? = null
        /**
         * The Amazon Resource Name (ARN) of the device.
         */
        public var managedDeviceArn: kotlin.String? = null
        /**
         * The ID of the device.
         */
        public var managedDeviceId: kotlin.String? = null
        /**
         * Optional metadata that you assign to a resource. You can use tags to categorize a resource in different ways, such as by purpose, owner, or environment.
         */
        public var tags: Map? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.snowdevicemanagement.model.DeviceSummary) : this() {
            this.associatedWithJob = x.associatedWithJob
            this.managedDeviceArn = x.managedDeviceArn
            this.managedDeviceId = x.managedDeviceId
            this.tags = x.tags
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy