
commonMain.aws.sdk.kotlin.services.groundstation.model.TrackingConfig.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.groundstation.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Object that determines whether tracking should be used during a contact executed with this `Config` in the mission profile.
*/
public class TrackingConfig private constructor(builder: Builder) {
/**
* Current setting for autotrack.
*/
public val autotrack: aws.sdk.kotlin.services.groundstation.model.Criticality = requireNotNull(builder.autotrack) { "A non-null value must be provided for autotrack" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.groundstation.model.TrackingConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TrackingConfig(")
append("autotrack=$autotrack")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = autotrack.hashCode()
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 TrackingConfig
if (autotrack != other.autotrack) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.groundstation.model.TrackingConfig = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Current setting for autotrack.
*/
public var autotrack: aws.sdk.kotlin.services.groundstation.model.Criticality? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.groundstation.model.TrackingConfig) : this() {
this.autotrack = x.autotrack
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.groundstation.model.TrackingConfig = TrackingConfig(this)
internal fun correctErrors(): Builder {
if (autotrack == null) autotrack = Criticality.SdkUnknown("no value provided")
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy