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

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

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

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



public class CreateFhirDatastoreRequest private constructor(builder: Builder) {
    /**
     * Optional user provided token used for ensuring idempotency.
     */
    public val clientToken: kotlin.String? = builder.clientToken
    /**
     * The user generated name for the data store.
     */
    public val datastoreName: kotlin.String? = builder.datastoreName
    /**
     * The FHIR version of the data store. The only supported version is R4.
     */
    public val datastoreTypeVersion: aws.sdk.kotlin.services.healthlake.model.FhirVersion? = builder.datastoreTypeVersion
    /**
     * The configuration of the identity provider that you want to use for your data store.
     */
    public val identityProviderConfiguration: aws.sdk.kotlin.services.healthlake.model.IdentityProviderConfiguration? = builder.identityProviderConfiguration
    /**
     * Optional parameter to preload data upon creation of the data store. Currently, the only supported preloaded data is synthetic data generated from Synthea.
     */
    public val preloadDataConfig: aws.sdk.kotlin.services.healthlake.model.PreloadDataConfig? = builder.preloadDataConfig
    /**
     * The server-side encryption key configuration for a customer provided encryption key specified for creating a data store.
     */
    public val sseConfiguration: aws.sdk.kotlin.services.healthlake.model.SseConfiguration? = builder.sseConfiguration
    /**
     * Resource tags that are applied to a data store when it is created.
     */
    public val tags: List? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("CreateFhirDatastoreRequest(")
        append("clientToken=$clientToken,")
        append("datastoreName=$datastoreName,")
        append("datastoreTypeVersion=$datastoreTypeVersion,")
        append("identityProviderConfiguration=$identityProviderConfiguration,")
        append("preloadDataConfig=$preloadDataConfig,")
        append("sseConfiguration=$sseConfiguration,")
        append("tags=$tags")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = clientToken?.hashCode() ?: 0
        result = 31 * result + (datastoreName?.hashCode() ?: 0)
        result = 31 * result + (datastoreTypeVersion?.hashCode() ?: 0)
        result = 31 * result + (identityProviderConfiguration?.hashCode() ?: 0)
        result = 31 * result + (preloadDataConfig?.hashCode() ?: 0)
        result = 31 * result + (sseConfiguration?.hashCode() ?: 0)
        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 CreateFhirDatastoreRequest

        if (clientToken != other.clientToken) return false
        if (datastoreName != other.datastoreName) return false
        if (datastoreTypeVersion != other.datastoreTypeVersion) return false
        if (identityProviderConfiguration != other.identityProviderConfiguration) return false
        if (preloadDataConfig != other.preloadDataConfig) return false
        if (sseConfiguration != other.sseConfiguration) return false
        if (tags != other.tags) return false

        return true
    }

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

    public class Builder {
        /**
         * Optional user provided token used for ensuring idempotency.
         */
        public var clientToken: kotlin.String? = null
        /**
         * The user generated name for the data store.
         */
        public var datastoreName: kotlin.String? = null
        /**
         * The FHIR version of the data store. The only supported version is R4.
         */
        public var datastoreTypeVersion: aws.sdk.kotlin.services.healthlake.model.FhirVersion? = null
        /**
         * The configuration of the identity provider that you want to use for your data store.
         */
        public var identityProviderConfiguration: aws.sdk.kotlin.services.healthlake.model.IdentityProviderConfiguration? = null
        /**
         * Optional parameter to preload data upon creation of the data store. Currently, the only supported preloaded data is synthetic data generated from Synthea.
         */
        public var preloadDataConfig: aws.sdk.kotlin.services.healthlake.model.PreloadDataConfig? = null
        /**
         * The server-side encryption key configuration for a customer provided encryption key specified for creating a data store.
         */
        public var sseConfiguration: aws.sdk.kotlin.services.healthlake.model.SseConfiguration? = null
        /**
         * Resource tags that are applied to a data store when it is created.
         */
        public var tags: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.healthlake.model.CreateFhirDatastoreRequest) : this() {
            this.clientToken = x.clientToken
            this.datastoreName = x.datastoreName
            this.datastoreTypeVersion = x.datastoreTypeVersion
            this.identityProviderConfiguration = x.identityProviderConfiguration
            this.preloadDataConfig = x.preloadDataConfig
            this.sseConfiguration = x.sseConfiguration
            this.tags = x.tags
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.healthlake.model.IdentityProviderConfiguration] inside the given [block]
         */
        public fun identityProviderConfiguration(block: aws.sdk.kotlin.services.healthlake.model.IdentityProviderConfiguration.Builder.() -> kotlin.Unit) {
            this.identityProviderConfiguration = aws.sdk.kotlin.services.healthlake.model.IdentityProviderConfiguration.invoke(block)
        }

        /**
         * construct an [aws.sdk.kotlin.services.healthlake.model.PreloadDataConfig] inside the given [block]
         */
        public fun preloadDataConfig(block: aws.sdk.kotlin.services.healthlake.model.PreloadDataConfig.Builder.() -> kotlin.Unit) {
            this.preloadDataConfig = aws.sdk.kotlin.services.healthlake.model.PreloadDataConfig.invoke(block)
        }

        /**
         * construct an [aws.sdk.kotlin.services.healthlake.model.SseConfiguration] inside the given [block]
         */
        public fun sseConfiguration(block: aws.sdk.kotlin.services.healthlake.model.SseConfiguration.Builder.() -> kotlin.Unit) {
            this.sseConfiguration = aws.sdk.kotlin.services.healthlake.model.SseConfiguration.invoke(block)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy