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

commonMain.aws.sdk.kotlin.services.groundstation.model.AntennaUplinkConfig.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 the uplink `Config` of an antenna.
 */
public class AntennaUplinkConfig private constructor(builder: Builder) {
    /**
     * Information about the uplink spectral `Config`.
     */
    public val spectrumConfig: aws.sdk.kotlin.services.groundstation.model.UplinkSpectrumConfig? = builder.spectrumConfig
    /**
     * EIRP of the target.
     */
    public val targetEirp: aws.sdk.kotlin.services.groundstation.model.Eirp? = builder.targetEirp
    /**
     * Whether or not uplink transmit is disabled.
     */
    public val transmitDisabled: kotlin.Boolean? = builder.transmitDisabled

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.groundstation.model.AntennaUplinkConfig = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("AntennaUplinkConfig(")
        append("spectrumConfig=$spectrumConfig,")
        append("targetEirp=$targetEirp,")
        append("transmitDisabled=$transmitDisabled")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = spectrumConfig?.hashCode() ?: 0
        result = 31 * result + (targetEirp?.hashCode() ?: 0)
        result = 31 * result + (transmitDisabled?.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 AntennaUplinkConfig

        if (spectrumConfig != other.spectrumConfig) return false
        if (targetEirp != other.targetEirp) return false
        if (transmitDisabled != other.transmitDisabled) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Information about the uplink spectral `Config`.
         */
        public var spectrumConfig: aws.sdk.kotlin.services.groundstation.model.UplinkSpectrumConfig? = null
        /**
         * EIRP of the target.
         */
        public var targetEirp: aws.sdk.kotlin.services.groundstation.model.Eirp? = null
        /**
         * Whether or not uplink transmit is disabled.
         */
        public var transmitDisabled: kotlin.Boolean? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.groundstation.model.AntennaUplinkConfig) : this() {
            this.spectrumConfig = x.spectrumConfig
            this.targetEirp = x.targetEirp
            this.transmitDisabled = x.transmitDisabled
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.groundstation.model.UplinkSpectrumConfig] inside the given [block]
         */
        public fun spectrumConfig(block: aws.sdk.kotlin.services.groundstation.model.UplinkSpectrumConfig.Builder.() -> kotlin.Unit) {
            this.spectrumConfig = aws.sdk.kotlin.services.groundstation.model.UplinkSpectrumConfig.invoke(block)
        }

        /**
         * construct an [aws.sdk.kotlin.services.groundstation.model.Eirp] inside the given [block]
         */
        public fun targetEirp(block: aws.sdk.kotlin.services.groundstation.model.Eirp.Builder.() -> kotlin.Unit) {
            this.targetEirp = aws.sdk.kotlin.services.groundstation.model.Eirp.invoke(block)
        }

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy