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

com.pulumi.gcp.bigquery.kotlin.inputs.DatasetExternalDatasetReferenceArgs.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.bigquery.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.bigquery.inputs.DatasetExternalDatasetReferenceArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property connection The connection id that is used to access the externalSource.
 * Format: projects/{projectId}/locations/{locationId}/connections/{connectionId}
 * @property externalSource External source that backs this dataset.
 */
public data class DatasetExternalDatasetReferenceArgs(
    public val connection: Output,
    public val externalSource: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.bigquery.inputs.DatasetExternalDatasetReferenceArgs =
        com.pulumi.gcp.bigquery.inputs.DatasetExternalDatasetReferenceArgs.builder()
            .connection(connection.applyValue({ args0 -> args0 }))
            .externalSource(externalSource.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DatasetExternalDatasetReferenceArgs].
 */
@PulumiTagMarker
public class DatasetExternalDatasetReferenceArgsBuilder internal constructor() {
    private var connection: Output? = null

    private var externalSource: Output? = null

    /**
     * @param value The connection id that is used to access the externalSource.
     * Format: projects/{projectId}/locations/{locationId}/connections/{connectionId}
     */
    @JvmName("mkkkhwlcnvdkxrhs")
    public suspend fun connection(`value`: Output) {
        this.connection = value
    }

    /**
     * @param value External source that backs this dataset.
     */
    @JvmName("wrwapfydhjihmdah")
    public suspend fun externalSource(`value`: Output) {
        this.externalSource = value
    }

    /**
     * @param value The connection id that is used to access the externalSource.
     * Format: projects/{projectId}/locations/{locationId}/connections/{connectionId}
     */
    @JvmName("jgtexrrqujscyvqn")
    public suspend fun connection(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.connection = mapped
    }

    /**
     * @param value External source that backs this dataset.
     */
    @JvmName("saofcaatgpumttao")
    public suspend fun externalSource(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.externalSource = mapped
    }

    internal fun build(): DatasetExternalDatasetReferenceArgs = DatasetExternalDatasetReferenceArgs(
        connection = connection ?: throw PulumiNullFieldException("connection"),
        externalSource = externalSource ?: throw PulumiNullFieldException("externalSource"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy