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

com.pulumi.gcp.dataplex.kotlin.inputs.DatascanDataQualitySpecArgs.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.dataplex.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dataplex.inputs.DatascanDataQualitySpecArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Double
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property postScanActions Actions to take upon job completion.
 * Structure is documented below.
 * @property rowFilter A filter applied to all rows in a single DataScan job. The filter needs to be a valid SQL expression for a WHERE clause in BigQuery standard SQL syntax. Example: col1 >= 0 AND col2 < 10
 * @property rules The list of rules to evaluate against a data source. At least one rule is required.
 * Structure is documented below.
 * @property samplingPercent The percentage of the records to be selected from the dataset for DataScan.
 * Value can range between 0.0 and 100.0 with up to 3 significant decimal digits.
 * Sampling is not applied if `sampling_percent` is not specified, 0 or 100.
 */
public data class DatascanDataQualitySpecArgs(
    public val postScanActions: Output? = null,
    public val rowFilter: Output? = null,
    public val rules: Output>? = null,
    public val samplingPercent: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataplex.inputs.DatascanDataQualitySpecArgs =
        com.pulumi.gcp.dataplex.inputs.DatascanDataQualitySpecArgs.builder()
            .postScanActions(postScanActions?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .rowFilter(rowFilter?.applyValue({ args0 -> args0 }))
            .rules(rules?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .samplingPercent(samplingPercent?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DatascanDataQualitySpecArgs].
 */
@PulumiTagMarker
public class DatascanDataQualitySpecArgsBuilder internal constructor() {
    private var postScanActions: Output? = null

    private var rowFilter: Output? = null

    private var rules: Output>? = null

    private var samplingPercent: Output? = null

    /**
     * @param value Actions to take upon job completion.
     * Structure is documented below.
     */
    @JvmName("gqhofyehypxbghul")
    public suspend fun postScanActions(`value`: Output) {
        this.postScanActions = value
    }

    /**
     * @param value A filter applied to all rows in a single DataScan job. The filter needs to be a valid SQL expression for a WHERE clause in BigQuery standard SQL syntax. Example: col1 >= 0 AND col2 < 10
     */
    @JvmName("kfbbtsutlsgyjxem")
    public suspend fun rowFilter(`value`: Output) {
        this.rowFilter = value
    }

    /**
     * @param value The list of rules to evaluate against a data source. At least one rule is required.
     * Structure is documented below.
     */
    @JvmName("hmpuuppoxrqmedwn")
    public suspend fun rules(`value`: Output>) {
        this.rules = value
    }

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

    /**
     * @param values The list of rules to evaluate against a data source. At least one rule is required.
     * Structure is documented below.
     */
    @JvmName("oxsrqncbslijgksx")
    public suspend fun rules(values: List>) {
        this.rules = Output.all(values)
    }

    /**
     * @param value The percentage of the records to be selected from the dataset for DataScan.
     * Value can range between 0.0 and 100.0 with up to 3 significant decimal digits.
     * Sampling is not applied if `sampling_percent` is not specified, 0 or 100.
     */
    @JvmName("rpkjkmvhowrtgjpu")
    public suspend fun samplingPercent(`value`: Output) {
        this.samplingPercent = value
    }

    /**
     * @param value Actions to take upon job completion.
     * Structure is documented below.
     */
    @JvmName("arruqrvcuhvsuakg")
    public suspend fun postScanActions(`value`: DatascanDataQualitySpecPostScanActionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.postScanActions = mapped
    }

    /**
     * @param argument Actions to take upon job completion.
     * Structure is documented below.
     */
    @JvmName("hprkiqweolaehflu")
    public suspend fun postScanActions(argument: suspend DatascanDataQualitySpecPostScanActionsArgsBuilder.() -> Unit) {
        val toBeMapped = DatascanDataQualitySpecPostScanActionsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.postScanActions = mapped
    }

    /**
     * @param value A filter applied to all rows in a single DataScan job. The filter needs to be a valid SQL expression for a WHERE clause in BigQuery standard SQL syntax. Example: col1 >= 0 AND col2 < 10
     */
    @JvmName("innidqwotyxkirpy")
    public suspend fun rowFilter(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rowFilter = mapped
    }

    /**
     * @param value The list of rules to evaluate against a data source. At least one rule is required.
     * Structure is documented below.
     */
    @JvmName("qsyayiplrmsdkimg")
    public suspend fun rules(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rules = mapped
    }

    /**
     * @param argument The list of rules to evaluate against a data source. At least one rule is required.
     * Structure is documented below.
     */
    @JvmName("ifockawugixxokgn")
    public suspend fun rules(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DatascanDataQualitySpecRuleArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.rules = mapped
    }

    /**
     * @param argument The list of rules to evaluate against a data source. At least one rule is required.
     * Structure is documented below.
     */
    @JvmName("rbtylixdjsblfnhu")
    public suspend fun rules(vararg argument: suspend DatascanDataQualitySpecRuleArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            DatascanDataQualitySpecRuleArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.rules = mapped
    }

    /**
     * @param argument The list of rules to evaluate against a data source. At least one rule is required.
     * Structure is documented below.
     */
    @JvmName("cxpvqqoiwdqhodtu")
    public suspend fun rules(argument: suspend DatascanDataQualitySpecRuleArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            DatascanDataQualitySpecRuleArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.rules = mapped
    }

    /**
     * @param values The list of rules to evaluate against a data source. At least one rule is required.
     * Structure is documented below.
     */
    @JvmName("yrkgmtvvneaxysms")
    public suspend fun rules(vararg values: DatascanDataQualitySpecRuleArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.rules = mapped
    }

    /**
     * @param value The percentage of the records to be selected from the dataset for DataScan.
     * Value can range between 0.0 and 100.0 with up to 3 significant decimal digits.
     * Sampling is not applied if `sampling_percent` is not specified, 0 or 100.
     */
    @JvmName("rucpuskbamdrtuta")
    public suspend fun samplingPercent(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.samplingPercent = mapped
    }

    internal fun build(): DatascanDataQualitySpecArgs = DatascanDataQualitySpecArgs(
        postScanActions = postScanActions,
        rowFilter = rowFilter,
        rules = rules,
        samplingPercent = samplingPercent,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy