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

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

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

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

import com.pulumi.awsnative.bedrock.inputs.FlowNodeInputArgs.builder
import com.pulumi.awsnative.bedrock.kotlin.enums.FlowNodeIoDataType
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

/**
 * Input to a node in a flow
 * @property expression Expression for a node input in a flow
 * @property name Name of a node input in a flow
 * @property type The data type of the input. If the input doesn't match this type at runtime, a validation error will be thrown.
 */
public data class FlowNodeInputArgs(
    public val expression: Output,
    public val name: Output,
    public val type: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.bedrock.inputs.FlowNodeInputArgs =
        com.pulumi.awsnative.bedrock.inputs.FlowNodeInputArgs.builder()
            .expression(expression.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 }))
            .type(type.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [FlowNodeInputArgs].
 */
@PulumiTagMarker
public class FlowNodeInputArgsBuilder internal constructor() {
    private var expression: Output? = null

    private var name: Output? = null

    private var type: Output? = null

    /**
     * @param value Expression for a node input in a flow
     */
    @JvmName("omqrpfuqsyfwdoov")
    public suspend fun expression(`value`: Output) {
        this.expression = value
    }

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

    /**
     * @param value The data type of the input. If the input doesn't match this type at runtime, a validation error will be thrown.
     */
    @JvmName("pvshrfpvmappovvn")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

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

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

    /**
     * @param value The data type of the input. If the input doesn't match this type at runtime, a validation error will be thrown.
     */
    @JvmName("cymbispbejfjoofy")
    public suspend fun type(`value`: FlowNodeIoDataType) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): FlowNodeInputArgs = FlowNodeInputArgs(
        expression = expression ?: throw PulumiNullFieldException("expression"),
        name = name ?: throw PulumiNullFieldException("name"),
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy