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

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

There is a newer version: 1.3.34
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

public class GetWirelessDeviceResponse private constructor(builder: Builder) {
    /**
     * The Amazon Resource Name of the resource.
     */
    public val arn: kotlin.String? = builder.arn
    /**
     * The description of the resource.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The name of the destination to which the device is assigned.
     */
    public val destinationName: kotlin.String? = builder.destinationName
    /**
     * The ID of the wireless device.
     */
    public val id: kotlin.String? = builder.id
    /**
     * Information about the wireless device.
     */
    public val loRaWan: aws.sdk.kotlin.services.iotwireless.model.LoRaWanDevice? = builder.loRaWan
    /**
     * The name of the resource.
     */
    public val name: kotlin.String? = builder.name
    /**
     * FPort values for the GNSS, stream, and ClockSync functions of the positioning information.
     */
    public val positioning: aws.sdk.kotlin.services.iotwireless.model.PositioningConfigStatus? = builder.positioning
    /**
     * Sidewalk device object.
     */
    public val sidewalk: aws.sdk.kotlin.services.iotwireless.model.SidewalkDevice? = builder.sidewalk
    /**
     * The ARN of the thing associated with the wireless device.
     */
    public val thingArn: kotlin.String? = builder.thingArn
    /**
     * The name of the thing associated with the wireless device. The value is empty if a thing isn't associated with the device.
     */
    public val thingName: kotlin.String? = builder.thingName
    /**
     * The wireless device type.
     */
    public val type: aws.sdk.kotlin.services.iotwireless.model.WirelessDeviceType? = builder.type

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

    override fun toString(): kotlin.String = buildString {
        append("GetWirelessDeviceResponse(")
        append("arn=$arn,")
        append("description=$description,")
        append("destinationName=$destinationName,")
        append("id=$id,")
        append("loRaWan=$loRaWan,")
        append("name=$name,")
        append("positioning=$positioning,")
        append("sidewalk=$sidewalk,")
        append("thingArn=$thingArn,")
        append("thingName=$thingName,")
        append("type=$type")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = arn?.hashCode() ?: 0
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (destinationName?.hashCode() ?: 0)
        result = 31 * result + (id?.hashCode() ?: 0)
        result = 31 * result + (loRaWan?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (positioning?.hashCode() ?: 0)
        result = 31 * result + (sidewalk?.hashCode() ?: 0)
        result = 31 * result + (thingArn?.hashCode() ?: 0)
        result = 31 * result + (thingName?.hashCode() ?: 0)
        result = 31 * result + (type?.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 GetWirelessDeviceResponse

        if (arn != other.arn) return false
        if (description != other.description) return false
        if (destinationName != other.destinationName) return false
        if (id != other.id) return false
        if (loRaWan != other.loRaWan) return false
        if (name != other.name) return false
        if (positioning != other.positioning) return false
        if (sidewalk != other.sidewalk) return false
        if (thingArn != other.thingArn) return false
        if (thingName != other.thingName) return false
        if (type != other.type) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The Amazon Resource Name of the resource.
         */
        public var arn: kotlin.String? = null
        /**
         * The description of the resource.
         */
        public var description: kotlin.String? = null
        /**
         * The name of the destination to which the device is assigned.
         */
        public var destinationName: kotlin.String? = null
        /**
         * The ID of the wireless device.
         */
        public var id: kotlin.String? = null
        /**
         * Information about the wireless device.
         */
        public var loRaWan: aws.sdk.kotlin.services.iotwireless.model.LoRaWanDevice? = null
        /**
         * The name of the resource.
         */
        public var name: kotlin.String? = null
        /**
         * FPort values for the GNSS, stream, and ClockSync functions of the positioning information.
         */
        public var positioning: aws.sdk.kotlin.services.iotwireless.model.PositioningConfigStatus? = null
        /**
         * Sidewalk device object.
         */
        public var sidewalk: aws.sdk.kotlin.services.iotwireless.model.SidewalkDevice? = null
        /**
         * The ARN of the thing associated with the wireless device.
         */
        public var thingArn: kotlin.String? = null
        /**
         * The name of the thing associated with the wireless device. The value is empty if a thing isn't associated with the device.
         */
        public var thingName: kotlin.String? = null
        /**
         * The wireless device type.
         */
        public var type: aws.sdk.kotlin.services.iotwireless.model.WirelessDeviceType? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.GetWirelessDeviceResponse) : this() {
            this.arn = x.arn
            this.description = x.description
            this.destinationName = x.destinationName
            this.id = x.id
            this.loRaWan = x.loRaWan
            this.name = x.name
            this.positioning = x.positioning
            this.sidewalk = x.sidewalk
            this.thingArn = x.thingArn
            this.thingName = x.thingName
            this.type = x.type
        }

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy