commonMain.aws.sdk.kotlin.services.iotwireless.model.WirelessGatewayStatistics.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
/**
* Information about a wireless gateway's operation.
*/
public class WirelessGatewayStatistics private constructor(builder: Builder) {
/**
* The Amazon Resource Name of the resource.
*/
public val arn: kotlin.String? = builder.arn
/**
* The description of the resource.
*/
public val description: kotlin.String? = builder.description
/**
* The ID of the wireless gateway reporting the data.
*/
public val id: kotlin.String? = builder.id
/**
* The date and time when the most recent uplink was received.
*
* This value is only valid for 3 months.
*/
public val lastUplinkReceivedAt: kotlin.String? = builder.lastUplinkReceivedAt
/**
* LoRaWAN gateway info.
*/
public val loRaWan: aws.sdk.kotlin.services.iotwireless.model.LoRaWanGateway? = builder.loRaWan
/**
* The name of the resource.
*/
public val name: kotlin.String? = builder.name
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotwireless.model.WirelessGatewayStatistics = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("WirelessGatewayStatistics(")
append("arn=$arn,")
append("description=$description,")
append("id=$id,")
append("lastUplinkReceivedAt=$lastUplinkReceivedAt,")
append("loRaWan=$loRaWan,")
append("name=$name")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (lastUplinkReceivedAt?.hashCode() ?: 0)
result = 31 * result + (loRaWan?.hashCode() ?: 0)
result = 31 * result + (name?.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 WirelessGatewayStatistics
if (arn != other.arn) return false
if (description != other.description) return false
if (id != other.id) return false
if (lastUplinkReceivedAt != other.lastUplinkReceivedAt) return false
if (loRaWan != other.loRaWan) return false
if (name != other.name) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotwireless.model.WirelessGatewayStatistics = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name of the resource.
*/
public var arn: kotlin.String? = null
/**
* The description of the resource.
*/
public var description: kotlin.String? = null
/**
* The ID of the wireless gateway reporting the data.
*/
public var id: kotlin.String? = null
/**
* The date and time when the most recent uplink was received.
*
* This value is only valid for 3 months.
*/
public var lastUplinkReceivedAt: kotlin.String? = null
/**
* LoRaWAN gateway info.
*/
public var loRaWan: aws.sdk.kotlin.services.iotwireless.model.LoRaWanGateway? = null
/**
* The name of the resource.
*/
public var name: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.WirelessGatewayStatistics) : this() {
this.arn = x.arn
this.description = x.description
this.id = x.id
this.lastUplinkReceivedAt = x.lastUplinkReceivedAt
this.loRaWan = x.loRaWan
this.name = x.name
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotwireless.model.WirelessGatewayStatistics = WirelessGatewayStatistics(this)
/**
* construct an [aws.sdk.kotlin.services.iotwireless.model.LoRaWanGateway] inside the given [block]
*/
public fun loRaWan(block: aws.sdk.kotlin.services.iotwireless.model.LoRaWanGateway.Builder.() -> kotlin.Unit) {
this.loRaWan = aws.sdk.kotlin.services.iotwireless.model.LoRaWanGateway.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy