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

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

import aws.smithy.kotlin.runtime.SdkDsl

public class GetWirelessGatewayResponse 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 ID of the wireless gateway.
     */
    public val id: kotlin.String? = builder.id
    /**
     * Information about the wireless gateway.
     */
    public val loRaWan: aws.sdk.kotlin.services.iotwireless.model.LoRaWanGateway? = builder.loRaWan
    /**
     * The name of the resource.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The ARN of the thing associated with the wireless gateway.
     */
    public val thingArn: kotlin.String? = builder.thingArn
    /**
     * The name of the thing associated with the wireless gateway. The value is empty if a thing isn't associated with the gateway.
     */
    public val thingName: kotlin.String? = builder.thingName

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

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

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

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

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotwireless.model.GetWirelessGatewayResponse = 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 ID of the wireless gateway.
         */
        public var id: kotlin.String? = null
        /**
         * Information about the wireless gateway.
         */
        public var loRaWan: aws.sdk.kotlin.services.iotwireless.model.LoRaWanGateway? = null
        /**
         * The name of the resource.
         */
        public var name: kotlin.String? = null
        /**
         * The ARN of the thing associated with the wireless gateway.
         */
        public var thingArn: kotlin.String? = null
        /**
         * The name of the thing associated with the wireless gateway. The value is empty if a thing isn't associated with the gateway.
         */
        public var thingName: kotlin.String? = null

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy