commonMain.aws.sdk.kotlin.services.iotwireless.model.GsmLocalId.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
/**
* GSM local ID information, which corresponds to the local identification parameters of a GSM cell.
*/
public class GsmLocalId private constructor(builder: Builder) {
/**
* GSM broadcast control channel.
*/
public val bcch: kotlin.Int = requireNotNull(builder.bcch) { "A non-null value must be provided for bcch" }
/**
* GSM base station identity code (BSIC).
*/
public val bsic: kotlin.Int = requireNotNull(builder.bsic) { "A non-null value must be provided for bsic" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotwireless.model.GsmLocalId = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GsmLocalId(")
append("bcch=$bcch,")
append("bsic=$bsic")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = bcch
result = 31 * result + (bsic)
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 GsmLocalId
if (bcch != other.bcch) return false
if (bsic != other.bsic) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotwireless.model.GsmLocalId = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* GSM broadcast control channel.
*/
public var bcch: kotlin.Int? = null
/**
* GSM base station identity code (BSIC).
*/
public var bsic: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.GsmLocalId) : this() {
this.bcch = x.bcch
this.bsic = x.bsic
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotwireless.model.GsmLocalId = GsmLocalId(this)
internal fun correctErrors(): Builder {
if (bcch == null) bcch = 0
if (bsic == null) bsic = 0
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy