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

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

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Session keys for ABP v1.1
 */
public class SessionKeysAbpV10X private constructor(builder: Builder) {
    /**
     * The AppSKey value.
     */
    public val appSKey: kotlin.String? = builder.appSKey
    /**
     * The NwkSKey value.
     */
    public val nwkSKey: kotlin.String? = builder.nwkSKey

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

    override fun toString(): kotlin.String = buildString {
        append("SessionKeysAbpV10X(")
        append("appSKey=$appSKey,")
        append("nwkSKey=$nwkSKey")
        append(")")
    }

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

        if (appSKey != other.appSKey) return false
        if (nwkSKey != other.nwkSKey) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The AppSKey value.
         */
        public var appSKey: kotlin.String? = null
        /**
         * The NwkSKey value.
         */
        public var nwkSKey: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.SessionKeysAbpV10X) : this() {
            this.appSKey = x.appSKey
            this.nwkSKey = x.nwkSKey
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy