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

commonMain.aws.sdk.kotlin.services.healthlake.model.PreloadDataConfig.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.healthlake.model



/**
 * The input properties for the preloaded data store. Only data preloaded from Synthea is supported.
 */
public class PreloadDataConfig private constructor(builder: Builder) {
    /**
     * The type of preloaded data. Only Synthea preloaded data is supported.
     */
    public val preloadDataType: aws.sdk.kotlin.services.healthlake.model.PreloadDataType = requireNotNull(builder.preloadDataType) { "A non-null value must be provided for preloadDataType" }

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

    override fun toString(): kotlin.String = buildString {
        append("PreloadDataConfig(")
        append("preloadDataType=$preloadDataType")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = preloadDataType.hashCode()
        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 PreloadDataConfig

        if (preloadDataType != other.preloadDataType) return false

        return true
    }

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

    public class Builder {
        /**
         * The type of preloaded data. Only Synthea preloaded data is supported.
         */
        public var preloadDataType: aws.sdk.kotlin.services.healthlake.model.PreloadDataType? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.healthlake.model.PreloadDataConfig) : this() {
            this.preloadDataType = x.preloadDataType
        }

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

        internal fun correctErrors(): Builder {
            if (preloadDataType == null) preloadDataType = PreloadDataType.SdkUnknown("no value provided")
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy