commonMain.aws.sdk.kotlin.services.iotwireless.model.LoRaWanDeviceMetadata.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
/**
* LoRaWAN device metatdata.
*/
public class LoRaWanDeviceMetadata private constructor(builder: Builder) {
/**
* The DataRate value.
*/
public val dataRate: kotlin.Int? = builder.dataRate
/**
* The DevEUI value.
*/
public val devEui: kotlin.String? = builder.devEui
/**
* The FPort value.
*/
public val fPort: kotlin.Int? = builder.fPort
/**
* The device's channel frequency in Hz.
*/
public val frequency: kotlin.Int? = builder.frequency
/**
* Information about the gateways accessed by the device.
*/
public val gateways: List? = builder.gateways
/**
* Information about the LoRaWAN public network accessed by the device.
*/
public val publicGateways: List? = builder.publicGateways
/**
* The date and time of the metadata.
*/
public val timestamp: kotlin.String? = builder.timestamp
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotwireless.model.LoRaWanDeviceMetadata = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("LoRaWanDeviceMetadata(")
append("dataRate=$dataRate,")
append("devEui=$devEui,")
append("fPort=$fPort,")
append("frequency=$frequency,")
append("gateways=$gateways,")
append("publicGateways=$publicGateways,")
append("timestamp=$timestamp")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = dataRate ?: 0
result = 31 * result + (devEui?.hashCode() ?: 0)
result = 31 * result + (fPort ?: 0)
result = 31 * result + (frequency ?: 0)
result = 31 * result + (gateways?.hashCode() ?: 0)
result = 31 * result + (publicGateways?.hashCode() ?: 0)
result = 31 * result + (timestamp?.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 LoRaWanDeviceMetadata
if (dataRate != other.dataRate) return false
if (devEui != other.devEui) return false
if (fPort != other.fPort) return false
if (frequency != other.frequency) return false
if (gateways != other.gateways) return false
if (publicGateways != other.publicGateways) return false
if (timestamp != other.timestamp) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotwireless.model.LoRaWanDeviceMetadata = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The DataRate value.
*/
public var dataRate: kotlin.Int? = null
/**
* The DevEUI value.
*/
public var devEui: kotlin.String? = null
/**
* The FPort value.
*/
public var fPort: kotlin.Int? = null
/**
* The device's channel frequency in Hz.
*/
public var frequency: kotlin.Int? = null
/**
* Information about the gateways accessed by the device.
*/
public var gateways: List? = null
/**
* Information about the LoRaWAN public network accessed by the device.
*/
public var publicGateways: List? = null
/**
* The date and time of the metadata.
*/
public var timestamp: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.LoRaWanDeviceMetadata) : this() {
this.dataRate = x.dataRate
this.devEui = x.devEui
this.fPort = x.fPort
this.frequency = x.frequency
this.gateways = x.gateways
this.publicGateways = x.publicGateways
this.timestamp = x.timestamp
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotwireless.model.LoRaWanDeviceMetadata = LoRaWanDeviceMetadata(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy