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

com.pulumi.gcp.bigquery.kotlin.inputs.JobExtractSourceTableArgs.kt Maven / Gradle / Ivy

@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.JobExtractSourceTableArgs.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 datasetId The ID of the dataset containing this table.
 * @property projectId The ID of the project containing this table.
 * @property tableId The table. Can be specified `{{table_id}}` if `project_id` and `dataset_id` are also set,
 * or of the form `projects/{{project}}/datasets/{{dataset_id}}/tables/{{table_id}}` if not.
 */
public data class JobExtractSourceTableArgs(
    public val datasetId: Output? = null,
    public val projectId: Output? = null,
    public val tableId: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.bigquery.inputs.JobExtractSourceTableArgs =
        com.pulumi.gcp.bigquery.inputs.JobExtractSourceTableArgs.builder()
            .datasetId(datasetId?.applyValue({ args0 -> args0 }))
            .projectId(projectId?.applyValue({ args0 -> args0 }))
            .tableId(tableId.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [JobExtractSourceTableArgs].
 */
@PulumiTagMarker
public class JobExtractSourceTableArgsBuilder internal constructor() {
    private var datasetId: Output? = null

    private var projectId: Output? = null

    private var tableId: Output? = null

    /**
     * @param value The ID of the dataset containing this table.
     */
    @JvmName("wbhgskfgkorgrjlo")
    public suspend fun datasetId(`value`: Output) {
        this.datasetId = value
    }

    /**
     * @param value The ID of the project containing this table.
     */
    @JvmName("lyvbtwtafkgcmhap")
    public suspend fun projectId(`value`: Output) {
        this.projectId = value
    }

    /**
     * @param value The table. Can be specified `{{table_id}}` if `project_id` and `dataset_id` are also set,
     * or of the form `projects/{{project}}/datasets/{{dataset_id}}/tables/{{table_id}}` if not.
     */
    @JvmName("eelwxbeajmchxevj")
    public suspend fun tableId(`value`: Output) {
        this.tableId = value
    }

    /**
     * @param value The ID of the dataset containing this table.
     */
    @JvmName("dctewphabxogyisn")
    public suspend fun datasetId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.datasetId = mapped
    }

    /**
     * @param value The ID of the project containing this table.
     */
    @JvmName("ohpqnklcnccorfng")
    public suspend fun projectId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.projectId = mapped
    }

    /**
     * @param value The table. Can be specified `{{table_id}}` if `project_id` and `dataset_id` are also set,
     * or of the form `projects/{{project}}/datasets/{{dataset_id}}/tables/{{table_id}}` if not.
     */
    @JvmName("siinyriodmeghvly")
    public suspend fun tableId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tableId = mapped
    }

    internal fun build(): JobExtractSourceTableArgs = JobExtractSourceTableArgs(
        datasetId = datasetId,
        projectId = projectId,
        tableId = tableId ?: throw PulumiNullFieldException("tableId"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy