commonMain.aws.sdk.kotlin.services.iotwireless.model.AbpV11.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
/**
* ABP device object for LoRaWAN specification v1.1
*/
public class AbpV11 private constructor(builder: Builder) {
/**
* The DevAddr value.
*/
public val devAddr: kotlin.String? = builder.devAddr
/**
* The FCnt init value.
*/
public val fCntStart: kotlin.Int? = builder.fCntStart
/**
* Session keys for ABP v1.1
*/
public val sessionKeys: aws.sdk.kotlin.services.iotwireless.model.SessionKeysAbpV11? = builder.sessionKeys
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotwireless.model.AbpV11 = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AbpV11(")
append("devAddr=$devAddr,")
append("fCntStart=$fCntStart,")
append("sessionKeys=$sessionKeys")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = devAddr?.hashCode() ?: 0
result = 31 * result + (fCntStart ?: 0)
result = 31 * result + (sessionKeys?.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 AbpV11
if (devAddr != other.devAddr) return false
if (fCntStart != other.fCntStart) return false
if (sessionKeys != other.sessionKeys) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotwireless.model.AbpV11 = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The DevAddr value.
*/
public var devAddr: kotlin.String? = null
/**
* The FCnt init value.
*/
public var fCntStart: kotlin.Int? = null
/**
* Session keys for ABP v1.1
*/
public var sessionKeys: aws.sdk.kotlin.services.iotwireless.model.SessionKeysAbpV11? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.AbpV11) : this() {
this.devAddr = x.devAddr
this.fCntStart = x.fCntStart
this.sessionKeys = x.sessionKeys
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotwireless.model.AbpV11 = AbpV11(this)
/**
* construct an [aws.sdk.kotlin.services.iotwireless.model.SessionKeysAbpV11] inside the given [block]
*/
public fun sessionKeys(block: aws.sdk.kotlin.services.iotwireless.model.SessionKeysAbpV11.Builder.() -> kotlin.Unit) {
this.sessionKeys = aws.sdk.kotlin.services.iotwireless.model.SessionKeysAbpV11.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy