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

com.pulumi.awsnative.bedrock.kotlin.inputs.FlowConnectionArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.bedrock.kotlin.inputs

import com.pulumi.awsnative.bedrock.inputs.FlowConnectionArgs.builder
import com.pulumi.awsnative.bedrock.kotlin.enums.FlowConnectionType
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 kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Flow connection
 * @property configuration The configuration of the connection.
 * @property name Name of a connection in a flow
 * @property source Name of a node in a flow
 * @property target Name of a node in a flow
 * @property type Whether the source node that the connection begins from is a condition node ( `Conditional` ) or not ( `Data` ).
 */
public data class FlowConnectionArgs(
    public val configuration: Output>? =
        null,
    public val name: Output,
    public val source: Output,
    public val target: Output,
    public val type: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.bedrock.inputs.FlowConnectionArgs =
        com.pulumi.awsnative.bedrock.inputs.FlowConnectionArgs.builder()
            .configuration(
                configuration?.applyValue({ args0 ->
                    args0.transform({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            )
            .name(name.applyValue({ args0 -> args0 }))
            .source(source.applyValue({ args0 -> args0 }))
            .target(target.applyValue({ args0 -> args0 }))
            .type(type.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

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

    private var name: Output? = null

    private var source: Output? = null

    private var target: Output? = null

    private var type: Output? = null

    /**
     * @param value The configuration of the connection.
     */
    @JvmName("wopttmjymhhfsels")
    public suspend fun configuration(`value`: Output>) {
        this.configuration = value
    }

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

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

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

    /**
     * @param value Whether the source node that the connection begins from is a condition node ( `Conditional` ) or not ( `Data` ).
     */
    @JvmName("ypabvqjejjyldvyk")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The configuration of the connection.
     */
    @JvmName("lncqvqlywjwdehag")
    public suspend fun configuration(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.configuration = mapped
    }

    /**
     * @param value The configuration of the connection.
     */
    @JvmName("gqhjkrrmogfthusr")
    public fun configuration(`value`: FlowConnectionConfiguration0PropertiesArgs) {
        val toBeMapped = Either.ofLeft<
            FlowConnectionConfiguration0PropertiesArgs,
            FlowConnectionConfiguration1PropertiesArgs,
            >(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.configuration = mapped
    }

    /**
     * @param value The configuration of the connection.
     */
    @JvmName("twovbrbogwbtgeix")
    public fun configuration(`value`: FlowConnectionConfiguration1PropertiesArgs) {
        val toBeMapped = Either.ofRight<
            FlowConnectionConfiguration0PropertiesArgs,
            FlowConnectionConfiguration1PropertiesArgs,
            >(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.configuration = mapped
    }

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

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

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

    /**
     * @param value Whether the source node that the connection begins from is a condition node ( `Conditional` ) or not ( `Data` ).
     */
    @JvmName("vfmftumbkprgnyho")
    public suspend fun type(`value`: FlowConnectionType) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): FlowConnectionArgs = FlowConnectionArgs(
        configuration = configuration,
        name = name ?: throw PulumiNullFieldException("name"),
        source = source ?: throw PulumiNullFieldException("source"),
        target = target ?: throw PulumiNullFieldException("target"),
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy