commonMain.aws.sdk.kotlin.services.iotwireless.model.LoRaWanGatewayMetadata.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 gateway metatdata.
*/
public class LoRaWanGatewayMetadata private constructor(builder: Builder) {
/**
* The gateway's EUI value.
*/
public val gatewayEui: kotlin.String? = builder.gatewayEui
/**
* The RSSI value.
*/
public val rssi: kotlin.Double? = builder.rssi
/**
* The SNR value.
*/
public val snr: kotlin.Double? = builder.snr
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotwireless.model.LoRaWanGatewayMetadata = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("LoRaWanGatewayMetadata(")
append("gatewayEui=$gatewayEui,")
append("rssi=$rssi,")
append("snr=$snr")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = gatewayEui?.hashCode() ?: 0
result = 31 * result + (rssi?.hashCode() ?: 0)
result = 31 * result + (snr?.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 LoRaWanGatewayMetadata
if (gatewayEui != other.gatewayEui) return false
if (!(rssi?.equals(other.rssi) ?: (other.rssi == null))) return false
if (!(snr?.equals(other.snr) ?: (other.snr == null))) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotwireless.model.LoRaWanGatewayMetadata = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The gateway's EUI value.
*/
public var gatewayEui: kotlin.String? = null
/**
* The RSSI value.
*/
public var rssi: kotlin.Double? = null
/**
* The SNR value.
*/
public var snr: kotlin.Double? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.LoRaWanGatewayMetadata) : this() {
this.gatewayEui = x.gatewayEui
this.rssi = x.rssi
this.snr = x.snr
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotwireless.model.LoRaWanGatewayMetadata = LoRaWanGatewayMetadata(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy