commonMain.aws.sdk.kotlin.services.iotwireless.model.GetPositionEstimateResponse.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
public class GetPositionEstimateResponse private constructor(builder: Builder) {
/**
* The position information of the resource, displayed as a JSON payload. The payload is of type blob and uses the [GeoJSON](https://geojson.org/) format, which a format that's used to encode geographic data structures. A sample payload contains the timestamp information, the WGS84 coordinates of the location, and the accuracy and confidence level. For more information and examples, see [Resolve device location (console)](https://docs.aws.amazon.com/iot/latest/developerguide/location-resolve-console.html).
*/
public val geoJsonPayload: kotlin.ByteArray? = builder.geoJsonPayload
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotwireless.model.GetPositionEstimateResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetPositionEstimateResponse(")
append("geoJsonPayload=$geoJsonPayload")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = geoJsonPayload?.contentHashCode() ?: 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 GetPositionEstimateResponse
if (geoJsonPayload != null) {
if (other.geoJsonPayload == null) return false
if (!geoJsonPayload.contentEquals(other.geoJsonPayload)) return false
} else if (other.geoJsonPayload != null) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotwireless.model.GetPositionEstimateResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The position information of the resource, displayed as a JSON payload. The payload is of type blob and uses the [GeoJSON](https://geojson.org/) format, which a format that's used to encode geographic data structures. A sample payload contains the timestamp information, the WGS84 coordinates of the location, and the accuracy and confidence level. For more information and examples, see [Resolve device location (console)](https://docs.aws.amazon.com/iot/latest/developerguide/location-resolve-console.html).
*/
public var geoJsonPayload: kotlin.ByteArray? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.GetPositionEstimateResponse) : this() {
this.geoJsonPayload = x.geoJsonPayload
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotwireless.model.GetPositionEstimateResponse = GetPositionEstimateResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy