commonMain.aws.sdk.kotlin.services.iotwireless.model.GetPositionResponse.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
@Deprecated("This operation is no longer supported.")
public class GetPositionResponse private constructor(builder: Builder) {
/**
* 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 val accuracy: aws.sdk.kotlin.services.iotwireless.model.Accuracy? = builder.accuracy
/**
* The position information of the resource.
*/
public val position: List? = builder.position
/**
* The vendor of the positioning solver.
*/
public val solverProvider: aws.sdk.kotlin.services.iotwireless.model.PositionSolverProvider? = builder.solverProvider
/**
* The type of solver used to identify the position of the resource.
*/
public val solverType: aws.sdk.kotlin.services.iotwireless.model.PositionSolverType? = builder.solverType
/**
* The version of the positioning solver.
*/
public val solverVersion: kotlin.String? = builder.solverVersion
/**
* The timestamp at which the device's position was determined.
*/
public val timestamp: kotlin.String? = builder.timestamp
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotwireless.model.GetPositionResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetPositionResponse(")
append("accuracy=$accuracy,")
append("position=$position,")
append("solverProvider=$solverProvider,")
append("solverType=$solverType,")
append("solverVersion=$solverVersion,")
append("timestamp=$timestamp")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = accuracy?.hashCode() ?: 0
result = 31 * result + (position?.hashCode() ?: 0)
result = 31 * result + (solverProvider?.hashCode() ?: 0)
result = 31 * result + (solverType?.hashCode() ?: 0)
result = 31 * result + (solverVersion?.hashCode() ?: 0)
result = 31 * result + (timestamp?.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 GetPositionResponse
if (accuracy != other.accuracy) return false
if (position != other.position) return false
if (solverProvider != other.solverProvider) return false
if (solverType != other.solverType) return false
if (solverVersion != other.solverVersion) return false
if (timestamp != other.timestamp) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotwireless.model.GetPositionResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* 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 var accuracy: aws.sdk.kotlin.services.iotwireless.model.Accuracy? = null
/**
* The position information of the resource.
*/
public var position: List? = null
/**
* The vendor of the positioning solver.
*/
public var solverProvider: aws.sdk.kotlin.services.iotwireless.model.PositionSolverProvider? = null
/**
* The type of solver used to identify the position of the resource.
*/
public var solverType: aws.sdk.kotlin.services.iotwireless.model.PositionSolverType? = null
/**
* The version of the positioning solver.
*/
public var solverVersion: kotlin.String? = null
/**
* The timestamp at which the device's position was determined.
*/
public var timestamp: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.GetPositionResponse) : this() {
this.accuracy = x.accuracy
this.position = x.position
this.solverProvider = x.solverProvider
this.solverType = x.solverType
this.solverVersion = x.solverVersion
this.timestamp = x.timestamp
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotwireless.model.GetPositionResponse = GetPositionResponse(this)
/**
* construct an [aws.sdk.kotlin.services.iotwireless.model.Accuracy] inside the given [block]
*/
public fun accuracy(block: aws.sdk.kotlin.services.iotwireless.model.Accuracy.Builder.() -> kotlin.Unit) {
this.accuracy = aws.sdk.kotlin.services.iotwireless.model.Accuracy.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy