All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.groundstation.model.AntennaDownlinkConfig.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 during a contact.
 */
public class AntennaDownlinkConfig private constructor(builder: Builder) {
    /**
     * Object that describes a 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.AntennaDownlinkConfig = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("AntennaDownlinkConfig(")
        append("spectrumConfig=$spectrumConfig")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var 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 AntennaDownlinkConfig

        if (spectrumConfig != other.spectrumConfig) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.groundstation.model.AntennaDownlinkConfig = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * Object that describes a 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.AntennaDownlinkConfig) : this() {
            this.spectrumConfig = x.spectrumConfig
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.groundstation.model.AntennaDownlinkConfig = AntennaDownlinkConfig(this)

        /**
         * 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