commonMain.aws.sdk.kotlin.services.iotwireless.model.CdmaLocalId.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
/**
* CDMA local ID information, which corresponds to the local identification parameters of a CDMA cell.
*/
public class CdmaLocalId private constructor(builder: Builder) {
/**
* CDMA channel information.
*/
public val cdmaChannel: kotlin.Int = requireNotNull(builder.cdmaChannel) { "A non-null value must be provided for cdmaChannel" }
/**
* Pseudo-noise offset, which is a characteristic of the signal from a cell on a radio tower.
*/
public val pnOffset: kotlin.Int = requireNotNull(builder.pnOffset) { "A non-null value must be provided for pnOffset" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotwireless.model.CdmaLocalId = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CdmaLocalId(")
append("cdmaChannel=$cdmaChannel,")
append("pnOffset=$pnOffset")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = cdmaChannel
result = 31 * result + (pnOffset)
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 CdmaLocalId
if (cdmaChannel != other.cdmaChannel) return false
if (pnOffset != other.pnOffset) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotwireless.model.CdmaLocalId = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* CDMA channel information.
*/
public var cdmaChannel: kotlin.Int? = null
/**
* Pseudo-noise offset, which is a characteristic of the signal from a cell on a radio tower.
*/
public var pnOffset: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.CdmaLocalId) : this() {
this.cdmaChannel = x.cdmaChannel
this.pnOffset = x.pnOffset
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotwireless.model.CdmaLocalId = CdmaLocalId(this)
internal fun correctErrors(): Builder {
if (cdmaChannel == null) cdmaChannel = 0
if (pnOffset == null) pnOffset = 0
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy