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

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

package com.pulumi.awsnative.iotanalytics.kotlin.inputs

import com.pulumi.awsnative.iotanalytics.inputs.DatasetQueryActionArgs.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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property filters Pre-filters applied to message data.
 * @property sqlQuery An "SqlQueryDatasetAction" object that uses an SQL query to automatically create data set contents.
 */
public data class DatasetQueryActionArgs(
    public val filters: Output>? = null,
    public val sqlQuery: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iotanalytics.inputs.DatasetQueryActionArgs =
        com.pulumi.awsnative.iotanalytics.inputs.DatasetQueryActionArgs.builder()
            .filters(
                filters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .sqlQuery(sqlQuery.applyValue({ args0 -> args0 })).build()
}

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

    private var sqlQuery: Output? = null

    /**
     * @param value Pre-filters applied to message data.
     */
    @JvmName("qonbjxfoyrhjdmoj")
    public suspend fun filters(`value`: Output>) {
        this.filters = value
    }

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

    /**
     * @param values Pre-filters applied to message data.
     */
    @JvmName("gofxiuspludcuwtc")
    public suspend fun filters(values: List>) {
        this.filters = Output.all(values)
    }

    /**
     * @param value An "SqlQueryDatasetAction" object that uses an SQL query to automatically create data set contents.
     */
    @JvmName("biaptcpevupikvey")
    public suspend fun sqlQuery(`value`: Output) {
        this.sqlQuery = value
    }

    /**
     * @param value Pre-filters applied to message data.
     */
    @JvmName("sfshoxlpjlggeene")
    public suspend fun filters(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.filters = mapped
    }

    /**
     * @param argument Pre-filters applied to message data.
     */
    @JvmName("bvfbjeqpvfynjfkt")
    public suspend fun filters(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DatasetFilterArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.filters = mapped
    }

    /**
     * @param argument Pre-filters applied to message data.
     */
    @JvmName("ivqjdyqnrrooreht")
    public suspend fun filters(vararg argument: suspend DatasetFilterArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            DatasetFilterArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.filters = mapped
    }

    /**
     * @param argument Pre-filters applied to message data.
     */
    @JvmName("oexudntebjxvewxu")
    public suspend fun filters(argument: suspend DatasetFilterArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(DatasetFilterArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.filters = mapped
    }

    /**
     * @param values Pre-filters applied to message data.
     */
    @JvmName("baqaqmasguwowpfa")
    public suspend fun filters(vararg values: DatasetFilterArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.filters = mapped
    }

    /**
     * @param value An "SqlQueryDatasetAction" object that uses an SQL query to automatically create data set contents.
     */
    @JvmName("euftnnqqpvkijqej")
    public suspend fun sqlQuery(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sqlQuery = mapped
    }

    internal fun build(): DatasetQueryActionArgs = DatasetQueryActionArgs(
        filters = filters,
        sqlQuery = sqlQuery ?: throw PulumiNullFieldException("sqlQuery"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy