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

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

/**
 * LoRaWANDeviceProfile object.
 */
public class LoRaWanDeviceProfile private constructor(builder: Builder) {
    /**
     * The ClassBTimeout value.
     */
    public val classBTimeout: kotlin.Int? = builder.classBTimeout
    /**
     * The ClassCTimeout value.
     */
    public val classCTimeout: kotlin.Int? = builder.classCTimeout
    /**
     * The list of values that make up the FactoryPresetFreqs value.
     */
    public val factoryPresetFreqsList: List? = builder.factoryPresetFreqsList
    /**
     * The MAC version (such as OTAA 1.1 or OTAA 1.0.3) to use with this device profile.
     */
    public val macVersion: kotlin.String? = builder.macVersion
    /**
     * The MaxDutyCycle value. It ranges from 0 to 15.
     */
    public val maxDutyCycle: kotlin.Int? = builder.maxDutyCycle
    /**
     * The MaxEIRP value.
     */
    public val maxEirp: kotlin.Int? = builder.maxEirp
    /**
     * The PingSlotDR value.
     */
    public val pingSlotDr: kotlin.Int? = builder.pingSlotDr
    /**
     * The PingSlotFreq value.
     */
    public val pingSlotFreq: kotlin.Int? = builder.pingSlotFreq
    /**
     * The PingSlotPeriod value.
     */
    public val pingSlotPeriod: kotlin.Int? = builder.pingSlotPeriod
    /**
     * The version of regional parameters.
     */
    public val regParamsRevision: kotlin.String? = builder.regParamsRevision
    /**
     * The frequency band (RFRegion) value.
     */
    public val rfRegion: kotlin.String? = builder.rfRegion
    /**
     * The RXDataRate2 value.
     */
    public val rxDataRate2: kotlin.Int? = builder.rxDataRate2
    /**
     * The RXDelay1 value.
     */
    public val rxDelay1: kotlin.Int? = builder.rxDelay1
    /**
     * The RXDROffset1 value.
     */
    public val rxDrOffset1: kotlin.Int? = builder.rxDrOffset1
    /**
     * The RXFreq2 value.
     */
    public val rxFreq2: kotlin.Int? = builder.rxFreq2
    /**
     * The Supports32BitFCnt value.
     */
    public val supports32BitFCnt: kotlin.Boolean = builder.supports32BitFCnt
    /**
     * The SupportsClassB value.
     */
    public val supportsClassB: kotlin.Boolean = builder.supportsClassB
    /**
     * The SupportsClassC value.
     */
    public val supportsClassC: kotlin.Boolean = builder.supportsClassC
    /**
     * The SupportsJoin value.
     */
    public val supportsJoin: kotlin.Boolean? = builder.supportsJoin

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

    override fun toString(): kotlin.String = buildString {
        append("LoRaWanDeviceProfile(")
        append("classBTimeout=$classBTimeout,")
        append("classCTimeout=$classCTimeout,")
        append("factoryPresetFreqsList=$factoryPresetFreqsList,")
        append("macVersion=$macVersion,")
        append("maxDutyCycle=$maxDutyCycle,")
        append("maxEirp=$maxEirp,")
        append("pingSlotDr=$pingSlotDr,")
        append("pingSlotFreq=$pingSlotFreq,")
        append("pingSlotPeriod=$pingSlotPeriod,")
        append("regParamsRevision=$regParamsRevision,")
        append("rfRegion=$rfRegion,")
        append("rxDataRate2=$rxDataRate2,")
        append("rxDelay1=$rxDelay1,")
        append("rxDrOffset1=$rxDrOffset1,")
        append("rxFreq2=$rxFreq2,")
        append("supports32BitFCnt=$supports32BitFCnt,")
        append("supportsClassB=$supportsClassB,")
        append("supportsClassC=$supportsClassC,")
        append("supportsJoin=$supportsJoin")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = classBTimeout ?: 0
        result = 31 * result + (classCTimeout ?: 0)
        result = 31 * result + (factoryPresetFreqsList?.hashCode() ?: 0)
        result = 31 * result + (macVersion?.hashCode() ?: 0)
        result = 31 * result + (maxDutyCycle ?: 0)
        result = 31 * result + (maxEirp ?: 0)
        result = 31 * result + (pingSlotDr ?: 0)
        result = 31 * result + (pingSlotFreq ?: 0)
        result = 31 * result + (pingSlotPeriod ?: 0)
        result = 31 * result + (regParamsRevision?.hashCode() ?: 0)
        result = 31 * result + (rfRegion?.hashCode() ?: 0)
        result = 31 * result + (rxDataRate2 ?: 0)
        result = 31 * result + (rxDelay1 ?: 0)
        result = 31 * result + (rxDrOffset1 ?: 0)
        result = 31 * result + (rxFreq2 ?: 0)
        result = 31 * result + (supports32BitFCnt.hashCode())
        result = 31 * result + (supportsClassB.hashCode())
        result = 31 * result + (supportsClassC.hashCode())
        result = 31 * result + (supportsJoin?.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 LoRaWanDeviceProfile

        if (classBTimeout != other.classBTimeout) return false
        if (classCTimeout != other.classCTimeout) return false
        if (factoryPresetFreqsList != other.factoryPresetFreqsList) return false
        if (macVersion != other.macVersion) return false
        if (maxDutyCycle != other.maxDutyCycle) return false
        if (maxEirp != other.maxEirp) return false
        if (pingSlotDr != other.pingSlotDr) return false
        if (pingSlotFreq != other.pingSlotFreq) return false
        if (pingSlotPeriod != other.pingSlotPeriod) return false
        if (regParamsRevision != other.regParamsRevision) return false
        if (rfRegion != other.rfRegion) return false
        if (rxDataRate2 != other.rxDataRate2) return false
        if (rxDelay1 != other.rxDelay1) return false
        if (rxDrOffset1 != other.rxDrOffset1) return false
        if (rxFreq2 != other.rxFreq2) return false
        if (supports32BitFCnt != other.supports32BitFCnt) return false
        if (supportsClassB != other.supportsClassB) return false
        if (supportsClassC != other.supportsClassC) return false
        if (supportsJoin != other.supportsJoin) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The ClassBTimeout value.
         */
        public var classBTimeout: kotlin.Int? = null
        /**
         * The ClassCTimeout value.
         */
        public var classCTimeout: kotlin.Int? = null
        /**
         * The list of values that make up the FactoryPresetFreqs value.
         */
        public var factoryPresetFreqsList: List? = null
        /**
         * The MAC version (such as OTAA 1.1 or OTAA 1.0.3) to use with this device profile.
         */
        public var macVersion: kotlin.String? = null
        /**
         * The MaxDutyCycle value. It ranges from 0 to 15.
         */
        public var maxDutyCycle: kotlin.Int? = null
        /**
         * The MaxEIRP value.
         */
        public var maxEirp: kotlin.Int? = null
        /**
         * The PingSlotDR value.
         */
        public var pingSlotDr: kotlin.Int? = null
        /**
         * The PingSlotFreq value.
         */
        public var pingSlotFreq: kotlin.Int? = null
        /**
         * The PingSlotPeriod value.
         */
        public var pingSlotPeriod: kotlin.Int? = null
        /**
         * The version of regional parameters.
         */
        public var regParamsRevision: kotlin.String? = null
        /**
         * The frequency band (RFRegion) value.
         */
        public var rfRegion: kotlin.String? = null
        /**
         * The RXDataRate2 value.
         */
        public var rxDataRate2: kotlin.Int? = null
        /**
         * The RXDelay1 value.
         */
        public var rxDelay1: kotlin.Int? = null
        /**
         * The RXDROffset1 value.
         */
        public var rxDrOffset1: kotlin.Int? = null
        /**
         * The RXFreq2 value.
         */
        public var rxFreq2: kotlin.Int? = null
        /**
         * The Supports32BitFCnt value.
         */
        public var supports32BitFCnt: kotlin.Boolean = false
        /**
         * The SupportsClassB value.
         */
        public var supportsClassB: kotlin.Boolean = false
        /**
         * The SupportsClassC value.
         */
        public var supportsClassC: kotlin.Boolean = false
        /**
         * The SupportsJoin value.
         */
        public var supportsJoin: kotlin.Boolean? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.LoRaWanDeviceProfile) : this() {
            this.classBTimeout = x.classBTimeout
            this.classCTimeout = x.classCTimeout
            this.factoryPresetFreqsList = x.factoryPresetFreqsList
            this.macVersion = x.macVersion
            this.maxDutyCycle = x.maxDutyCycle
            this.maxEirp = x.maxEirp
            this.pingSlotDr = x.pingSlotDr
            this.pingSlotFreq = x.pingSlotFreq
            this.pingSlotPeriod = x.pingSlotPeriod
            this.regParamsRevision = x.regParamsRevision
            this.rfRegion = x.rfRegion
            this.rxDataRate2 = x.rxDataRate2
            this.rxDelay1 = x.rxDelay1
            this.rxDrOffset1 = x.rxDrOffset1
            this.rxFreq2 = x.rxFreq2
            this.supports32BitFCnt = x.supports32BitFCnt
            this.supportsClassB = x.supportsClassB
            this.supportsClassC = x.supportsClassC
            this.supportsJoin = x.supportsJoin
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy