commonMain.aws.sdk.kotlin.services.iotwireless.model.TdscdmaObj.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iotwireless-jvm Show documentation
Show all versions of iotwireless-jvm Show documentation
The AWS Kotlin client for IoT Wireless
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iotwireless.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* TD-SCDMA object.
*/
public class TdscdmaObj private constructor(builder: Builder) {
/**
* Location Area Code.
*/
public val lac: kotlin.Int? = builder.lac
/**
* 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" }
/**
* 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
/**
* Signal power of the received signal (Received Signal Code Power), measured in decibel-milliwatts (dBm).
*/
public val rscp: kotlin.Int? = builder.rscp
/**
* TD-SCDMA local identification (local ID) information.
*/
public val tdscdmaLocalId: aws.sdk.kotlin.services.iotwireless.model.TdscdmaLocalId? = builder.tdscdmaLocalId
/**
* TD-SCDMA object for network measurement reports.
*/
public val tdscdmaNmr: List? = builder.tdscdmaNmr
/**
* TD-SCDMA Timing advance.
*/
public val tdscdmaTimingAdvance: kotlin.Int? = builder.tdscdmaTimingAdvance
/**
* 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.TdscdmaObj = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TdscdmaObj(")
append("lac=$lac,")
append("mcc=$mcc,")
append("mnc=$mnc,")
append("pathLoss=$pathLoss,")
append("rscp=$rscp,")
append("tdscdmaLocalId=$tdscdmaLocalId,")
append("tdscdmaNmr=$tdscdmaNmr,")
append("tdscdmaTimingAdvance=$tdscdmaTimingAdvance,")
append("utranCid=$utranCid")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = lac ?: 0
result = 31 * result + (mcc)
result = 31 * result + (mnc)
result = 31 * result + (pathLoss ?: 0)
result = 31 * result + (rscp ?: 0)
result = 31 * result + (tdscdmaLocalId?.hashCode() ?: 0)
result = 31 * result + (tdscdmaNmr?.hashCode() ?: 0)
result = 31 * result + (tdscdmaTimingAdvance ?: 0)
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 TdscdmaObj
if (lac != other.lac) return false
if (mcc != other.mcc) return false
if (mnc != other.mnc) return false
if (pathLoss != other.pathLoss) return false
if (rscp != other.rscp) return false
if (tdscdmaLocalId != other.tdscdmaLocalId) return false
if (tdscdmaNmr != other.tdscdmaNmr) return false
if (tdscdmaTimingAdvance != other.tdscdmaTimingAdvance) return false
if (utranCid != other.utranCid) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotwireless.model.TdscdmaObj = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Location Area Code.
*/
public var lac: kotlin.Int? = null
/**
* Mobile Country Code.
*/
public var mcc: kotlin.Int? = null
/**
* Mobile Network Code.
*/
public var mnc: kotlin.Int? = null
/**
* 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
/**
* Signal power of the received signal (Received Signal Code Power), measured in decibel-milliwatts (dBm).
*/
public var rscp: kotlin.Int? = null
/**
* TD-SCDMA local identification (local ID) information.
*/
public var tdscdmaLocalId: aws.sdk.kotlin.services.iotwireless.model.TdscdmaLocalId? = null
/**
* TD-SCDMA object for network measurement reports.
*/
public var tdscdmaNmr: List? = null
/**
* TD-SCDMA Timing advance.
*/
public var tdscdmaTimingAdvance: 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.TdscdmaObj) : this() {
this.lac = x.lac
this.mcc = x.mcc
this.mnc = x.mnc
this.pathLoss = x.pathLoss
this.rscp = x.rscp
this.tdscdmaLocalId = x.tdscdmaLocalId
this.tdscdmaNmr = x.tdscdmaNmr
this.tdscdmaTimingAdvance = x.tdscdmaTimingAdvance
this.utranCid = x.utranCid
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotwireless.model.TdscdmaObj = TdscdmaObj(this)
/**
* construct an [aws.sdk.kotlin.services.iotwireless.model.TdscdmaLocalId] inside the given [block]
*/
public fun tdscdmaLocalId(block: aws.sdk.kotlin.services.iotwireless.model.TdscdmaLocalId.Builder.() -> kotlin.Unit) {
this.tdscdmaLocalId = aws.sdk.kotlin.services.iotwireless.model.TdscdmaLocalId.invoke(block)
}
internal fun correctErrors(): Builder {
if (mcc == null) mcc = 0
if (mnc == null) mnc = 0
if (utranCid == null) utranCid = 0
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy