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

com.pulumi.gcp.bigquery.kotlin.inputs.DatasetAccessDatasetArgs.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.DatasetAccessDatasetArgs.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 dataset The dataset this entry applies to
 * Structure is documented below.
 * @property targetTypes Which resources in the dataset this entry applies to. Currently, only views are supported,
 * but additional target types may be added in the future. Possible values: VIEWS
 */
public data class DatasetAccessDatasetArgs(
    public val dataset: Output,
    public val targetTypes: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.bigquery.inputs.DatasetAccessDatasetArgs =
        com.pulumi.gcp.bigquery.inputs.DatasetAccessDatasetArgs.builder()
            .dataset(dataset.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .targetTypes(targetTypes.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [DatasetAccessDatasetArgs].
 */
@PulumiTagMarker
public class DatasetAccessDatasetArgsBuilder internal constructor() {
    private var dataset: Output? = null

    private var targetTypes: Output>? = null

    /**
     * @param value The dataset this entry applies to
     * Structure is documented below.
     */
    @JvmName("bfyutkuemcslspds")
    public suspend fun dataset(`value`: Output) {
        this.dataset = value
    }

    /**
     * @param value Which resources in the dataset this entry applies to. Currently, only views are supported,
     * but additional target types may be added in the future. Possible values: VIEWS
     */
    @JvmName("joijxcjwuciedqsv")
    public suspend fun targetTypes(`value`: Output>) {
        this.targetTypes = value
    }

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

    /**
     * @param values Which resources in the dataset this entry applies to. Currently, only views are supported,
     * but additional target types may be added in the future. Possible values: VIEWS
     */
    @JvmName("pkakhwmowipkuwgx")
    public suspend fun targetTypes(values: List>) {
        this.targetTypes = Output.all(values)
    }

    /**
     * @param value The dataset this entry applies to
     * Structure is documented below.
     */
    @JvmName("tmpqbpubmlcbwwcd")
    public suspend fun dataset(`value`: DatasetAccessDatasetDatasetArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dataset = mapped
    }

    /**
     * @param argument The dataset this entry applies to
     * Structure is documented below.
     */
    @JvmName("bqcaqyoaxpvscnxu")
    public suspend fun dataset(argument: suspend DatasetAccessDatasetDatasetArgsBuilder.() -> Unit) {
        val toBeMapped = DatasetAccessDatasetDatasetArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.dataset = mapped
    }

    /**
     * @param value Which resources in the dataset this entry applies to. Currently, only views are supported,
     * but additional target types may be added in the future. Possible values: VIEWS
     */
    @JvmName("fsnfxsmbevbmljfi")
    public suspend fun targetTypes(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.targetTypes = mapped
    }

    /**
     * @param values Which resources in the dataset this entry applies to. Currently, only views are supported,
     * but additional target types may be added in the future. Possible values: VIEWS
     */
    @JvmName("wsdtuopeocnfuqkn")
    public suspend fun targetTypes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.targetTypes = mapped
    }

    internal fun build(): DatasetAccessDatasetArgs = DatasetAccessDatasetArgs(
        dataset = dataset ?: throw PulumiNullFieldException("dataset"),
        targetTypes = targetTypes ?: throw PulumiNullFieldException("targetTypes"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy