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

commonMain.aws.sdk.kotlin.services.groundstation.model.UplinkSpectrumConfig.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 spectral `Config`.
 */
public class UplinkSpectrumConfig private constructor(builder: Builder) {
    /**
     * Center frequency of an uplink spectral `Config`. Valid values are between 2025 to 2120 MHz.
     */
    public val centerFrequency: aws.sdk.kotlin.services.groundstation.model.Frequency? = builder.centerFrequency
    /**
     * Polarization of an uplink spectral `Config`. Capturing both `"RIGHT_HAND"` and `"LEFT_HAND"` polarization requires two separate configs.
     */
    public val polarization: aws.sdk.kotlin.services.groundstation.model.Polarization? = builder.polarization

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

    override fun toString(): kotlin.String = buildString {
        append("UplinkSpectrumConfig(")
        append("centerFrequency=$centerFrequency,")
        append("polarization=$polarization")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = centerFrequency?.hashCode() ?: 0
        result = 31 * result + (polarization?.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 UplinkSpectrumConfig

        if (centerFrequency != other.centerFrequency) return false
        if (polarization != other.polarization) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Center frequency of an uplink spectral `Config`. Valid values are between 2025 to 2120 MHz.
         */
        public var centerFrequency: aws.sdk.kotlin.services.groundstation.model.Frequency? = null
        /**
         * Polarization of an uplink spectral `Config`. Capturing both `"RIGHT_HAND"` and `"LEFT_HAND"` polarization requires two separate configs.
         */
        public var polarization: aws.sdk.kotlin.services.groundstation.model.Polarization? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.groundstation.model.UplinkSpectrumConfig) : this() {
            this.centerFrequency = x.centerFrequency
            this.polarization = x.polarization
        }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy