commonMain.aws.sdk.kotlin.services.iotwireless.model.SidewalkDeviceMetadata.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
/**
* MetaData for Sidewalk device.
*/
public class SidewalkDeviceMetadata private constructor(builder: Builder) {
/**
* Sidewalk device battery level.
*/
public val batteryLevel: aws.sdk.kotlin.services.iotwireless.model.BatteryLevel? = builder.batteryLevel
/**
* Device state defines the device status of sidewalk device.
*/
public val deviceState: aws.sdk.kotlin.services.iotwireless.model.DeviceState? = builder.deviceState
/**
* Sidewalk device status notification.
*/
public val event: aws.sdk.kotlin.services.iotwireless.model.Event? = builder.event
/**
* The RSSI value.
*/
public val rssi: kotlin.Int? = builder.rssi
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotwireless.model.SidewalkDeviceMetadata = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SidewalkDeviceMetadata(")
append("batteryLevel=$batteryLevel,")
append("deviceState=$deviceState,")
append("event=$event,")
append("rssi=$rssi")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = batteryLevel?.hashCode() ?: 0
result = 31 * result + (deviceState?.hashCode() ?: 0)
result = 31 * result + (event?.hashCode() ?: 0)
result = 31 * result + (rssi ?: 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 SidewalkDeviceMetadata
if (batteryLevel != other.batteryLevel) return false
if (deviceState != other.deviceState) return false
if (event != other.event) return false
if (rssi != other.rssi) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotwireless.model.SidewalkDeviceMetadata = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Sidewalk device battery level.
*/
public var batteryLevel: aws.sdk.kotlin.services.iotwireless.model.BatteryLevel? = null
/**
* Device state defines the device status of sidewalk device.
*/
public var deviceState: aws.sdk.kotlin.services.iotwireless.model.DeviceState? = null
/**
* Sidewalk device status notification.
*/
public var event: aws.sdk.kotlin.services.iotwireless.model.Event? = null
/**
* The RSSI value.
*/
public var rssi: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.SidewalkDeviceMetadata) : this() {
this.batteryLevel = x.batteryLevel
this.deviceState = x.deviceState
this.event = x.event
this.rssi = x.rssi
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotwireless.model.SidewalkDeviceMetadata = SidewalkDeviceMetadata(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy