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

com.pulumi.gcp.healthcare.kotlin.inputs.FhirStoreStreamConfigArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.healthcare.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.healthcare.inputs.FhirStoreStreamConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property bigqueryDestination The destination BigQuery structure that contains both the dataset location and corresponding schema config.
 * The output is organized in one table per resource type. The server reuses the existing tables (if any) that
 * are named after the resource types, e.g. "Patient", "Observation". When there is no existing table for a given
 * resource type, the server attempts to create one.
 * See the [streaming config reference](https://cloud.google.com/healthcare/docs/reference/rest/v1beta1/projects.locations.datasets.fhirStores#streamconfig) for more details.
 * Structure is documented below.
 * @property resourceTypes Supply a FHIR resource type (such as "Patient" or "Observation"). See
 * https://www.hl7.org/fhir/valueset-resource-types.html for a list of all FHIR resource types. The server treats
 * an empty list as an intent to stream all the supported resource types in this FHIR store.
 */
public data class FhirStoreStreamConfigArgs(
    public val bigqueryDestination: Output,
    public val resourceTypes: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.healthcare.inputs.FhirStoreStreamConfigArgs =
        com.pulumi.gcp.healthcare.inputs.FhirStoreStreamConfigArgs.builder()
            .bigqueryDestination(
                bigqueryDestination.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .resourceTypes(resourceTypes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [FhirStoreStreamConfigArgs].
 */
@PulumiTagMarker
public class FhirStoreStreamConfigArgsBuilder internal constructor() {
    private var bigqueryDestination: Output? = null

    private var resourceTypes: Output>? = null

    /**
     * @param value The destination BigQuery structure that contains both the dataset location and corresponding schema config.
     * The output is organized in one table per resource type. The server reuses the existing tables (if any) that
     * are named after the resource types, e.g. "Patient", "Observation". When there is no existing table for a given
     * resource type, the server attempts to create one.
     * See the [streaming config reference](https://cloud.google.com/healthcare/docs/reference/rest/v1beta1/projects.locations.datasets.fhirStores#streamconfig) for more details.
     * Structure is documented below.
     */
    @JvmName("bprhmhvkqndmqonq")
    public suspend fun bigqueryDestination(`value`: Output) {
        this.bigqueryDestination = value
    }

    /**
     * @param value Supply a FHIR resource type (such as "Patient" or "Observation"). See
     * https://www.hl7.org/fhir/valueset-resource-types.html for a list of all FHIR resource types. The server treats
     * an empty list as an intent to stream all the supported resource types in this FHIR store.
     */
    @JvmName("phixsqsxckoghnlv")
    public suspend fun resourceTypes(`value`: Output>) {
        this.resourceTypes = value
    }

    @JvmName("kmyggfoeiwhnebrd")
    public suspend fun resourceTypes(vararg values: Output) {
        this.resourceTypes = Output.all(values.asList())
    }

    /**
     * @param values Supply a FHIR resource type (such as "Patient" or "Observation"). See
     * https://www.hl7.org/fhir/valueset-resource-types.html for a list of all FHIR resource types. The server treats
     * an empty list as an intent to stream all the supported resource types in this FHIR store.
     */
    @JvmName("rybyrihadmddeewf")
    public suspend fun resourceTypes(values: List>) {
        this.resourceTypes = Output.all(values)
    }

    /**
     * @param value The destination BigQuery structure that contains both the dataset location and corresponding schema config.
     * The output is organized in one table per resource type. The server reuses the existing tables (if any) that
     * are named after the resource types, e.g. "Patient", "Observation". When there is no existing table for a given
     * resource type, the server attempts to create one.
     * See the [streaming config reference](https://cloud.google.com/healthcare/docs/reference/rest/v1beta1/projects.locations.datasets.fhirStores#streamconfig) for more details.
     * Structure is documented below.
     */
    @JvmName("lwjaxngbtpmxgycl")
    public suspend fun bigqueryDestination(`value`: FhirStoreStreamConfigBigqueryDestinationArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.bigqueryDestination = mapped
    }

    /**
     * @param argument The destination BigQuery structure that contains both the dataset location and corresponding schema config.
     * The output is organized in one table per resource type. The server reuses the existing tables (if any) that
     * are named after the resource types, e.g. "Patient", "Observation". When there is no existing table for a given
     * resource type, the server attempts to create one.
     * See the [streaming config reference](https://cloud.google.com/healthcare/docs/reference/rest/v1beta1/projects.locations.datasets.fhirStores#streamconfig) for more details.
     * Structure is documented below.
     */
    @JvmName("nahfrxabhnsrawfo")
    public suspend fun bigqueryDestination(argument: suspend FhirStoreStreamConfigBigqueryDestinationArgsBuilder.() -> Unit) {
        val toBeMapped = FhirStoreStreamConfigBigqueryDestinationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.bigqueryDestination = mapped
    }

    /**
     * @param value Supply a FHIR resource type (such as "Patient" or "Observation"). See
     * https://www.hl7.org/fhir/valueset-resource-types.html for a list of all FHIR resource types. The server treats
     * an empty list as an intent to stream all the supported resource types in this FHIR store.
     */
    @JvmName("tbxsywivjqjfdywt")
    public suspend fun resourceTypes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceTypes = mapped
    }

    /**
     * @param values Supply a FHIR resource type (such as "Patient" or "Observation"). See
     * https://www.hl7.org/fhir/valueset-resource-types.html for a list of all FHIR resource types. The server treats
     * an empty list as an intent to stream all the supported resource types in this FHIR store.
     */
    @JvmName("iakmwobksgkgqxvf")
    public suspend fun resourceTypes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.resourceTypes = mapped
    }

    internal fun build(): FhirStoreStreamConfigArgs = FhirStoreStreamConfigArgs(
        bigqueryDestination = bigqueryDestination ?: throw PulumiNullFieldException("bigqueryDestination"),
        resourceTypes = resourceTypes,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy