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

com.pulumi.awsnative.amplifyuibuilder.kotlin.inputs.FormFieldConfigArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.amplifyuibuilder.kotlin.inputs

import com.pulumi.awsnative.amplifyuibuilder.inputs.FormFieldConfigArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Any
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property excluded Specifies whether to hide a field.
 * @property inputType Describes the configuration for the default input value to display for a field.
 * @property label The label for the field.
 * @property position Specifies the field position.
 * @property validations The validations to perform on the value in the field.
 */
public data class FormFieldConfigArgs(
    public val excluded: Output? = null,
    public val inputType: Output? = null,
    public val label: Output? = null,
    public val position: Output? = null,
    public val validations: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.amplifyuibuilder.inputs.FormFieldConfigArgs =
        com.pulumi.awsnative.amplifyuibuilder.inputs.FormFieldConfigArgs.builder()
            .excluded(excluded?.applyValue({ args0 -> args0 }))
            .inputType(inputType?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .label(label?.applyValue({ args0 -> args0 }))
            .position(position?.applyValue({ args0 -> args0 }))
            .validations(
                validations?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [FormFieldConfigArgs].
 */
@PulumiTagMarker
public class FormFieldConfigArgsBuilder internal constructor() {
    private var excluded: Output? = null

    private var inputType: Output? = null

    private var label: Output? = null

    private var position: Output? = null

    private var validations: Output>? = null

    /**
     * @param value Specifies whether to hide a field.
     */
    @JvmName("ryvldernoxaqogir")
    public suspend fun excluded(`value`: Output) {
        this.excluded = value
    }

    /**
     * @param value Describes the configuration for the default input value to display for a field.
     */
    @JvmName("nlyyfuvsunhcuwwt")
    public suspend fun inputType(`value`: Output) {
        this.inputType = value
    }

    /**
     * @param value The label for the field.
     */
    @JvmName("tfqgndaisxxbhbqr")
    public suspend fun label(`value`: Output) {
        this.label = value
    }

    /**
     * @param value Specifies the field position.
     */
    @JvmName("gerqiaakioerunku")
    public suspend fun position(`value`: Output) {
        this.position = value
    }

    /**
     * @param value The validations to perform on the value in the field.
     */
    @JvmName("bnnbywytrrbcgedf")
    public suspend fun validations(`value`: Output>) {
        this.validations = value
    }

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

    /**
     * @param values The validations to perform on the value in the field.
     */
    @JvmName("tldwgddnxkxbgcgh")
    public suspend fun validations(values: List>) {
        this.validations = Output.all(values)
    }

    /**
     * @param value Specifies whether to hide a field.
     */
    @JvmName("vpmnywxgmixpmnwo")
    public suspend fun excluded(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.excluded = mapped
    }

    /**
     * @param value Describes the configuration for the default input value to display for a field.
     */
    @JvmName("kowrinjftqjuvmxe")
    public suspend fun inputType(`value`: FormFieldInputConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.inputType = mapped
    }

    /**
     * @param argument Describes the configuration for the default input value to display for a field.
     */
    @JvmName("sdvjlyrqerxjqqac")
    public suspend fun inputType(argument: suspend FormFieldInputConfigArgsBuilder.() -> Unit) {
        val toBeMapped = FormFieldInputConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.inputType = mapped
    }

    /**
     * @param value The label for the field.
     */
    @JvmName("fmmimvqpwciycfyl")
    public suspend fun label(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.label = mapped
    }

    /**
     * @param value Specifies the field position.
     */
    @JvmName("vujrwkhbxpajfweb")
    public suspend fun position(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.position = mapped
    }

    /**
     * @param value The validations to perform on the value in the field.
     */
    @JvmName("tbdjsfadteimissd")
    public suspend fun validations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.validations = mapped
    }

    /**
     * @param argument The validations to perform on the value in the field.
     */
    @JvmName("owtgyruikjustwow")
    public suspend fun validations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            FormFieldValidationConfigurationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.validations = mapped
    }

    /**
     * @param argument The validations to perform on the value in the field.
     */
    @JvmName("xmcecqacakwqslbe")
    public suspend fun validations(vararg argument: suspend FormFieldValidationConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            FormFieldValidationConfigurationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.validations = mapped
    }

    /**
     * @param argument The validations to perform on the value in the field.
     */
    @JvmName("hlnfhwqhajtucwey")
    public suspend fun validations(argument: suspend FormFieldValidationConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            FormFieldValidationConfigurationArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.validations = mapped
    }

    /**
     * @param values The validations to perform on the value in the field.
     */
    @JvmName("edhcbayiqoompbpu")
    public suspend fun validations(vararg values: FormFieldValidationConfigurationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.validations = mapped
    }

    internal fun build(): FormFieldConfigArgs = FormFieldConfigArgs(
        excluded = excluded,
        inputType = inputType,
        label = label,
        position = position,
        validations = validations,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy