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

commonMain.aws.sdk.kotlin.services.groundstation.model.CreateConfigResponse.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 CreateConfigResponse private constructor(builder: Builder) {
    /**
     * ARN of a `Config`.
     */
    public val configArn: kotlin.String? = builder.configArn
    /**
     * UUID of a `Config`.
     */
    public val configId: kotlin.String? = builder.configId
    /**
     * Type of a `Config`.
     */
    public val configType: aws.sdk.kotlin.services.groundstation.model.ConfigCapabilityType? = builder.configType

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

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

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

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

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * ARN of a `Config`.
         */
        public var configArn: kotlin.String? = 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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy