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

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

There is a newer version: 1.3.99
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.iotwireless.model



/**
 * OTAA device object for v1.1
 */
class OtaaV11 private constructor(builder: Builder) {
    /**
     * The AppKey value.
     */
    val appKey: kotlin.String? = builder.appKey
    /**
     * The JoinEUI value.
     */
    val joinEui: kotlin.String? = builder.joinEui
    /**
     * The NwkKey value.
     */
    val nwkKey: kotlin.String? = builder.nwkKey

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

    override fun toString(): kotlin.String = buildString {
        append("OtaaV11(")
        append("appKey=$appKey,")
        append("joinEui=$joinEui,")
        append("nwkKey=$nwkKey)")
    }

    override fun hashCode(): kotlin.Int {
        var result = appKey?.hashCode() ?: 0
        result = 31 * result + (joinEui?.hashCode() ?: 0)
        result = 31 * result + (nwkKey?.hashCode() ?: 0)
        return result
    }

    override fun equals(other: kotlin.Any?): kotlin.Boolean {
        if (this === other) return true
        if (javaClass != other?.javaClass) return false

        other as OtaaV11

        if (appKey != other.appKey) return false
        if (joinEui != other.joinEui) return false
        if (nwkKey != other.nwkKey) return false

        return true
    }

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

    class Builder {
        /**
         * The AppKey value.
         */
        var appKey: kotlin.String? = null
        /**
         * The JoinEUI value.
         */
        var joinEui: kotlin.String? = null
        /**
         * The NwkKey value.
         */
        var nwkKey: kotlin.String? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.OtaaV11) : this() {
            this.appKey = x.appKey
            this.joinEui = x.joinEui
            this.nwkKey = x.nwkKey
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy