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

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

/**
 * LTE object.
 */
public class LteObj private constructor(builder: Builder) {
    /**
     * E-UTRAN (Evolved Universal Terrestrial Radio Access Network) Cell Global Identifier.
     */
    public val eutranCid: kotlin.Int = requireNotNull(builder.eutranCid) { "A non-null value must be provided for eutranCid" }
    /**
     * LTE local identification (local ID) information.
     */
    public val lteLocalId: aws.sdk.kotlin.services.iotwireless.model.LteLocalId? = builder.lteLocalId
    /**
     * LTE object for network measurement reports.
     */
    public val lteNmr: List? = builder.lteNmr
    /**
     * LTE timing advance.
     */
    public val lteTimingAdvance: kotlin.Int? = builder.lteTimingAdvance
    /**
     * Mobile Country Code.
     */
    public val mcc: kotlin.Int = requireNotNull(builder.mcc) { "A non-null value must be provided for mcc" }
    /**
     * Mobile Network Code.
     */
    public val mnc: kotlin.Int = requireNotNull(builder.mnc) { "A non-null value must be provided for mnc" }
    /**
     * Parameter that determines whether the LTE object is capable of supporting NR (new radio).
     */
    public val nrCapable: kotlin.Boolean = builder.nrCapable
    /**
     * Signal power of the reference signal received, measured in dBm (decibel-milliwatts).
     */
    public val rsrp: kotlin.Int? = builder.rsrp
    /**
     * Signal quality of the reference Signal received, measured in decibels (dB).
     */
    public val rsrq: kotlin.Float? = builder.rsrq
    /**
     * LTE tracking area code.
     */
    public val tac: kotlin.Int? = builder.tac

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

    override fun toString(): kotlin.String = buildString {
        append("LteObj(")
        append("eutranCid=$eutranCid,")
        append("lteLocalId=$lteLocalId,")
        append("lteNmr=$lteNmr,")
        append("lteTimingAdvance=$lteTimingAdvance,")
        append("mcc=$mcc,")
        append("mnc=$mnc,")
        append("nrCapable=$nrCapable,")
        append("rsrp=$rsrp,")
        append("rsrq=$rsrq,")
        append("tac=$tac")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = eutranCid
        result = 31 * result + (lteLocalId?.hashCode() ?: 0)
        result = 31 * result + (lteNmr?.hashCode() ?: 0)
        result = 31 * result + (lteTimingAdvance ?: 0)
        result = 31 * result + (mcc)
        result = 31 * result + (mnc)
        result = 31 * result + (nrCapable.hashCode())
        result = 31 * result + (rsrp ?: 0)
        result = 31 * result + (rsrq?.hashCode() ?: 0)
        result = 31 * result + (tac ?: 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 LteObj

        if (eutranCid != other.eutranCid) return false
        if (lteLocalId != other.lteLocalId) return false
        if (lteNmr != other.lteNmr) return false
        if (lteTimingAdvance != other.lteTimingAdvance) return false
        if (mcc != other.mcc) return false
        if (mnc != other.mnc) return false
        if (nrCapable != other.nrCapable) return false
        if (rsrp != other.rsrp) return false
        if (!(rsrq?.equals(other.rsrq) ?: (other.rsrq == null))) return false
        if (tac != other.tac) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * E-UTRAN (Evolved Universal Terrestrial Radio Access Network) Cell Global Identifier.
         */
        public var eutranCid: kotlin.Int? = null
        /**
         * LTE local identification (local ID) information.
         */
        public var lteLocalId: aws.sdk.kotlin.services.iotwireless.model.LteLocalId? = null
        /**
         * LTE object for network measurement reports.
         */
        public var lteNmr: List? = null
        /**
         * LTE timing advance.
         */
        public var lteTimingAdvance: kotlin.Int? = null
        /**
         * Mobile Country Code.
         */
        public var mcc: kotlin.Int? = null
        /**
         * Mobile Network Code.
         */
        public var mnc: kotlin.Int? = null
        /**
         * Parameter that determines whether the LTE object is capable of supporting NR (new radio).
         */
        public var nrCapable: kotlin.Boolean = false
        /**
         * Signal power of the reference signal received, measured in dBm (decibel-milliwatts).
         */
        public var rsrp: kotlin.Int? = null
        /**
         * Signal quality of the reference Signal received, measured in decibels (dB).
         */
        public var rsrq: kotlin.Float? = null
        /**
         * LTE tracking area code.
         */
        public var tac: kotlin.Int? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.LteObj) : this() {
            this.eutranCid = x.eutranCid
            this.lteLocalId = x.lteLocalId
            this.lteNmr = x.lteNmr
            this.lteTimingAdvance = x.lteTimingAdvance
            this.mcc = x.mcc
            this.mnc = x.mnc
            this.nrCapable = x.nrCapable
            this.rsrp = x.rsrp
            this.rsrq = x.rsrq
            this.tac = x.tac
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.iotwireless.model.LteLocalId] inside the given [block]
         */
        public fun lteLocalId(block: aws.sdk.kotlin.services.iotwireless.model.LteLocalId.Builder.() -> kotlin.Unit) {
            this.lteLocalId = aws.sdk.kotlin.services.iotwireless.model.LteLocalId.invoke(block)
        }

        internal fun correctErrors(): Builder {
            if (eutranCid == null) eutranCid = 0
            if (mcc == null) mcc = 0
            if (mnc == null) mnc = 0
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy