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

com.pulumi.azurenative.iotoperations.kotlin.inputs.DataFlowOperationArgs.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.iotoperations.kotlin.inputs

import com.pulumi.azurenative.iotoperations.inputs.DataFlowOperationArgs.builder
import com.pulumi.azurenative.iotoperations.kotlin.enums.OperationType
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.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * DataFlow Operation properties. NOTE - One only method is allowed to be used for one entry.
 * @property builtInTransformationSettings Transformation configuration.
 * @property destinationSettings Destination configuration.
 * @property name Optional user provided name of the transformation.
 * @property operationType Type of operation.
 * @property sourceSettings Source configuration.
 */
public data class DataFlowOperationArgs(
    public val builtInTransformationSettings: Output? = null,
    public val destinationSettings: Output,
    public val name: Output? = null,
    public val operationType: Output>,
    public val sourceSettings: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.iotoperations.inputs.DataFlowOperationArgs =
        com.pulumi.azurenative.iotoperations.inputs.DataFlowOperationArgs.builder()
            .builtInTransformationSettings(
                builtInTransformationSettings?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .destinationSettings(
                destinationSettings.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .name(name?.applyValue({ args0 -> args0 }))
            .operationType(
                operationType.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .sourceSettings(
                sourceSettings.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [DataFlowOperationArgs].
 */
@PulumiTagMarker
public class DataFlowOperationArgsBuilder internal constructor() {
    private var builtInTransformationSettings: Output? = null

    private var destinationSettings: Output? = null

    private var name: Output? = null

    private var operationType: Output>? = null

    private var sourceSettings: Output? = null

    /**
     * @param value Transformation configuration.
     */
    @JvmName("gittuyjysersmfws")
    public suspend fun builtInTransformationSettings(`value`: Output) {
        this.builtInTransformationSettings = value
    }

    /**
     * @param value Destination configuration.
     */
    @JvmName("gecyxjadmbwlhuyy")
    public suspend fun destinationSettings(`value`: Output) {
        this.destinationSettings = value
    }

    /**
     * @param value Optional user provided name of the transformation.
     */
    @JvmName("suehgmcpbswpsdev")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Type of operation.
     */
    @JvmName("sdtmqeytdubedjvb")
    public suspend fun operationType(`value`: Output>) {
        this.operationType = value
    }

    /**
     * @param value Source configuration.
     */
    @JvmName("hkcrqmlbejpduvhd")
    public suspend fun sourceSettings(`value`: Output) {
        this.sourceSettings = value
    }

    /**
     * @param value Transformation configuration.
     */
    @JvmName("dlrsftsjyqkjsgpf")
    public suspend fun builtInTransformationSettings(`value`: DataFlowBuiltInTransformationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.builtInTransformationSettings = mapped
    }

    /**
     * @param argument Transformation configuration.
     */
    @JvmName("pqjvbbjjlxneifmu")
    public suspend fun builtInTransformationSettings(argument: suspend DataFlowBuiltInTransformationArgsBuilder.() -> Unit) {
        val toBeMapped = DataFlowBuiltInTransformationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.builtInTransformationSettings = mapped
    }

    /**
     * @param value Destination configuration.
     */
    @JvmName("gauvavwdcvvbvbdl")
    public suspend fun destinationSettings(`value`: DataFlowDestinationOperationArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.destinationSettings = mapped
    }

    /**
     * @param argument Destination configuration.
     */
    @JvmName("lkuxgocchfttacks")
    public suspend fun destinationSettings(argument: suspend DataFlowDestinationOperationArgsBuilder.() -> Unit) {
        val toBeMapped = DataFlowDestinationOperationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.destinationSettings = mapped
    }

    /**
     * @param value Optional user provided name of the transformation.
     */
    @JvmName("tgwuaqvabgvtjxgb")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Type of operation.
     */
    @JvmName("rfgujgnrklxtwsow")
    public suspend fun operationType(`value`: Either) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.operationType = mapped
    }

    /**
     * @param value Type of operation.
     */
    @JvmName("ilhaslnxgmumfnpn")
    public fun operationType(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.operationType = mapped
    }

    /**
     * @param value Type of operation.
     */
    @JvmName("teldyhybabbxolfi")
    public fun operationType(`value`: OperationType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.operationType = mapped
    }

    /**
     * @param value Source configuration.
     */
    @JvmName("mlaghbkbgjfjqfyp")
    public suspend fun sourceSettings(`value`: DataFlowSourceOperationArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sourceSettings = mapped
    }

    /**
     * @param argument Source configuration.
     */
    @JvmName("kokuqgivnljqbvla")
    public suspend fun sourceSettings(argument: suspend DataFlowSourceOperationArgsBuilder.() -> Unit) {
        val toBeMapped = DataFlowSourceOperationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.sourceSettings = mapped
    }

    internal fun build(): DataFlowOperationArgs = DataFlowOperationArgs(
        builtInTransformationSettings = builtInTransformationSettings,
        destinationSettings = destinationSettings ?: throw PulumiNullFieldException("destinationSettings"),
        name = name,
        operationType = operationType ?: throw PulumiNullFieldException("operationType"),
        sourceSettings = sourceSettings ?: throw PulumiNullFieldException("sourceSettings"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy