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

com.pulumi.gcp.dataloss.kotlin.inputs.PreventionDiscoveryConfigTargetArgs.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.dataloss.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dataloss.inputs.PreventionDiscoveryConfigTargetArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property bigQueryTarget BigQuery target for Discovery. The first target to match a table will be the one applied.
 * Structure is documented below.
 * @property cloudSqlTarget Cloud SQL target for Discovery. The first target to match a table will be the one applied.
 * Structure is documented below.
 */
public data class PreventionDiscoveryConfigTargetArgs(
    public val bigQueryTarget: Output? = null,
    public val cloudSqlTarget: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataloss.inputs.PreventionDiscoveryConfigTargetArgs =
        com.pulumi.gcp.dataloss.inputs.PreventionDiscoveryConfigTargetArgs.builder()
            .bigQueryTarget(bigQueryTarget?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .cloudSqlTarget(
                cloudSqlTarget?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [PreventionDiscoveryConfigTargetArgs].
 */
@PulumiTagMarker
public class PreventionDiscoveryConfigTargetArgsBuilder internal constructor() {
    private var bigQueryTarget: Output? = null

    private var cloudSqlTarget: Output? = null

    /**
     * @param value BigQuery target for Discovery. The first target to match a table will be the one applied.
     * Structure is documented below.
     */
    @JvmName("qbrkkgftqwhdugck")
    public suspend fun bigQueryTarget(`value`: Output) {
        this.bigQueryTarget = value
    }

    /**
     * @param value Cloud SQL target for Discovery. The first target to match a table will be the one applied.
     * Structure is documented below.
     */
    @JvmName("taemspggcffogewh")
    public suspend fun cloudSqlTarget(`value`: Output) {
        this.cloudSqlTarget = value
    }

    /**
     * @param value BigQuery target for Discovery. The first target to match a table will be the one applied.
     * Structure is documented below.
     */
    @JvmName("jyghvnnykpqgkmoh")
    public suspend fun bigQueryTarget(`value`: PreventionDiscoveryConfigTargetBigQueryTargetArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.bigQueryTarget = mapped
    }

    /**
     * @param argument BigQuery target for Discovery. The first target to match a table will be the one applied.
     * Structure is documented below.
     */
    @JvmName("jddelrtppcflyehx")
    public suspend fun bigQueryTarget(argument: suspend PreventionDiscoveryConfigTargetBigQueryTargetArgsBuilder.() -> Unit) {
        val toBeMapped = PreventionDiscoveryConfigTargetBigQueryTargetArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.bigQueryTarget = mapped
    }

    /**
     * @param value Cloud SQL target for Discovery. The first target to match a table will be the one applied.
     * Structure is documented below.
     */
    @JvmName("bjeegolifccmvcwm")
    public suspend fun cloudSqlTarget(`value`: PreventionDiscoveryConfigTargetCloudSqlTargetArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cloudSqlTarget = mapped
    }

    /**
     * @param argument Cloud SQL target for Discovery. The first target to match a table will be the one applied.
     * Structure is documented below.
     */
    @JvmName("gmwavwpbmhhcywhc")
    public suspend fun cloudSqlTarget(argument: suspend PreventionDiscoveryConfigTargetCloudSqlTargetArgsBuilder.() -> Unit) {
        val toBeMapped = PreventionDiscoveryConfigTargetCloudSqlTargetArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.cloudSqlTarget = mapped
    }

    internal fun build(): PreventionDiscoveryConfigTargetArgs = PreventionDiscoveryConfigTargetArgs(
        bigQueryTarget = bigQueryTarget,
        cloudSqlTarget = cloudSqlTarget,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy