commonMain.aws.sdk.kotlin.services.iotwireless.model.LoRaWanPublicGatewayMetadata.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 public gateway metadata.
*/
public class LoRaWanPublicGatewayMetadata private constructor(builder: Builder) {
/**
* Boolean that indicates whether downlink is allowed using the network.
*/
public val dlAllowed: kotlin.Boolean? = builder.dlAllowed
/**
* The ID of the gateways that are operated by the network provider.
*/
public val id: kotlin.String? = builder.id
/**
* The ID of the LoRaWAN public network provider.
*/
public val providerNetId: kotlin.String? = builder.providerNetId
/**
* The frequency band (RFRegion) value.
*/
public val rfRegion: kotlin.String? = builder.rfRegion
/**
* The RSSI (received signal strength indicator) value.
*/
public val rssi: kotlin.Double? = builder.rssi
/**
* The SNR (signal to noise ratio) 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.LoRaWanPublicGatewayMetadata = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("LoRaWanPublicGatewayMetadata(")
append("dlAllowed=$dlAllowed,")
append("id=$id,")
append("providerNetId=$providerNetId,")
append("rfRegion=$rfRegion,")
append("rssi=$rssi,")
append("snr=$snr")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = dlAllowed?.hashCode() ?: 0
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (providerNetId?.hashCode() ?: 0)
result = 31 * result + (rfRegion?.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 LoRaWanPublicGatewayMetadata
if (dlAllowed != other.dlAllowed) return false
if (id != other.id) return false
if (providerNetId != other.providerNetId) return false
if (rfRegion != other.rfRegion) 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.LoRaWanPublicGatewayMetadata = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Boolean that indicates whether downlink is allowed using the network.
*/
public var dlAllowed: kotlin.Boolean? = null
/**
* The ID of the gateways that are operated by the network provider.
*/
public var id: kotlin.String? = null
/**
* The ID of the LoRaWAN public network provider.
*/
public var providerNetId: kotlin.String? = null
/**
* The frequency band (RFRegion) value.
*/
public var rfRegion: kotlin.String? = null
/**
* The RSSI (received signal strength indicator) value.
*/
public var rssi: kotlin.Double? = null
/**
* The SNR (signal to noise ratio) value.
*/
public var snr: kotlin.Double? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.LoRaWanPublicGatewayMetadata) : this() {
this.dlAllowed = x.dlAllowed
this.id = x.id
this.providerNetId = x.providerNetId
this.rfRegion = x.rfRegion
this.rssi = x.rssi
this.snr = x.snr
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotwireless.model.LoRaWanPublicGatewayMetadata = LoRaWanPublicGatewayMetadata(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy