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

com.pulumi.awsnative.databrew.kotlin.inputs.JobColumnStatisticsConfigurationArgs.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.databrew.kotlin.inputs

import com.pulumi.awsnative.databrew.inputs.JobColumnStatisticsConfigurationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property selectors List of column selectors. Selectors can be used to select columns from the dataset. When selectors are undefined, configuration will be applied to all supported columns.
 * @property statistics Configuration for evaluations. Statistics can be used to select evaluations and override parameters of evaluations.
 */
public data class JobColumnStatisticsConfigurationArgs(
    public val selectors: Output>? = null,
    public val statistics: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.databrew.inputs.JobColumnStatisticsConfigurationArgs =
        com.pulumi.awsnative.databrew.inputs.JobColumnStatisticsConfigurationArgs.builder()
            .selectors(
                selectors?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .statistics(statistics.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [JobColumnStatisticsConfigurationArgs].
 */
@PulumiTagMarker
public class JobColumnStatisticsConfigurationArgsBuilder internal constructor() {
    private var selectors: Output>? = null

    private var statistics: Output? = null

    /**
     * @param value List of column selectors. Selectors can be used to select columns from the dataset. When selectors are undefined, configuration will be applied to all supported columns.
     */
    @JvmName("mtjqejnjiongrwvc")
    public suspend fun selectors(`value`: Output>) {
        this.selectors = value
    }

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

    /**
     * @param values List of column selectors. Selectors can be used to select columns from the dataset. When selectors are undefined, configuration will be applied to all supported columns.
     */
    @JvmName("lfrdulnkrqcbodcv")
    public suspend fun selectors(values: List>) {
        this.selectors = Output.all(values)
    }

    /**
     * @param value Configuration for evaluations. Statistics can be used to select evaluations and override parameters of evaluations.
     */
    @JvmName("jqnpkqxnwqixsloy")
    public suspend fun statistics(`value`: Output) {
        this.statistics = value
    }

    /**
     * @param value List of column selectors. Selectors can be used to select columns from the dataset. When selectors are undefined, configuration will be applied to all supported columns.
     */
    @JvmName("lfyhnobuoljnsxtd")
    public suspend fun selectors(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.selectors = mapped
    }

    /**
     * @param argument List of column selectors. Selectors can be used to select columns from the dataset. When selectors are undefined, configuration will be applied to all supported columns.
     */
    @JvmName("sidbchmkxxghfsem")
    public suspend fun selectors(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            JobColumnSelectorArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.selectors = mapped
    }

    /**
     * @param argument List of column selectors. Selectors can be used to select columns from the dataset. When selectors are undefined, configuration will be applied to all supported columns.
     */
    @JvmName("skalgwkjcmpyporq")
    public suspend fun selectors(vararg argument: suspend JobColumnSelectorArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            JobColumnSelectorArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.selectors = mapped
    }

    /**
     * @param argument List of column selectors. Selectors can be used to select columns from the dataset. When selectors are undefined, configuration will be applied to all supported columns.
     */
    @JvmName("imcxjqtalpurffsl")
    public suspend fun selectors(argument: suspend JobColumnSelectorArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(JobColumnSelectorArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.selectors = mapped
    }

    /**
     * @param values List of column selectors. Selectors can be used to select columns from the dataset. When selectors are undefined, configuration will be applied to all supported columns.
     */
    @JvmName("wuuotpfwkvfmnwcx")
    public suspend fun selectors(vararg values: JobColumnSelectorArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.selectors = mapped
    }

    /**
     * @param value Configuration for evaluations. Statistics can be used to select evaluations and override parameters of evaluations.
     */
    @JvmName("yaliyvhweoniwhey")
    public suspend fun statistics(`value`: JobStatisticsConfigurationArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.statistics = mapped
    }

    /**
     * @param argument Configuration for evaluations. Statistics can be used to select evaluations and override parameters of evaluations.
     */
    @JvmName("xolrkeuomadooglb")
    public suspend fun statistics(argument: suspend JobStatisticsConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = JobStatisticsConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.statistics = mapped
    }

    internal fun build(): JobColumnStatisticsConfigurationArgs = JobColumnStatisticsConfigurationArgs(
        selectors = selectors,
        statistics = statistics ?: throw PulumiNullFieldException("statistics"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy