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

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

/**
 * Network Measurement Reports.
 */
public class WcdmaNmrObj private constructor(builder: Builder) {
    /**
     * Path loss, or path attenuation, is the reduction in power density of an electromagnetic wave as it propagates through space.
     */
    public val pathLoss: kotlin.Int? = builder.pathLoss
    /**
     * Primary Scrambling Code.
     */
    public val psc: kotlin.Int = requireNotNull(builder.psc) { "A non-null value must be provided for psc" }
    /**
     * Received Signal Code Power (signal power) (dBm)
     */
    public val rscp: kotlin.Int? = builder.rscp
    /**
     * WCDMA UTRA Absolute RF Channel Number downlink.
     */
    public val uarfcndl: kotlin.Int = requireNotNull(builder.uarfcndl) { "A non-null value must be provided for uarfcndl" }
    /**
     * UTRAN (UMTS Terrestrial Radio Access Network) Cell Global Identifier.
     */
    public val utranCid: kotlin.Int = requireNotNull(builder.utranCid) { "A non-null value must be provided for utranCid" }

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

    override fun toString(): kotlin.String = buildString {
        append("WcdmaNmrObj(")
        append("pathLoss=$pathLoss,")
        append("psc=$psc,")
        append("rscp=$rscp,")
        append("uarfcndl=$uarfcndl,")
        append("utranCid=$utranCid")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = pathLoss ?: 0
        result = 31 * result + (psc)
        result = 31 * result + (rscp ?: 0)
        result = 31 * result + (uarfcndl)
        result = 31 * result + (utranCid)
        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 WcdmaNmrObj

        if (pathLoss != other.pathLoss) return false
        if (psc != other.psc) return false
        if (rscp != other.rscp) return false
        if (uarfcndl != other.uarfcndl) return false
        if (utranCid != other.utranCid) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Path loss, or path attenuation, is the reduction in power density of an electromagnetic wave as it propagates through space.
         */
        public var pathLoss: kotlin.Int? = null
        /**
         * Primary Scrambling Code.
         */
        public var psc: kotlin.Int? = null
        /**
         * Received Signal Code Power (signal power) (dBm)
         */
        public var rscp: kotlin.Int? = null
        /**
         * WCDMA UTRA Absolute RF Channel Number downlink.
         */
        public var uarfcndl: kotlin.Int? = null
        /**
         * UTRAN (UMTS Terrestrial Radio Access Network) Cell Global Identifier.
         */
        public var utranCid: kotlin.Int? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.WcdmaNmrObj) : this() {
            this.pathLoss = x.pathLoss
            this.psc = x.psc
            this.rscp = x.rscp
            this.uarfcndl = x.uarfcndl
            this.utranCid = x.utranCid
        }

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

        internal fun correctErrors(): Builder {
            if (psc == null) psc = 0
            if (uarfcndl == null) uarfcndl = 0
            if (utranCid == null) utranCid = 0
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy