
commonMain.aws.sdk.kotlin.services.groundstation.model.UplinkEchoConfig.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
/**
* Information about an uplink echo `Config`.
*
* Parameters from the `AntennaUplinkConfig`, corresponding to the specified `AntennaUplinkConfigArn`, are used when this `UplinkEchoConfig` is used in a contact.
*/
public class UplinkEchoConfig private constructor(builder: Builder) {
/**
* ARN of an uplink `Config`.
*/
public val antennaUplinkConfigArn: kotlin.String = requireNotNull(builder.antennaUplinkConfigArn) { "A non-null value must be provided for antennaUplinkConfigArn" }
/**
* Whether or not an uplink `Config` is enabled.
*/
public val enabled: kotlin.Boolean = requireNotNull(builder.enabled) { "A non-null value must be provided for enabled" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.groundstation.model.UplinkEchoConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UplinkEchoConfig(")
append("antennaUplinkConfigArn=$antennaUplinkConfigArn,")
append("enabled=$enabled")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = antennaUplinkConfigArn.hashCode()
result = 31 * result + (enabled.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 UplinkEchoConfig
if (antennaUplinkConfigArn != other.antennaUplinkConfigArn) return false
if (enabled != other.enabled) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.groundstation.model.UplinkEchoConfig = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* ARN of an uplink `Config`.
*/
public var antennaUplinkConfigArn: kotlin.String? = null
/**
* Whether or not an uplink `Config` is enabled.
*/
public var enabled: kotlin.Boolean? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.groundstation.model.UplinkEchoConfig) : this() {
this.antennaUplinkConfigArn = x.antennaUplinkConfigArn
this.enabled = x.enabled
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.groundstation.model.UplinkEchoConfig = UplinkEchoConfig(this)
internal fun correctErrors(): Builder {
if (antennaUplinkConfigArn == null) antennaUplinkConfigArn = ""
if (enabled == null) enabled = false
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy