
commonMain.aws.sdk.kotlin.services.groundstation.model.AntennaDownlinkDemodDecodeConfig.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 how AWS Ground Station should configure an antenna for downlink demod decode during a contact.
*/
public class AntennaDownlinkDemodDecodeConfig private constructor(builder: Builder) {
/**
* Information about the decode `Config`.
*/
public val decodeConfig: aws.sdk.kotlin.services.groundstation.model.DecodeConfig? = builder.decodeConfig
/**
* Information about the demodulation `Config`.
*/
public val demodulationConfig: aws.sdk.kotlin.services.groundstation.model.DemodulationConfig? = builder.demodulationConfig
/**
* Information about the spectral `Config`.
*/
public val spectrumConfig: aws.sdk.kotlin.services.groundstation.model.SpectrumConfig? = builder.spectrumConfig
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.groundstation.model.AntennaDownlinkDemodDecodeConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AntennaDownlinkDemodDecodeConfig(")
append("decodeConfig=$decodeConfig,")
append("demodulationConfig=$demodulationConfig,")
append("spectrumConfig=$spectrumConfig")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = decodeConfig?.hashCode() ?: 0
result = 31 * result + (demodulationConfig?.hashCode() ?: 0)
result = 31 * result + (spectrumConfig?.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 AntennaDownlinkDemodDecodeConfig
if (decodeConfig != other.decodeConfig) return false
if (demodulationConfig != other.demodulationConfig) return false
if (spectrumConfig != other.spectrumConfig) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.groundstation.model.AntennaDownlinkDemodDecodeConfig = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Information about the decode `Config`.
*/
public var decodeConfig: aws.sdk.kotlin.services.groundstation.model.DecodeConfig? = null
/**
* Information about the demodulation `Config`.
*/
public var demodulationConfig: aws.sdk.kotlin.services.groundstation.model.DemodulationConfig? = null
/**
* Information about the spectral `Config`.
*/
public var spectrumConfig: aws.sdk.kotlin.services.groundstation.model.SpectrumConfig? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.groundstation.model.AntennaDownlinkDemodDecodeConfig) : this() {
this.decodeConfig = x.decodeConfig
this.demodulationConfig = x.demodulationConfig
this.spectrumConfig = x.spectrumConfig
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.groundstation.model.AntennaDownlinkDemodDecodeConfig = AntennaDownlinkDemodDecodeConfig(this)
/**
* construct an [aws.sdk.kotlin.services.groundstation.model.DecodeConfig] inside the given [block]
*/
public fun decodeConfig(block: aws.sdk.kotlin.services.groundstation.model.DecodeConfig.Builder.() -> kotlin.Unit) {
this.decodeConfig = aws.sdk.kotlin.services.groundstation.model.DecodeConfig.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.groundstation.model.DemodulationConfig] inside the given [block]
*/
public fun demodulationConfig(block: aws.sdk.kotlin.services.groundstation.model.DemodulationConfig.Builder.() -> kotlin.Unit) {
this.demodulationConfig = aws.sdk.kotlin.services.groundstation.model.DemodulationConfig.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.groundstation.model.SpectrumConfig] inside the given [block]
*/
public fun spectrumConfig(block: aws.sdk.kotlin.services.groundstation.model.SpectrumConfig.Builder.() -> kotlin.Unit) {
this.spectrumConfig = aws.sdk.kotlin.services.groundstation.model.SpectrumConfig.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy