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

commonMain.aws.sdk.kotlin.services.iotwireless.model.ImportedSidewalkDevice.kt Maven / Gradle / Ivy

There is a newer version: 1.3.31
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.iotwireless.model

import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant

/**
 * Information about a Sidewalk device that has been added to an import task.
 */
public class ImportedSidewalkDevice private constructor(builder: Builder) {
    /**
     * The time at which the status information was last updated.
     */
    public val lastUpdateTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdateTime
    /**
     * The onboarding status of the Sidewalk device in the import task.
     */
    public val onboardingStatus: aws.sdk.kotlin.services.iotwireless.model.OnboardStatus? = builder.onboardingStatus
    /**
     * The reason for the onboarding status information for the Sidewalk device.
     */
    public val onboardingStatusReason: kotlin.String? = builder.onboardingStatusReason
    /**
     * The Sidewalk manufacturing serial number (SMSN) of the Sidewalk device.
     */
    public val sidewalkManufacturingSn: kotlin.String? = builder.sidewalkManufacturingSn

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

    override fun toString(): kotlin.String = buildString {
        append("ImportedSidewalkDevice(")
        append("lastUpdateTime=$lastUpdateTime,")
        append("onboardingStatus=$onboardingStatus,")
        append("onboardingStatusReason=$onboardingStatusReason,")
        append("sidewalkManufacturingSn=$sidewalkManufacturingSn")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = lastUpdateTime?.hashCode() ?: 0
        result = 31 * result + (onboardingStatus?.hashCode() ?: 0)
        result = 31 * result + (onboardingStatusReason?.hashCode() ?: 0)
        result = 31 * result + (sidewalkManufacturingSn?.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 ImportedSidewalkDevice

        if (lastUpdateTime != other.lastUpdateTime) return false
        if (onboardingStatus != other.onboardingStatus) return false
        if (onboardingStatusReason != other.onboardingStatusReason) return false
        if (sidewalkManufacturingSn != other.sidewalkManufacturingSn) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The time at which the status information was last updated.
         */
        public var lastUpdateTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The onboarding status of the Sidewalk device in the import task.
         */
        public var onboardingStatus: aws.sdk.kotlin.services.iotwireless.model.OnboardStatus? = null
        /**
         * The reason for the onboarding status information for the Sidewalk device.
         */
        public var onboardingStatusReason: kotlin.String? = null
        /**
         * The Sidewalk manufacturing serial number (SMSN) of the Sidewalk device.
         */
        public var sidewalkManufacturingSn: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.ImportedSidewalkDevice) : this() {
            this.lastUpdateTime = x.lastUpdateTime
            this.onboardingStatus = x.onboardingStatus
            this.onboardingStatusReason = x.onboardingStatusReason
            this.sidewalkManufacturingSn = x.sidewalkManufacturingSn
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy