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

commonMain.aws.sdk.kotlin.services.iotwireless.model.CellTowers.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

/**
 * The cell towers that were used to perform the measurements.
 */
public class CellTowers private constructor(builder: Builder) {
    /**
     * CDMA object information.
     */
    public val cdma: List? = builder.cdma
    /**
     * GSM object information.
     */
    public val gsm: List? = builder.gsm
    /**
     * LTE object information.
     */
    public val lte: List? = builder.lte
    /**
     * TD-SCDMA object information.
     */
    public val tdscdma: List? = builder.tdscdma
    /**
     * WCDMA object information.
     */
    public val wcdma: List? = builder.wcdma

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotwireless.model.CellTowers = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("CellTowers(")
        append("cdma=$cdma,")
        append("gsm=$gsm,")
        append("lte=$lte,")
        append("tdscdma=$tdscdma,")
        append("wcdma=$wcdma")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = cdma?.hashCode() ?: 0
        result = 31 * result + (gsm?.hashCode() ?: 0)
        result = 31 * result + (lte?.hashCode() ?: 0)
        result = 31 * result + (tdscdma?.hashCode() ?: 0)
        result = 31 * result + (wcdma?.hashCode() ?: 0)
        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 CellTowers

        if (cdma != other.cdma) return false
        if (gsm != other.gsm) return false
        if (lte != other.lte) return false
        if (tdscdma != other.tdscdma) return false
        if (wcdma != other.wcdma) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotwireless.model.CellTowers = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * CDMA object information.
         */
        public var cdma: List? = null
        /**
         * GSM object information.
         */
        public var gsm: List? = null
        /**
         * LTE object information.
         */
        public var lte: List? = null
        /**
         * TD-SCDMA object information.
         */
        public var tdscdma: List? = null
        /**
         * WCDMA object information.
         */
        public var wcdma: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.CellTowers) : this() {
            this.cdma = x.cdma
            this.gsm = x.gsm
            this.lte = x.lte
            this.tdscdma = x.tdscdma
            this.wcdma = x.wcdma
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.iotwireless.model.CellTowers = CellTowers(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy