
commonMain.aws.sdk.kotlin.services.groundstation.model.Eirp.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 represents EIRP.
*/
public class Eirp private constructor(builder: Builder) {
/**
* Units of an EIRP.
*/
public val units: aws.sdk.kotlin.services.groundstation.model.EirpUnits = requireNotNull(builder.units) { "A non-null value must be provided for units" }
/**
* Value of an EIRP. Valid values are between 20.0 to 50.0 dBW.
*/
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.Eirp = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Eirp(")
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 Eirp
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.Eirp = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Units of an EIRP.
*/
public var units: aws.sdk.kotlin.services.groundstation.model.EirpUnits? = null
/**
* Value of an EIRP. Valid values are between 20.0 to 50.0 dBW.
*/
public var value: kotlin.Double? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.groundstation.model.Eirp) : this() {
this.units = x.units
this.value = x.value
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.groundstation.model.Eirp = Eirp(this)
internal fun correctErrors(): Builder {
if (units == null) units = EirpUnits.SdkUnknown("no value provided")
if (value == null) value = 0.0
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy