All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.iotwireless.model.GsmLocalId.kt Maven / Gradle / Ivy

There is a newer version: 1.3.31
Show newest version
// 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 - 2024 Weber Informatics LLC | Privacy Policy