
commonMain.aws.sdk.kotlin.services.groundstation.model.EphemerisDescription.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
/**
* Description of ephemeris.
*/
public class EphemerisDescription private constructor(builder: Builder) {
/**
* Supplied ephemeris data.
*/
public val ephemerisData: kotlin.String? = builder.ephemerisData
/**
* Source S3 object used for the ephemeris.
*/
public val sourceS3Object: aws.sdk.kotlin.services.groundstation.model.S3Object? = builder.sourceS3Object
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.groundstation.model.EphemerisDescription = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("EphemerisDescription(")
append("ephemerisData=$ephemerisData,")
append("sourceS3Object=$sourceS3Object")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = ephemerisData?.hashCode() ?: 0
result = 31 * result + (sourceS3Object?.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 EphemerisDescription
if (ephemerisData != other.ephemerisData) return false
if (sourceS3Object != other.sourceS3Object) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.groundstation.model.EphemerisDescription = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Supplied ephemeris data.
*/
public var ephemerisData: kotlin.String? = null
/**
* Source S3 object used for the ephemeris.
*/
public var sourceS3Object: aws.sdk.kotlin.services.groundstation.model.S3Object? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.groundstation.model.EphemerisDescription) : this() {
this.ephemerisData = x.ephemerisData
this.sourceS3Object = x.sourceS3Object
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.groundstation.model.EphemerisDescription = EphemerisDescription(this)
/**
* construct an [aws.sdk.kotlin.services.groundstation.model.S3Object] inside the given [block]
*/
public fun sourceS3Object(block: aws.sdk.kotlin.services.groundstation.model.S3Object.Builder.() -> kotlin.Unit) {
this.sourceS3Object = aws.sdk.kotlin.services.groundstation.model.S3Object.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy