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

commonMain.aws.sdk.kotlin.services.iotwireless.model.UpdateWirelessGatewayRequest.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 UpdateWirelessGatewayRequest private constructor(builder: Builder) {
    /**
     * A new description of the resource.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The ID of the resource to update.
     */
    public val id: kotlin.String? = builder.id
    /**
     * A list of JoinEuiRange used by LoRa gateways to filter LoRa frames.
     */
    public val joinEuiFilters: List>? = builder.joinEuiFilters
    /**
     * The MaxEIRP value.
     */
    public val maxEirp: kotlin.Float? = builder.maxEirp
    /**
     * The new name of the resource.
     */
    public val name: kotlin.String? = builder.name
    /**
     * A list of NetId values that are used by LoRa gateways to filter the uplink frames.
     */
    public val netIdFilters: List? = builder.netIdFilters

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateWirelessGatewayRequest(")
        append("description=$description,")
        append("id=$id,")
        append("joinEuiFilters=$joinEuiFilters,")
        append("maxEirp=$maxEirp,")
        append("name=$name,")
        append("netIdFilters=$netIdFilters")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = description?.hashCode() ?: 0
        result = 31 * result + (id?.hashCode() ?: 0)
        result = 31 * result + (joinEuiFilters?.hashCode() ?: 0)
        result = 31 * result + (maxEirp?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (netIdFilters?.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 UpdateWirelessGatewayRequest

        if (description != other.description) return false
        if (id != other.id) return false
        if (joinEuiFilters != other.joinEuiFilters) return false
        if (!(maxEirp?.equals(other.maxEirp) ?: (other.maxEirp == null))) return false
        if (name != other.name) return false
        if (netIdFilters != other.netIdFilters) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * A new description of the resource.
         */
        public var description: kotlin.String? = null
        /**
         * The ID of the resource to update.
         */
        public var id: kotlin.String? = null
        /**
         * A list of JoinEuiRange used by LoRa gateways to filter LoRa frames.
         */
        public var joinEuiFilters: List>? = null
        /**
         * The MaxEIRP value.
         */
        public var maxEirp: kotlin.Float? = null
        /**
         * The new name of the resource.
         */
        public var name: kotlin.String? = null
        /**
         * A list of NetId values that are used by LoRa gateways to filter the uplink frames.
         */
        public var netIdFilters: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.UpdateWirelessGatewayRequest) : this() {
            this.description = x.description
            this.id = x.id
            this.joinEuiFilters = x.joinEuiFilters
            this.maxEirp = x.maxEirp
            this.name = x.name
            this.netIdFilters = x.netIdFilters
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy