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

com.pulumi.azurenative.insights.kotlin.inputs.DataFlowArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.insights.kotlin.inputs

import com.pulumi.azurenative.insights.inputs.DataFlowArgs.builder
import com.pulumi.azurenative.insights.kotlin.enums.KnownDataFlowStreams
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Definition of which streams are sent to which destinations.
 * @property builtInTransform The builtIn transform to transform stream data
 * @property destinations List of destinations for this data flow.
 * @property outputStream The output stream of the transform. Only required if the transform changes data to a different stream.
 * @property streams List of streams for this data flow.
 * @property transformKql The KQL query to transform stream data.
 */
public data class DataFlowArgs(
    public val builtInTransform: Output? = null,
    public val destinations: Output>? = null,
    public val outputStream: Output? = null,
    public val streams: Output>>? = null,
    public val transformKql: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.insights.inputs.DataFlowArgs =
        com.pulumi.azurenative.insights.inputs.DataFlowArgs.builder()
            .builtInTransform(builtInTransform?.applyValue({ args0 -> args0 }))
            .destinations(destinations?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .outputStream(outputStream?.applyValue({ args0 -> args0 }))
            .streams(
                streams?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.transform(
                            { args0 -> args0 },
                            { args0 -> args0.let({ args0 -> args0.toJava() }) },
                        )
                    })
                }),
            )
            .transformKql(transformKql?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DataFlowArgs].
 */
@PulumiTagMarker
public class DataFlowArgsBuilder internal constructor() {
    private var builtInTransform: Output? = null

    private var destinations: Output>? = null

    private var outputStream: Output? = null

    private var streams: Output>>? = null

    private var transformKql: Output? = null

    /**
     * @param value The builtIn transform to transform stream data
     */
    @JvmName("vyewtcyelwdkkopc")
    public suspend fun builtInTransform(`value`: Output) {
        this.builtInTransform = value
    }

    /**
     * @param value List of destinations for this data flow.
     */
    @JvmName("xnnvushyjmlbbiyj")
    public suspend fun destinations(`value`: Output>) {
        this.destinations = value
    }

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

    /**
     * @param values List of destinations for this data flow.
     */
    @JvmName("spfigneexpbyvgee")
    public suspend fun destinations(values: List>) {
        this.destinations = Output.all(values)
    }

    /**
     * @param value The output stream of the transform. Only required if the transform changes data to a different stream.
     */
    @JvmName("btuqyhpbxhghgjpd")
    public suspend fun outputStream(`value`: Output) {
        this.outputStream = value
    }

    /**
     * @param value List of streams for this data flow.
     */
    @JvmName("qfqdexyaajybtqly")
    public suspend fun streams(`value`: Output>>) {
        this.streams = value
    }

    @JvmName("nsqgbrrctbaiucvy")
    public suspend fun streams(vararg values: Output>) {
        this.streams = Output.all(values.asList())
    }

    /**
     * @param values List of streams for this data flow.
     */
    @JvmName("udotoaxrentmuqvb")
    public suspend fun streams(values: List>>) {
        this.streams = Output.all(values)
    }

    /**
     * @param value The KQL query to transform stream data.
     */
    @JvmName("nniofpgvrgyaffbt")
    public suspend fun transformKql(`value`: Output) {
        this.transformKql = value
    }

    /**
     * @param value The builtIn transform to transform stream data
     */
    @JvmName("nuqiqdkcigpglebl")
    public suspend fun builtInTransform(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.builtInTransform = mapped
    }

    /**
     * @param value List of destinations for this data flow.
     */
    @JvmName("viujlxhdelwbwxrw")
    public suspend fun destinations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.destinations = mapped
    }

    /**
     * @param values List of destinations for this data flow.
     */
    @JvmName("habsfqrcocthqdhh")
    public suspend fun destinations(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.destinations = mapped
    }

    /**
     * @param value The output stream of the transform. Only required if the transform changes data to a different stream.
     */
    @JvmName("rnjkhdbuwoauftwv")
    public suspend fun outputStream(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.outputStream = mapped
    }

    /**
     * @param value List of streams for this data flow.
     */
    @JvmName("wrorfsuaqgcythqu")
    public suspend fun streams(`value`: List>?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.streams = mapped
    }

    /**
     * @param values List of streams for this data flow.
     */
    @JvmName("hckdkpacltplibrw")
    public suspend fun streams(vararg values: Either) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.streams = mapped
    }

    /**
     * @param value The KQL query to transform stream data.
     */
    @JvmName("rgdrhartvrljgoex")
    public suspend fun transformKql(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.transformKql = mapped
    }

    internal fun build(): DataFlowArgs = DataFlowArgs(
        builtInTransform = builtInTransform,
        destinations = destinations,
        outputStream = outputStream,
        streams = streams,
        transformKql = transformKql,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy