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

com.pulumi.awsnative.bedrock.kotlin.inputs.FlowNodeArgs.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.bedrock.kotlin.inputs

import com.pulumi.awsnative.bedrock.inputs.FlowNodeArgs.builder
import com.pulumi.awsnative.bedrock.kotlin.enums.FlowNodeType
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.Any
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Internal mixin for flow node
 * @property configuration Contains configurations for the node.
 * @property inputs List of node inputs in a flow
 * @property name Name of a node in a flow
 * @property outputs List of node outputs in a flow
 * @property type The type of node. This value must match the name of the key that you provide in the configuration you provide in the `FlowNodeConfiguration` field.
 */
public data class FlowNodeArgs(
    public val configuration: Output? = null,
    public val inputs: Output>? = null,
    public val name: Output,
    public val outputs: Output>? = null,
    public val type: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.bedrock.inputs.FlowNodeArgs =
        com.pulumi.awsnative.bedrock.inputs.FlowNodeArgs.builder()
            .configuration(configuration?.applyValue({ args0 -> args0 }))
            .inputs(inputs?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .name(name.applyValue({ args0 -> args0 }))
            .outputs(
                outputs?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .type(type.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [FlowNodeArgs].
 */
@PulumiTagMarker
public class FlowNodeArgsBuilder internal constructor() {
    private var configuration: Output? = null

    private var inputs: Output>? = null

    private var name: Output? = null

    private var outputs: Output>? = null

    private var type: Output? = null

    /**
     * @param value Contains configurations for the node.
     */
    @JvmName("ondarmwjslkmsrxu")
    public suspend fun configuration(`value`: Output) {
        this.configuration = value
    }

    /**
     * @param value List of node inputs in a flow
     */
    @JvmName("qwkwocwroormgpen")
    public suspend fun inputs(`value`: Output>) {
        this.inputs = value
    }

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

    /**
     * @param values List of node inputs in a flow
     */
    @JvmName("rvmqcemgpvwrtaqu")
    public suspend fun inputs(values: List>) {
        this.inputs = Output.all(values)
    }

    /**
     * @param value Name of a node in a flow
     */
    @JvmName("baelxlctuggwnkst")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value List of node outputs in a flow
     */
    @JvmName("xgoggquapqnvlphs")
    public suspend fun outputs(`value`: Output>) {
        this.outputs = value
    }

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

    /**
     * @param values List of node outputs in a flow
     */
    @JvmName("ptekdddjlxggxhsx")
    public suspend fun outputs(values: List>) {
        this.outputs = Output.all(values)
    }

    /**
     * @param value The type of node. This value must match the name of the key that you provide in the configuration you provide in the `FlowNodeConfiguration` field.
     */
    @JvmName("dhitjfjtglmfycbb")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value Contains configurations for the node.
     */
    @JvmName("abebbtfvbancgwur")
    public suspend fun configuration(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.configuration = mapped
    }

    /**
     * @param value List of node inputs in a flow
     */
    @JvmName("mvmmkggevtkxlegc")
    public suspend fun inputs(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.inputs = mapped
    }

    /**
     * @param argument List of node inputs in a flow
     */
    @JvmName("iklnhsmkqlabkcvb")
    public suspend fun inputs(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            FlowNodeInputArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.inputs = mapped
    }

    /**
     * @param argument List of node inputs in a flow
     */
    @JvmName("uedqtmfnoqlvnhpr")
    public suspend fun inputs(vararg argument: suspend FlowNodeInputArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            FlowNodeInputArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.inputs = mapped
    }

    /**
     * @param argument List of node inputs in a flow
     */
    @JvmName("godycbmtalcadogm")
    public suspend fun inputs(argument: suspend FlowNodeInputArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(FlowNodeInputArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.inputs = mapped
    }

    /**
     * @param values List of node inputs in a flow
     */
    @JvmName("oxpeogmvxvpkdhhp")
    public suspend fun inputs(vararg values: FlowNodeInputArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.inputs = mapped
    }

    /**
     * @param value Name of a node in a flow
     */
    @JvmName("mdjiddkilanoltjf")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value List of node outputs in a flow
     */
    @JvmName("gcpoajuulmyrelwn")
    public suspend fun outputs(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.outputs = mapped
    }

    /**
     * @param argument List of node outputs in a flow
     */
    @JvmName("iqlfruqtpmmahkgb")
    public suspend fun outputs(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            FlowNodeOutputArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.outputs = mapped
    }

    /**
     * @param argument List of node outputs in a flow
     */
    @JvmName("lhyshcmfpjvhdttr")
    public suspend fun outputs(vararg argument: suspend FlowNodeOutputArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            FlowNodeOutputArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.outputs = mapped
    }

    /**
     * @param argument List of node outputs in a flow
     */
    @JvmName("amckthjitsqhpcjj")
    public suspend fun outputs(argument: suspend FlowNodeOutputArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(FlowNodeOutputArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.outputs = mapped
    }

    /**
     * @param values List of node outputs in a flow
     */
    @JvmName("rdnybsexqcpfkkrh")
    public suspend fun outputs(vararg values: FlowNodeOutputArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.outputs = mapped
    }

    /**
     * @param value The type of node. This value must match the name of the key that you provide in the configuration you provide in the `FlowNodeConfiguration` field.
     */
    @JvmName("wqsxqotahwrxpvux")
    public suspend fun type(`value`: FlowNodeType) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): FlowNodeArgs = FlowNodeArgs(
        configuration = configuration,
        inputs = inputs,
        name = name ?: throw PulumiNullFieldException("name"),
        outputs = outputs,
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy