commonMain.aws.sdk.kotlin.services.iotwireless.model.Accuracy.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
/**
* The accuracy of the estimated position in meters. An empty value indicates that no position data is available. A value of ‘0.0’ value indicates that position data is available. This data corresponds to the position information that you specified instead of the position computed by solver.
*/
public class Accuracy private constructor(builder: Builder) {
/**
* The horizontal accuracy of the estimated position, which is the difference between the estimated location and the actual device location.
*/
public val horizontalAccuracy: kotlin.Float? = builder.horizontalAccuracy
/**
* The vertical accuracy of the estimated position, which is the difference between the estimated altitude and actual device latitude in meters.
*/
public val verticalAccuracy: kotlin.Float? = builder.verticalAccuracy
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotwireless.model.Accuracy = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Accuracy(")
append("horizontalAccuracy=$horizontalAccuracy,")
append("verticalAccuracy=$verticalAccuracy")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = horizontalAccuracy?.hashCode() ?: 0
result = 31 * result + (verticalAccuracy?.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 Accuracy
if (!(horizontalAccuracy?.equals(other.horizontalAccuracy) ?: (other.horizontalAccuracy == null))) return false
if (!(verticalAccuracy?.equals(other.verticalAccuracy) ?: (other.verticalAccuracy == null))) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotwireless.model.Accuracy = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The horizontal accuracy of the estimated position, which is the difference between the estimated location and the actual device location.
*/
public var horizontalAccuracy: kotlin.Float? = null
/**
* The vertical accuracy of the estimated position, which is the difference between the estimated altitude and actual device latitude in meters.
*/
public var verticalAccuracy: kotlin.Float? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.Accuracy) : this() {
this.horizontalAccuracy = x.horizontalAccuracy
this.verticalAccuracy = x.verticalAccuracy
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotwireless.model.Accuracy = Accuracy(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy