
commonMain.aws.sdk.kotlin.services.groundstation.model.GetSatelliteResponse.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
/**
*
*/
public class GetSatelliteResponse private constructor(builder: Builder) {
/**
* The current ephemeris being used to compute the trajectory of the satellite.
*/
public val currentEphemeris: aws.sdk.kotlin.services.groundstation.model.EphemerisMetaData? = builder.currentEphemeris
/**
* A list of ground stations to which the satellite is on-boarded.
*/
public val groundStations: List? = builder.groundStations
/**
* NORAD satellite ID number.
*/
public val noradSatelliteId: kotlin.Int = builder.noradSatelliteId
/**
* ARN of a satellite.
*/
public val satelliteArn: kotlin.String? = builder.satelliteArn
/**
* UUID of a satellite.
*/
public val satelliteId: kotlin.String? = builder.satelliteId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.groundstation.model.GetSatelliteResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetSatelliteResponse(")
append("currentEphemeris=$currentEphemeris,")
append("groundStations=$groundStations,")
append("noradSatelliteId=$noradSatelliteId,")
append("satelliteArn=$satelliteArn,")
append("satelliteId=$satelliteId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = currentEphemeris?.hashCode() ?: 0
result = 31 * result + (groundStations?.hashCode() ?: 0)
result = 31 * result + (noradSatelliteId)
result = 31 * result + (satelliteArn?.hashCode() ?: 0)
result = 31 * result + (satelliteId?.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 GetSatelliteResponse
if (currentEphemeris != other.currentEphemeris) return false
if (groundStations != other.groundStations) return false
if (noradSatelliteId != other.noradSatelliteId) return false
if (satelliteArn != other.satelliteArn) return false
if (satelliteId != other.satelliteId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.groundstation.model.GetSatelliteResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The current ephemeris being used to compute the trajectory of the satellite.
*/
public var currentEphemeris: aws.sdk.kotlin.services.groundstation.model.EphemerisMetaData? = null
/**
* A list of ground stations to which the satellite is on-boarded.
*/
public var groundStations: List? = null
/**
* NORAD satellite ID number.
*/
public var noradSatelliteId: kotlin.Int = 0
/**
* ARN of a satellite.
*/
public var satelliteArn: kotlin.String? = null
/**
* UUID of a satellite.
*/
public var satelliteId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.groundstation.model.GetSatelliteResponse) : this() {
this.currentEphemeris = x.currentEphemeris
this.groundStations = x.groundStations
this.noradSatelliteId = x.noradSatelliteId
this.satelliteArn = x.satelliteArn
this.satelliteId = x.satelliteId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.groundstation.model.GetSatelliteResponse = GetSatelliteResponse(this)
/**
* construct an [aws.sdk.kotlin.services.groundstation.model.EphemerisMetaData] inside the given [block]
*/
public fun currentEphemeris(block: aws.sdk.kotlin.services.groundstation.model.EphemerisMetaData.Builder.() -> kotlin.Unit) {
this.currentEphemeris = aws.sdk.kotlin.services.groundstation.model.EphemerisMetaData.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy