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

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



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

    companion object {
        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)")
    }

    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 (javaClass != other?.javaClass) 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
    }

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

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

        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)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy