commonMain.aws.sdk.kotlin.services.iotwireless.model.LteLocalId.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
/**
* LTE local identification (local ID) information.
*/
public class LteLocalId private constructor(builder: Builder) {
/**
* Evolved universal terrestrial radio access (E-UTRA) absolute radio frequency channel number (FCN).
*/
public val earfcn: kotlin.Int = requireNotNull(builder.earfcn) { "A non-null value must be provided for earfcn" }
/**
* Physical cell ID.
*/
public val pci: kotlin.Int = requireNotNull(builder.pci) { "A non-null value must be provided for pci" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotwireless.model.LteLocalId = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("LteLocalId(")
append("earfcn=$earfcn,")
append("pci=$pci")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = earfcn
result = 31 * result + (pci)
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 LteLocalId
if (earfcn != other.earfcn) return false
if (pci != other.pci) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotwireless.model.LteLocalId = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Evolved universal terrestrial radio access (E-UTRA) absolute radio frequency channel number (FCN).
*/
public var earfcn: kotlin.Int? = null
/**
* Physical cell ID.
*/
public var pci: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.LteLocalId) : this() {
this.earfcn = x.earfcn
this.pci = x.pci
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotwireless.model.LteLocalId = LteLocalId(this)
internal fun correctErrors(): Builder {
if (earfcn == null) earfcn = 0
if (pci == null) pci = 0
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy