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

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

There is a newer version: 1.3.34
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

/**
 * Session keys for ABP v1.1
 */
public class SessionKeysAbpV11 private constructor(builder: Builder) {
    /**
     * The AppSKey value.
     */
    public val appSKey: kotlin.String? = builder.appSKey
    /**
     * The FNwkSIntKey value.
     */
    public val fNwkSIntKey: kotlin.String? = builder.fNwkSIntKey
    /**
     * The NwkSEncKey value.
     */
    public val nwkSEncKey: kotlin.String? = builder.nwkSEncKey
    /**
     * The SNwkSIntKey value.
     */
    public val sNwkSIntKey: kotlin.String? = builder.sNwkSIntKey

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

    override fun toString(): kotlin.String = buildString {
        append("SessionKeysAbpV11(")
        append("appSKey=$appSKey,")
        append("fNwkSIntKey=$fNwkSIntKey,")
        append("nwkSEncKey=$nwkSEncKey,")
        append("sNwkSIntKey=$sNwkSIntKey")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = appSKey?.hashCode() ?: 0
        result = 31 * result + (fNwkSIntKey?.hashCode() ?: 0)
        result = 31 * result + (nwkSEncKey?.hashCode() ?: 0)
        result = 31 * result + (sNwkSIntKey?.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 SessionKeysAbpV11

        if (appSKey != other.appSKey) return false
        if (fNwkSIntKey != other.fNwkSIntKey) return false
        if (nwkSEncKey != other.nwkSEncKey) return false
        if (sNwkSIntKey != other.sNwkSIntKey) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The AppSKey value.
         */
        public var appSKey: kotlin.String? = null
        /**
         * The FNwkSIntKey value.
         */
        public var fNwkSIntKey: kotlin.String? = null
        /**
         * The NwkSEncKey value.
         */
        public var nwkSEncKey: kotlin.String? = null
        /**
         * The SNwkSIntKey value.
         */
        public var sNwkSIntKey: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.SessionKeysAbpV11) : this() {
            this.appSKey = x.appSKey
            this.fNwkSIntKey = x.fNwkSIntKey
            this.nwkSEncKey = x.nwkSEncKey
            this.sNwkSIntKey = x.sNwkSIntKey
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy