
commonMain.aws.sdk.kotlin.services.groundstation.model.FrequencyBandwidth.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
/**
* Object that describes the frequency bandwidth.
*/
public class FrequencyBandwidth private constructor(builder: Builder) {
/**
* Frequency bandwidth units.
*/
public val units: aws.sdk.kotlin.services.groundstation.model.BandwidthUnits = requireNotNull(builder.units) { "A non-null value must be provided for units" }
/**
* Frequency bandwidth value. AWS Ground Station currently has the following bandwidth limitations:
* + For `AntennaDownlinkDemodDecodeconfig`, valid values are between 125 kHz to 650 MHz.
* + For `AntennaDownlinkconfig`, valid values are between 10 kHz to 54 MHz.
* + For `AntennaUplinkConfig`, valid values are between 10 kHz to 54 MHz.
*/
public val value: kotlin.Double = requireNotNull(builder.value) { "A non-null value must be provided for value" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.groundstation.model.FrequencyBandwidth = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("FrequencyBandwidth(")
append("units=$units,")
append("value=$value")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = units.hashCode()
result = 31 * result + (value.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 FrequencyBandwidth
if (units != other.units) return false
if (value != other.value) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.groundstation.model.FrequencyBandwidth = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Frequency bandwidth units.
*/
public var units: aws.sdk.kotlin.services.groundstation.model.BandwidthUnits? = null
/**
* Frequency bandwidth value. AWS Ground Station currently has the following bandwidth limitations:
* + For `AntennaDownlinkDemodDecodeconfig`, valid values are between 125 kHz to 650 MHz.
* + For `AntennaDownlinkconfig`, valid values are between 10 kHz to 54 MHz.
* + For `AntennaUplinkConfig`, valid values are between 10 kHz to 54 MHz.
*/
public var value: kotlin.Double? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.groundstation.model.FrequencyBandwidth) : this() {
this.units = x.units
this.value = x.value
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.groundstation.model.FrequencyBandwidth = FrequencyBandwidth(this)
internal fun correctErrors(): Builder {
if (units == null) units = BandwidthUnits.SdkUnknown("no value provided")
if (value == null) value = 0.0
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy