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

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

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

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

import com.pulumi.awsnative.amplifyuibuilder.inputs.FormCtaArgs.builder
import com.pulumi.awsnative.amplifyuibuilder.kotlin.enums.FormButtonsPosition
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.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property cancel Displays a cancel button.
 * @property clear Displays a clear button.
 * @property position The position of the button.
 * @property submit Displays a submit button.
 */
public data class FormCtaArgs(
    public val cancel: Output? = null,
    public val clear: Output? = null,
    public val position: Output? = null,
    public val submit: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.amplifyuibuilder.inputs.FormCtaArgs =
        com.pulumi.awsnative.amplifyuibuilder.inputs.FormCtaArgs.builder()
            .cancel(cancel?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .clear(clear?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .position(position?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .submit(submit?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [FormCtaArgs].
 */
@PulumiTagMarker
public class FormCtaArgsBuilder internal constructor() {
    private var cancel: Output? = null

    private var clear: Output? = null

    private var position: Output? = null

    private var submit: Output? = null

    /**
     * @param value Displays a cancel button.
     */
    @JvmName("ghuevxjmgivhmrws")
    public suspend fun cancel(`value`: Output) {
        this.cancel = value
    }

    /**
     * @param value Displays a clear button.
     */
    @JvmName("qqtbtrtqcvxgmhor")
    public suspend fun clear(`value`: Output) {
        this.clear = value
    }

    /**
     * @param value The position of the button.
     */
    @JvmName("qrkksfnnugqtqvtn")
    public suspend fun position(`value`: Output) {
        this.position = value
    }

    /**
     * @param value Displays a submit button.
     */
    @JvmName("baxmnabvdactfcjl")
    public suspend fun submit(`value`: Output) {
        this.submit = value
    }

    /**
     * @param value Displays a cancel button.
     */
    @JvmName("icugsaruajycwhhs")
    public suspend fun cancel(`value`: FormButtonArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cancel = mapped
    }

    /**
     * @param argument Displays a cancel button.
     */
    @JvmName("vucsrbktlhvoptpg")
    public suspend fun cancel(argument: suspend FormButtonArgsBuilder.() -> Unit) {
        val toBeMapped = FormButtonArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.cancel = mapped
    }

    /**
     * @param value Displays a clear button.
     */
    @JvmName("huufxqhgoaxqfyjw")
    public suspend fun clear(`value`: FormButtonArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clear = mapped
    }

    /**
     * @param argument Displays a clear button.
     */
    @JvmName("cqatregsntbgjxss")
    public suspend fun clear(argument: suspend FormButtonArgsBuilder.() -> Unit) {
        val toBeMapped = FormButtonArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.clear = mapped
    }

    /**
     * @param value The position of the button.
     */
    @JvmName("yscpqduqsrkqetni")
    public suspend fun position(`value`: FormButtonsPosition?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.position = mapped
    }

    /**
     * @param value Displays a submit button.
     */
    @JvmName("osslbvlwxfbanksl")
    public suspend fun submit(`value`: FormButtonArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.submit = mapped
    }

    /**
     * @param argument Displays a submit button.
     */
    @JvmName("yibgdhgcojrbkcxx")
    public suspend fun submit(argument: suspend FormButtonArgsBuilder.() -> Unit) {
        val toBeMapped = FormButtonArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.submit = mapped
    }

    internal fun build(): FormCtaArgs = FormCtaArgs(
        cancel = cancel,
        clear = clear,
        position = position,
        submit = submit,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy