commonMain.aws.sdk.kotlin.services.iotwireless.model.TdscdmaLocalId.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 local identification (local Id) information.
*/
public class TdscdmaLocalId private constructor(builder: Builder) {
/**
* Cell parameters for TD-SCDMA.
*/
public val cellParams: kotlin.Int = requireNotNull(builder.cellParams) { "A non-null value must be provided for cellParams" }
/**
* TD-SCDMA UTRA (Universal Terrestrial Radio Access Network) absolute RF channel number (UARFCN).
*/
public val uarfcn: kotlin.Int = requireNotNull(builder.uarfcn) { "A non-null value must be provided for uarfcn" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotwireless.model.TdscdmaLocalId = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TdscdmaLocalId(")
append("cellParams=$cellParams,")
append("uarfcn=$uarfcn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = cellParams
result = 31 * result + (uarfcn)
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 TdscdmaLocalId
if (cellParams != other.cellParams) return false
if (uarfcn != other.uarfcn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotwireless.model.TdscdmaLocalId = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Cell parameters for TD-SCDMA.
*/
public var cellParams: kotlin.Int? = null
/**
* TD-SCDMA UTRA (Universal Terrestrial Radio Access Network) absolute RF channel number (UARFCN).
*/
public var uarfcn: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.TdscdmaLocalId) : this() {
this.cellParams = x.cellParams
this.uarfcn = x.uarfcn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotwireless.model.TdscdmaLocalId = TdscdmaLocalId(this)
internal fun correctErrors(): Builder {
if (cellParams == null) cellParams = 0
if (uarfcn == null) uarfcn = 0
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy