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

commonMain.aws.sdk.kotlin.services.iotwireless.model.LoRaWanGetServiceProfileInfo.kt Maven / Gradle / Ivy

There is a newer version: 1.3.34
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

/**
 * LoRaWANGetServiceProfileInfo object.
 */
public class LoRaWanGetServiceProfileInfo private constructor(builder: Builder) {
    /**
     * The AddGWMetaData value.
     */
    public val addGwMetadata: kotlin.Boolean = builder.addGwMetadata
    /**
     * The ChannelMask value.
     */
    public val channelMask: kotlin.String? = builder.channelMask
    /**
     * The DevStatusReqFreq value.
     */
    public val devStatusReqFreq: kotlin.Int? = builder.devStatusReqFreq
    /**
     * The DLBucketSize value.
     */
    public val dlBucketSize: kotlin.Int? = builder.dlBucketSize
    /**
     * The DLRate value.
     */
    public val dlRate: kotlin.Int? = builder.dlRate
    /**
     * The DLRatePolicy value.
     */
    public val dlRatePolicy: kotlin.String? = builder.dlRatePolicy
    /**
     * The DRMax value.
     */
    public val drMax: kotlin.Int = builder.drMax
    /**
     * The DRMin value.
     */
    public val drMin: kotlin.Int = builder.drMin
    /**
     * The HRAllowed value that describes whether handover roaming is allowed.
     */
    public val hrAllowed: kotlin.Boolean = builder.hrAllowed
    /**
     * The MinGwDiversity value.
     */
    public val minGwDiversity: kotlin.Int? = builder.minGwDiversity
    /**
     * The NwkGeoLoc value.
     */
    public val nwkGeoLoc: kotlin.Boolean = builder.nwkGeoLoc
    /**
     * 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
    /**
     * The ReportDevStatusBattery value.
     */
    public val reportDevStatusBattery: kotlin.Boolean = builder.reportDevStatusBattery
    /**
     * The ReportDevStatusMargin value.
     */
    public val reportDevStatusMargin: kotlin.Boolean = builder.reportDevStatusMargin
    /**
     * The TargetPER value.
     */
    public val targetPer: kotlin.Int = builder.targetPer
    /**
     * The ULBucketSize value.
     */
    public val ulBucketSize: kotlin.Int? = builder.ulBucketSize
    /**
     * The ULRate value.
     */
    public val ulRate: kotlin.Int? = builder.ulRate
    /**
     * The ULRatePolicy value.
     */
    public val ulRatePolicy: kotlin.String? = builder.ulRatePolicy

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

    override fun toString(): kotlin.String = buildString {
        append("LoRaWanGetServiceProfileInfo(")
        append("addGwMetadata=$addGwMetadata,")
        append("channelMask=$channelMask,")
        append("devStatusReqFreq=$devStatusReqFreq,")
        append("dlBucketSize=$dlBucketSize,")
        append("dlRate=$dlRate,")
        append("dlRatePolicy=$dlRatePolicy,")
        append("drMax=$drMax,")
        append("drMin=$drMin,")
        append("hrAllowed=$hrAllowed,")
        append("minGwDiversity=$minGwDiversity,")
        append("nwkGeoLoc=$nwkGeoLoc,")
        append("prAllowed=$prAllowed,")
        append("raAllowed=$raAllowed,")
        append("reportDevStatusBattery=$reportDevStatusBattery,")
        append("reportDevStatusMargin=$reportDevStatusMargin,")
        append("targetPer=$targetPer,")
        append("ulBucketSize=$ulBucketSize,")
        append("ulRate=$ulRate,")
        append("ulRatePolicy=$ulRatePolicy")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = addGwMetadata.hashCode()
        result = 31 * result + (channelMask?.hashCode() ?: 0)
        result = 31 * result + (devStatusReqFreq ?: 0)
        result = 31 * result + (dlBucketSize ?: 0)
        result = 31 * result + (dlRate ?: 0)
        result = 31 * result + (dlRatePolicy?.hashCode() ?: 0)
        result = 31 * result + (drMax)
        result = 31 * result + (drMin)
        result = 31 * result + (hrAllowed.hashCode())
        result = 31 * result + (minGwDiversity ?: 0)
        result = 31 * result + (nwkGeoLoc.hashCode())
        result = 31 * result + (prAllowed.hashCode())
        result = 31 * result + (raAllowed.hashCode())
        result = 31 * result + (reportDevStatusBattery.hashCode())
        result = 31 * result + (reportDevStatusMargin.hashCode())
        result = 31 * result + (targetPer)
        result = 31 * result + (ulBucketSize ?: 0)
        result = 31 * result + (ulRate ?: 0)
        result = 31 * result + (ulRatePolicy?.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 LoRaWanGetServiceProfileInfo

        if (addGwMetadata != other.addGwMetadata) return false
        if (channelMask != other.channelMask) return false
        if (devStatusReqFreq != other.devStatusReqFreq) return false
        if (dlBucketSize != other.dlBucketSize) return false
        if (dlRate != other.dlRate) return false
        if (dlRatePolicy != other.dlRatePolicy) return false
        if (drMax != other.drMax) return false
        if (drMin != other.drMin) return false
        if (hrAllowed != other.hrAllowed) return false
        if (minGwDiversity != other.minGwDiversity) return false
        if (nwkGeoLoc != other.nwkGeoLoc) return false
        if (prAllowed != other.prAllowed) return false
        if (raAllowed != other.raAllowed) return false
        if (reportDevStatusBattery != other.reportDevStatusBattery) return false
        if (reportDevStatusMargin != other.reportDevStatusMargin) return false
        if (targetPer != other.targetPer) return false
        if (ulBucketSize != other.ulBucketSize) return false
        if (ulRate != other.ulRate) return false
        if (ulRatePolicy != other.ulRatePolicy) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The AddGWMetaData value.
         */
        public var addGwMetadata: kotlin.Boolean = false
        /**
         * The ChannelMask value.
         */
        public var channelMask: kotlin.String? = null
        /**
         * The DevStatusReqFreq value.
         */
        public var devStatusReqFreq: kotlin.Int? = null
        /**
         * The DLBucketSize value.
         */
        public var dlBucketSize: kotlin.Int? = null
        /**
         * The DLRate value.
         */
        public var dlRate: kotlin.Int? = null
        /**
         * The DLRatePolicy value.
         */
        public var dlRatePolicy: kotlin.String? = null
        /**
         * The DRMax value.
         */
        public var drMax: kotlin.Int = 0
        /**
         * The DRMin value.
         */
        public var drMin: kotlin.Int = 0
        /**
         * The HRAllowed value that describes whether handover roaming is allowed.
         */
        public var hrAllowed: kotlin.Boolean = false
        /**
         * The MinGwDiversity value.
         */
        public var minGwDiversity: kotlin.Int? = null
        /**
         * The NwkGeoLoc value.
         */
        public var nwkGeoLoc: kotlin.Boolean = false
        /**
         * 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
        /**
         * The ReportDevStatusBattery value.
         */
        public var reportDevStatusBattery: kotlin.Boolean = false
        /**
         * The ReportDevStatusMargin value.
         */
        public var reportDevStatusMargin: kotlin.Boolean = false
        /**
         * The TargetPER value.
         */
        public var targetPer: kotlin.Int = 0
        /**
         * The ULBucketSize value.
         */
        public var ulBucketSize: kotlin.Int? = null
        /**
         * The ULRate value.
         */
        public var ulRate: kotlin.Int? = null
        /**
         * The ULRatePolicy value.
         */
        public var ulRatePolicy: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.LoRaWanGetServiceProfileInfo) : this() {
            this.addGwMetadata = x.addGwMetadata
            this.channelMask = x.channelMask
            this.devStatusReqFreq = x.devStatusReqFreq
            this.dlBucketSize = x.dlBucketSize
            this.dlRate = x.dlRate
            this.dlRatePolicy = x.dlRatePolicy
            this.drMax = x.drMax
            this.drMin = x.drMin
            this.hrAllowed = x.hrAllowed
            this.minGwDiversity = x.minGwDiversity
            this.nwkGeoLoc = x.nwkGeoLoc
            this.prAllowed = x.prAllowed
            this.raAllowed = x.raAllowed
            this.reportDevStatusBattery = x.reportDevStatusBattery
            this.reportDevStatusMargin = x.reportDevStatusMargin
            this.targetPer = x.targetPer
            this.ulBucketSize = x.ulBucketSize
            this.ulRate = x.ulRate
            this.ulRatePolicy = x.ulRatePolicy
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy