commonMain.aws.sdk.kotlin.services.iotwireless.model.SemtechGnssDetail.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
/**
* Details of the Semtech GNSS solver object.
*/
public class SemtechGnssDetail private constructor(builder: Builder) {
/**
* Whether forward error correction is enabled.
*/
public val fec: aws.sdk.kotlin.services.iotwireless.model.PositionConfigurationFec? = builder.fec
/**
* The vendor of the solver object.
*/
public val provider: aws.sdk.kotlin.services.iotwireless.model.PositionSolverProvider? = builder.provider
/**
* The status indicating whether the solver is enabled.
*/
public val status: aws.sdk.kotlin.services.iotwireless.model.PositionConfigurationStatus? = builder.status
/**
* The type of positioning solver used.
*/
public val type: aws.sdk.kotlin.services.iotwireless.model.PositionSolverType? = builder.type
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotwireless.model.SemtechGnssDetail = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SemtechGnssDetail(")
append("fec=$fec,")
append("provider=$provider,")
append("status=$status,")
append("type=$type")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = fec?.hashCode() ?: 0
result = 31 * result + (provider?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (type?.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 SemtechGnssDetail
if (fec != other.fec) return false
if (provider != other.provider) return false
if (status != other.status) return false
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotwireless.model.SemtechGnssDetail = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Whether forward error correction is enabled.
*/
public var fec: aws.sdk.kotlin.services.iotwireless.model.PositionConfigurationFec? = null
/**
* The vendor of the solver object.
*/
public var provider: aws.sdk.kotlin.services.iotwireless.model.PositionSolverProvider? = null
/**
* The status indicating whether the solver is enabled.
*/
public var status: aws.sdk.kotlin.services.iotwireless.model.PositionConfigurationStatus? = null
/**
* The type of positioning solver used.
*/
public var type: aws.sdk.kotlin.services.iotwireless.model.PositionSolverType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.SemtechGnssDetail) : this() {
this.fec = x.fec
this.provider = x.provider
this.status = x.status
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotwireless.model.SemtechGnssDetail = SemtechGnssDetail(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy