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

commonMain.aws.sdk.kotlin.services.iotwireless.model.GetWirelessDeviceImportTaskResponse.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

public class GetWirelessDeviceImportTaskResponse private constructor(builder: Builder) {
    /**
     * The ARN (Amazon Resource Name) of the import task.
     */
    public val arn: kotlin.String? = builder.arn
    /**
     * The time at which the import task was created.
     */
    public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
    /**
     * The name of the destination that's assigned to the wireless devices in the import task.
     */
    public val destinationName: kotlin.String? = builder.destinationName
    /**
     * The number of devices in the import task that failed to onboard to the import task.
     */
    public val failedImportedDeviceCount: kotlin.Long? = builder.failedImportedDeviceCount
    /**
     * The identifier of the import task for which information is retrieved.
     */
    public val id: kotlin.String? = builder.id
    /**
     * The number of devices in the import task that are waiting for the control log to start processing.
     */
    public val initializedImportedDeviceCount: kotlin.Long? = builder.initializedImportedDeviceCount
    /**
     * The number of devices in the import task that have been onboarded to the import task.
     */
    public val onboardedImportedDeviceCount: kotlin.Long? = builder.onboardedImportedDeviceCount
    /**
     * The number of devices in the import task that are waiting in the import task queue to be onboarded.
     */
    public val pendingImportedDeviceCount: kotlin.Long? = builder.pendingImportedDeviceCount
    /**
     * The Sidewalk-related information about an import task.
     */
    public val sidewalk: aws.sdk.kotlin.services.iotwireless.model.SidewalkGetStartImportInfo? = builder.sidewalk
    /**
     * The import task status.
     */
    public val status: aws.sdk.kotlin.services.iotwireless.model.ImportTaskStatus? = builder.status
    /**
     * The reason for the provided status information, such as a validation error that causes the import task to fail.
     */
    public val statusReason: kotlin.String? = builder.statusReason

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

    override fun toString(): kotlin.String = buildString {
        append("GetWirelessDeviceImportTaskResponse(")
        append("arn=$arn,")
        append("creationTime=$creationTime,")
        append("destinationName=$destinationName,")
        append("failedImportedDeviceCount=$failedImportedDeviceCount,")
        append("id=$id,")
        append("initializedImportedDeviceCount=$initializedImportedDeviceCount,")
        append("onboardedImportedDeviceCount=$onboardedImportedDeviceCount,")
        append("pendingImportedDeviceCount=$pendingImportedDeviceCount,")
        append("sidewalk=$sidewalk,")
        append("status=$status,")
        append("statusReason=$statusReason")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = arn?.hashCode() ?: 0
        result = 31 * result + (creationTime?.hashCode() ?: 0)
        result = 31 * result + (destinationName?.hashCode() ?: 0)
        result = 31 * result + (failedImportedDeviceCount?.hashCode() ?: 0)
        result = 31 * result + (id?.hashCode() ?: 0)
        result = 31 * result + (initializedImportedDeviceCount?.hashCode() ?: 0)
        result = 31 * result + (onboardedImportedDeviceCount?.hashCode() ?: 0)
        result = 31 * result + (pendingImportedDeviceCount?.hashCode() ?: 0)
        result = 31 * result + (sidewalk?.hashCode() ?: 0)
        result = 31 * result + (status?.hashCode() ?: 0)
        result = 31 * result + (statusReason?.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 GetWirelessDeviceImportTaskResponse

        if (arn != other.arn) return false
        if (creationTime != other.creationTime) return false
        if (destinationName != other.destinationName) return false
        if (failedImportedDeviceCount != other.failedImportedDeviceCount) return false
        if (id != other.id) return false
        if (initializedImportedDeviceCount != other.initializedImportedDeviceCount) return false
        if (onboardedImportedDeviceCount != other.onboardedImportedDeviceCount) return false
        if (pendingImportedDeviceCount != other.pendingImportedDeviceCount) return false
        if (sidewalk != other.sidewalk) return false
        if (status != other.status) return false
        if (statusReason != other.statusReason) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The ARN (Amazon Resource Name) of the import task.
         */
        public var arn: kotlin.String? = null
        /**
         * The time at which the import task was created.
         */
        public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The name of the destination that's assigned to the wireless devices in the import task.
         */
        public var destinationName: kotlin.String? = null
        /**
         * The number of devices in the import task that failed to onboard to the import task.
         */
        public var failedImportedDeviceCount: kotlin.Long? = null
        /**
         * The identifier of the import task for which information is retrieved.
         */
        public var id: kotlin.String? = null
        /**
         * The number of devices in the import task that are waiting for the control log to start processing.
         */
        public var initializedImportedDeviceCount: kotlin.Long? = null
        /**
         * The number of devices in the import task that have been onboarded to the import task.
         */
        public var onboardedImportedDeviceCount: kotlin.Long? = null
        /**
         * The number of devices in the import task that are waiting in the import task queue to be onboarded.
         */
        public var pendingImportedDeviceCount: kotlin.Long? = null
        /**
         * The Sidewalk-related information about an import task.
         */
        public var sidewalk: aws.sdk.kotlin.services.iotwireless.model.SidewalkGetStartImportInfo? = null
        /**
         * The import task status.
         */
        public var status: aws.sdk.kotlin.services.iotwireless.model.ImportTaskStatus? = null
        /**
         * The reason for the provided status information, such as a validation error that causes the import task to fail.
         */
        public var statusReason: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.GetWirelessDeviceImportTaskResponse) : this() {
            this.arn = x.arn
            this.creationTime = x.creationTime
            this.destinationName = x.destinationName
            this.failedImportedDeviceCount = x.failedImportedDeviceCount
            this.id = x.id
            this.initializedImportedDeviceCount = x.initializedImportedDeviceCount
            this.onboardedImportedDeviceCount = x.onboardedImportedDeviceCount
            this.pendingImportedDeviceCount = x.pendingImportedDeviceCount
            this.sidewalk = x.sidewalk
            this.status = x.status
            this.statusReason = x.statusReason
        }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy