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

commonMain.aws.sdk.kotlin.services.groundstation.model.GroundStationData.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 ground station data.
 */
public class GroundStationData private constructor(builder: Builder) {
    /**
     * UUID of a ground station.
     */
    public val groundStationId: kotlin.String? = builder.groundStationId
    /**
     * Name of a ground station.
     */
    public val groundStationName: kotlin.String? = builder.groundStationName
    /**
     * Ground station Region.
     */
    public val region: kotlin.String? = builder.region

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

    override fun toString(): kotlin.String = buildString {
        append("GroundStationData(")
        append("groundStationId=$groundStationId,")
        append("groundStationName=$groundStationName,")
        append("region=$region")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = groundStationId?.hashCode() ?: 0
        result = 31 * result + (groundStationName?.hashCode() ?: 0)
        result = 31 * result + (region?.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 GroundStationData

        if (groundStationId != other.groundStationId) return false
        if (groundStationName != other.groundStationName) return false
        if (region != other.region) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * UUID of a ground station.
         */
        public var groundStationId: kotlin.String? = null
        /**
         * Name of a ground station.
         */
        public var groundStationName: kotlin.String? = null
        /**
         * Ground station Region.
         */
        public var region: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.groundstation.model.GroundStationData) : this() {
            this.groundStationId = x.groundStationId
            this.groundStationName = x.groundStationName
            this.region = x.region
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy