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

com.pulumi.awsnative.amplifyuibuilder.kotlin.inputs.FormValueMappingsArgs.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.amplifyuibuilder.kotlin.inputs

import com.pulumi.awsnative.amplifyuibuilder.inputs.FormValueMappingsArgs.builder
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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property bindingProperties The information to bind fields to data at runtime.
 * @property values The value and display value pairs.
 */
public data class FormValueMappingsArgs(
    public val bindingProperties: Output>? = null,
    public val values: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.amplifyuibuilder.inputs.FormValueMappingsArgs =
        com.pulumi.awsnative.amplifyuibuilder.inputs.FormValueMappingsArgs.builder()
            .bindingProperties(
                bindingProperties?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value.let({ args0 -> args0.toJava() }))
                    }).toMap()
                }),
            )
            .values(
                values.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var values: Output>? = null

    /**
     * @param value The information to bind fields to data at runtime.
     */
    @JvmName("goskqjqwxesqvujo")
    public suspend fun bindingProperties(`value`: Output>) {
        this.bindingProperties = value
    }

    /**
     * @param value The value and display value pairs.
     */
    @JvmName("sgbsundcaeqtauvt")
    public suspend fun values(`value`: Output>) {
        this.values = value
    }

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

    /**
     * @param values The value and display value pairs.
     */
    @JvmName("xoffdpvlqjispjlo")
    public suspend fun values(values: List>) {
        this.values = Output.all(values)
    }

    /**
     * @param value The information to bind fields to data at runtime.
     */
    @JvmName("spwuddsurpmrffij")
    public suspend fun bindingProperties(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.bindingProperties = mapped
    }

    /**
     * @param argument The information to bind fields to data at runtime.
     */
    @JvmName("ylpuwiuylnmgqsfy")
    public suspend fun bindingProperties(vararg argument: Pair Unit>) {
        val toBeMapped = argument.toList().map { (left, right) ->
            left to
                FormInputBindingPropertiesValueArgsBuilder().applySuspend { right() }.build()
        }.toMap()
        val mapped = of(toBeMapped)
        this.bindingProperties = mapped
    }

    /**
     * @param values The information to bind fields to data at runtime.
     */
    @JvmName("ltttitduwuxjxrqu")
    public fun bindingProperties(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.bindingProperties = mapped
    }

    /**
     * @param value The value and display value pairs.
     */
    @JvmName("bvkgxdrnbsanvuka")
    public suspend fun values(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.values = mapped
    }

    /**
     * @param argument The value and display value pairs.
     */
    @JvmName("pnpsiipseilpnxih")
    public suspend fun values(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            FormValueMappingArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.values = mapped
    }

    /**
     * @param argument The value and display value pairs.
     */
    @JvmName("ejcxmojhefgevexf")
    public suspend fun values(vararg argument: suspend FormValueMappingArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            FormValueMappingArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.values = mapped
    }

    /**
     * @param argument The value and display value pairs.
     */
    @JvmName("eepepweignsrldqr")
    public suspend fun values(argument: suspend FormValueMappingArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(FormValueMappingArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.values = mapped
    }

    /**
     * @param values The value and display value pairs.
     */
    @JvmName("ycyxrosfxmawxojs")
    public suspend fun values(vararg values: FormValueMappingArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.values = mapped
    }

    internal fun build(): FormValueMappingsArgs = FormValueMappingsArgs(
        bindingProperties = bindingProperties,
        values = values ?: throw PulumiNullFieldException("values"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy