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

com.pulumi.azurenative.iotoperations.kotlin.inputs.DataFlowBuiltInTransformationArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.iotoperations.kotlin.inputs

import com.pulumi.azurenative.iotoperations.inputs.DataFlowBuiltInTransformationArgs.builder
import com.pulumi.azurenative.iotoperations.kotlin.enums.TransformationSerializationFormat
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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * DataFlow BuiltIn Transformation properties
 * @property datasets Enrich data from Broker State Store. Dataset references a key in Broker State Store.
 * @property filter Filters input record or datapoints based on condition.
 * @property map Maps input to output message.
 * @property schemaRef Reference to the schema that describes the output of the transformation.
 * @property serializationFormat Serialization format. Optional; defaults to JSON. Allowed value JSON Schema/draft-7, Parquet. Default: Json
 */
public data class DataFlowBuiltInTransformationArgs(
    public val datasets: Output>? = null,
    public val filter: Output>? = null,
    public val map: Output>? = null,
    public val schemaRef: Output? = null,
    public val serializationFormat: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.iotoperations.inputs.DataFlowBuiltInTransformationArgs =
        com.pulumi.azurenative.iotoperations.inputs.DataFlowBuiltInTransformationArgs.builder()
            .datasets(
                datasets?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .filter(filter?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .map(map?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .schemaRef(schemaRef?.applyValue({ args0 -> args0 }))
            .serializationFormat(
                serializationFormat?.applyValue({ args0 ->
                    args0.transform(
                        { args0 -> args0 },
                        { args0 -> args0.let({ args0 -> args0.toJava() }) },
                    )
                }),
            ).build()
}

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

    private var filter: Output>? = null

    private var map: Output>? = null

    private var schemaRef: Output? = null

    private var serializationFormat: Output>? = null

    /**
     * @param value Enrich data from Broker State Store. Dataset references a key in Broker State Store.
     */
    @JvmName("drutvkornmhalmlk")
    public suspend fun datasets(`value`: Output>) {
        this.datasets = value
    }

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

    /**
     * @param values Enrich data from Broker State Store. Dataset references a key in Broker State Store.
     */
    @JvmName("krgfjfpcfmpwmrte")
    public suspend fun datasets(values: List>) {
        this.datasets = Output.all(values)
    }

    /**
     * @param value Filters input record or datapoints based on condition.
     */
    @JvmName("cshwriminbftboak")
    public suspend fun filter(`value`: Output>) {
        this.filter = value
    }

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

    /**
     * @param values Filters input record or datapoints based on condition.
     */
    @JvmName("kdefqcvggvunxiya")
    public suspend fun filter(values: List>) {
        this.filter = Output.all(values)
    }

    /**
     * @param value Maps input to output message.
     */
    @JvmName("cvxlemqplpmvlduc")
    public suspend fun map(`value`: Output>) {
        this.map = value
    }

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

    /**
     * @param values Maps input to output message.
     */
    @JvmName("imocertjjsbyxljj")
    public suspend fun map(values: List>) {
        this.map = Output.all(values)
    }

    /**
     * @param value Reference to the schema that describes the output of the transformation.
     */
    @JvmName("rmvuoqhbxclaomua")
    public suspend fun schemaRef(`value`: Output) {
        this.schemaRef = value
    }

    /**
     * @param value Serialization format. Optional; defaults to JSON. Allowed value JSON Schema/draft-7, Parquet. Default: Json
     */
    @JvmName("qvmkvgvdyyvcyvec")
    public suspend fun serializationFormat(`value`: Output>) {
        this.serializationFormat = value
    }

    /**
     * @param value Enrich data from Broker State Store. Dataset references a key in Broker State Store.
     */
    @JvmName("jkfgqfnehbmmxops")
    public suspend fun datasets(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.datasets = mapped
    }

    /**
     * @param argument Enrich data from Broker State Store. Dataset references a key in Broker State Store.
     */
    @JvmName("pegbyeiudfrrnqfn")
    public suspend fun datasets(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DataFlowBuiltInTransformationDatasetArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.datasets = mapped
    }

    /**
     * @param argument Enrich data from Broker State Store. Dataset references a key in Broker State Store.
     */
    @JvmName("antilfkkusowabej")
    public suspend fun datasets(vararg argument: suspend DataFlowBuiltInTransformationDatasetArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            DataFlowBuiltInTransformationDatasetArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.datasets = mapped
    }

    /**
     * @param argument Enrich data from Broker State Store. Dataset references a key in Broker State Store.
     */
    @JvmName("yggtuvgsfqlhpyjr")
    public suspend fun datasets(argument: suspend DataFlowBuiltInTransformationDatasetArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            DataFlowBuiltInTransformationDatasetArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.datasets = mapped
    }

    /**
     * @param values Enrich data from Broker State Store. Dataset references a key in Broker State Store.
     */
    @JvmName("bmwengpvpyyrlvbj")
    public suspend fun datasets(vararg values: DataFlowBuiltInTransformationDatasetArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.datasets = mapped
    }

    /**
     * @param value Filters input record or datapoints based on condition.
     */
    @JvmName("rywsaxqlifiatntu")
    public suspend fun filter(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.filter = mapped
    }

    /**
     * @param argument Filters input record or datapoints based on condition.
     */
    @JvmName("rcdbyxnqsovsxnyc")
    public suspend fun filter(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DataFlowBuiltInTransformationFilterArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.filter = mapped
    }

    /**
     * @param argument Filters input record or datapoints based on condition.
     */
    @JvmName("rremkowutwhgfgwd")
    public suspend fun filter(vararg argument: suspend DataFlowBuiltInTransformationFilterArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            DataFlowBuiltInTransformationFilterArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.filter = mapped
    }

    /**
     * @param argument Filters input record or datapoints based on condition.
     */
    @JvmName("bfjmnvqphxfgxhjf")
    public suspend fun filter(argument: suspend DataFlowBuiltInTransformationFilterArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            DataFlowBuiltInTransformationFilterArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.filter = mapped
    }

    /**
     * @param values Filters input record or datapoints based on condition.
     */
    @JvmName("wkylpdfdvpwufmhv")
    public suspend fun filter(vararg values: DataFlowBuiltInTransformationFilterArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.filter = mapped
    }

    /**
     * @param value Maps input to output message.
     */
    @JvmName("jowgxwqcrekmndvr")
    public suspend fun map(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.map = mapped
    }

    /**
     * @param argument Maps input to output message.
     */
    @JvmName("mmbqyhbqmxifwhhw")
    public suspend fun map(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DataFlowBuiltInTransformationMapArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.map = mapped
    }

    /**
     * @param argument Maps input to output message.
     */
    @JvmName("ayndionartmlkuis")
    public suspend fun map(vararg argument: suspend DataFlowBuiltInTransformationMapArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            DataFlowBuiltInTransformationMapArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.map = mapped
    }

    /**
     * @param argument Maps input to output message.
     */
    @JvmName("dukayfbskorvgkph")
    public suspend fun map(argument: suspend DataFlowBuiltInTransformationMapArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            DataFlowBuiltInTransformationMapArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.map = mapped
    }

    /**
     * @param values Maps input to output message.
     */
    @JvmName("jmgohhwhilwmiata")
    public suspend fun map(vararg values: DataFlowBuiltInTransformationMapArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.map = mapped
    }

    /**
     * @param value Reference to the schema that describes the output of the transformation.
     */
    @JvmName("qjefvrbncyhbdjmf")
    public suspend fun schemaRef(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.schemaRef = mapped
    }

    /**
     * @param value Serialization format. Optional; defaults to JSON. Allowed value JSON Schema/draft-7, Parquet. Default: Json
     */
    @JvmName("fcinrmhbqfddpchi")
    public suspend fun serializationFormat(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serializationFormat = mapped
    }

    /**
     * @param value Serialization format. Optional; defaults to JSON. Allowed value JSON Schema/draft-7, Parquet. Default: Json
     */
    @JvmName("yfibboyptdpfvmwb")
    public fun serializationFormat(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.serializationFormat = mapped
    }

    /**
     * @param value Serialization format. Optional; defaults to JSON. Allowed value JSON Schema/draft-7, Parquet. Default: Json
     */
    @JvmName("qdgxosdyfbjbqkaf")
    public fun serializationFormat(`value`: TransformationSerializationFormat) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.serializationFormat = mapped
    }

    internal fun build(): DataFlowBuiltInTransformationArgs = DataFlowBuiltInTransformationArgs(
        datasets = datasets,
        filter = filter,
        map = map,
        schemaRef = schemaRef,
        serializationFormat = serializationFormat,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy