commonMain.aws.sdk.kotlin.services.iotwireless.model.OtaaV11.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iotwireless-jvm Show documentation
Show all versions of iotwireless-jvm Show documentation
The AWS Kotlin client for IoT Wireless
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iotwireless.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* OTAA device object for v1.1
*/
public class OtaaV11 private constructor(builder: Builder) {
/**
* The AppKey value.
*/
public val appKey: kotlin.String? = builder.appKey
/**
* The JoinEUI value.
*/
public val joinEui: kotlin.String? = builder.joinEui
/**
* The NwkKey value.
*/
public val nwkKey: kotlin.String? = builder.nwkKey
public companion object {
public 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")
append(")")
}
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 (other == null || this::class != other::class) 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
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotwireless.model.OtaaV11 = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The AppKey value.
*/
public var appKey: kotlin.String? = null
/**
* The JoinEUI value.
*/
public var joinEui: kotlin.String? = null
/**
* The NwkKey value.
*/
public var nwkKey: kotlin.String? = null
@PublishedApi
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)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy