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

commonMain.aws.sdk.kotlin.services.groundstation.model.GetConfigResponse.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 GetConfigResponse private constructor(builder: Builder) {
    /**
     * ARN of a `Config`
     */
    public val configArn: kotlin.String = requireNotNull(builder.configArn) { "A non-null value must be provided for configArn" }
    /**
     * Data elements in a `Config`.
     */
    public val configData: aws.sdk.kotlin.services.groundstation.model.ConfigTypeData? = builder.configData
    /**
     * UUID of a `Config`.
     */
    public val configId: kotlin.String = requireNotNull(builder.configId) { "A non-null value must be provided for configId" }
    /**
     * Type of a `Config`.
     */
    public val configType: aws.sdk.kotlin.services.groundstation.model.ConfigCapabilityType? = builder.configType
    /**
     * Name of a `Config`.
     */
    public val name: kotlin.String = requireNotNull(builder.name) { "A non-null value must be provided for name" }
    /**
     * Tags assigned to a `Config`.
     */
    public val tags: Map? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("GetConfigResponse(")
        append("configArn=$configArn,")
        append("configData=$configData,")
        append("configId=$configId,")
        append("configType=$configType,")
        append("name=$name,")
        append("tags=$tags")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = configArn.hashCode()
        result = 31 * result + (configData?.hashCode() ?: 0)
        result = 31 * result + (configId.hashCode())
        result = 31 * result + (configType?.hashCode() ?: 0)
        result = 31 * result + (name.hashCode())
        result = 31 * result + (tags?.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 GetConfigResponse

        if (configArn != other.configArn) return false
        if (configData != other.configData) return false
        if (configId != other.configId) return false
        if (configType != other.configType) return false
        if (name != other.name) return false
        if (tags != other.tags) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * ARN of a `Config`
         */
        public var configArn: kotlin.String? = null
        /**
         * Data elements in a `Config`.
         */
        public var configData: aws.sdk.kotlin.services.groundstation.model.ConfigTypeData? = null
        /**
         * UUID of a `Config`.
         */
        public var configId: kotlin.String? = null
        /**
         * Type of a `Config`.
         */
        public var configType: aws.sdk.kotlin.services.groundstation.model.ConfigCapabilityType? = null
        /**
         * Name of a `Config`.
         */
        public var name: kotlin.String? = null
        /**
         * Tags assigned to a `Config`.
         */
        public var tags: Map? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.groundstation.model.GetConfigResponse) : this() {
            this.configArn = x.configArn
            this.configData = x.configData
            this.configId = x.configId
            this.configType = x.configType
            this.name = x.name
            this.tags = x.tags
        }

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

        internal fun correctErrors(): Builder {
            if (configArn == null) configArn = ""
            if (configId == null) configId = ""
            if (name == null) name = ""
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy