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

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

/**
 * LoRaWANServiceProfile object.
 */
public class LoRaWanServiceProfile private constructor(builder: Builder) {
    /**
     * The AddGWMetaData value.
     */
    public val addGwMetadata: kotlin.Boolean = builder.addGwMetadata
    /**
     * The DrMax value.
     */
    public val drMax: kotlin.Int? = builder.drMax
    /**
     * The DrMin value.
     */
    public val drMin: kotlin.Int? = builder.drMin
    /**
     * The PRAllowed value that describes whether passive roaming is allowed.
     */
    public val prAllowed: kotlin.Boolean = builder.prAllowed
    /**
     * The RAAllowed value that describes whether roaming activation is allowed.
     */
    public val raAllowed: kotlin.Boolean = builder.raAllowed

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

    override fun toString(): kotlin.String = buildString {
        append("LoRaWanServiceProfile(")
        append("addGwMetadata=$addGwMetadata,")
        append("drMax=$drMax,")
        append("drMin=$drMin,")
        append("prAllowed=$prAllowed,")
        append("raAllowed=$raAllowed")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = addGwMetadata.hashCode()
        result = 31 * result + (drMax ?: 0)
        result = 31 * result + (drMin ?: 0)
        result = 31 * result + (prAllowed.hashCode())
        result = 31 * result + (raAllowed.hashCode())
        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 LoRaWanServiceProfile

        if (addGwMetadata != other.addGwMetadata) return false
        if (drMax != other.drMax) return false
        if (drMin != other.drMin) return false
        if (prAllowed != other.prAllowed) return false
        if (raAllowed != other.raAllowed) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The AddGWMetaData value.
         */
        public var addGwMetadata: kotlin.Boolean = false
        /**
         * The DrMax value.
         */
        public var drMax: kotlin.Int? = null
        /**
         * The DrMin value.
         */
        public var drMin: kotlin.Int? = null
        /**
         * The PRAllowed value that describes whether passive roaming is allowed.
         */
        public var prAllowed: kotlin.Boolean = false
        /**
         * The RAAllowed value that describes whether roaming activation is allowed.
         */
        public var raAllowed: kotlin.Boolean = false

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.LoRaWanServiceProfile) : this() {
            this.addGwMetadata = x.addGwMetadata
            this.drMax = x.drMax
            this.drMin = x.drMin
            this.prAllowed = x.prAllowed
            this.raAllowed = x.raAllowed
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy