commonMain.aws.sdk.kotlin.services.iotwireless.model.WcdmaLocalId.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
/**
* WCDMA local identification (local ID) information.
*/
public class WcdmaLocalId private constructor(builder: Builder) {
/**
* Primary Scrambling Code.
*/
public val psc: kotlin.Int = requireNotNull(builder.psc) { "A non-null value must be provided for psc" }
/**
* WCDMA UTRA Absolute RF Channel Number downlink.
*/
public val uarfcndl: kotlin.Int = requireNotNull(builder.uarfcndl) { "A non-null value must be provided for uarfcndl" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotwireless.model.WcdmaLocalId = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("WcdmaLocalId(")
append("psc=$psc,")
append("uarfcndl=$uarfcndl")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = psc
result = 31 * result + (uarfcndl)
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 WcdmaLocalId
if (psc != other.psc) return false
if (uarfcndl != other.uarfcndl) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotwireless.model.WcdmaLocalId = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Primary Scrambling Code.
*/
public var psc: kotlin.Int? = null
/**
* WCDMA UTRA Absolute RF Channel Number downlink.
*/
public var uarfcndl: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.WcdmaLocalId) : this() {
this.psc = x.psc
this.uarfcndl = x.uarfcndl
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotwireless.model.WcdmaLocalId = WcdmaLocalId(this)
internal fun correctErrors(): Builder {
if (psc == null) psc = 0
if (uarfcndl == null) uarfcndl = 0
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy