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

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

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

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

import com.pulumi.awsnative.amplifyuibuilder.inputs.FormSectionalElementArgs.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 kotlin.Any
import kotlin.Boolean
import kotlin.Double
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property excluded Excludes a sectional element that was generated by default for a specified data model.
 * @property level Specifies the size of the font for a `Heading` sectional element. Valid values are `1 | 2 | 3 | 4 | 5 | 6` .
 * @property orientation Specifies the orientation for a `Divider` sectional element. Valid values are `horizontal` or `vertical` .
 * @property position Specifies the position of the text in a field for a `Text` sectional element.
 * @property text The text for a `Text` sectional element.
 * @property type The type of sectional element. Valid values are `Heading` , `Text` , and `Divider` .
 */
public data class FormSectionalElementArgs(
    public val excluded: Output? = null,
    public val level: Output? = null,
    public val orientation: Output? = null,
    public val position: Output? = null,
    public val text: Output? = null,
    public val type: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.amplifyuibuilder.inputs.FormSectionalElementArgs =
        com.pulumi.awsnative.amplifyuibuilder.inputs.FormSectionalElementArgs.builder()
            .excluded(excluded?.applyValue({ args0 -> args0 }))
            .level(level?.applyValue({ args0 -> args0 }))
            .orientation(orientation?.applyValue({ args0 -> args0 }))
            .position(position?.applyValue({ args0 -> args0 }))
            .text(text?.applyValue({ args0 -> args0 }))
            .type(type.applyValue({ args0 -> args0 })).build()
}

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

    private var level: Output? = null

    private var orientation: Output? = null

    private var position: Output? = null

    private var text: Output? = null

    private var type: Output? = null

    /**
     * @param value Excludes a sectional element that was generated by default for a specified data model.
     */
    @JvmName("xqgijinpiaetnnxu")
    public suspend fun excluded(`value`: Output) {
        this.excluded = value
    }

    /**
     * @param value Specifies the size of the font for a `Heading` sectional element. Valid values are `1 | 2 | 3 | 4 | 5 | 6` .
     */
    @JvmName("ubrcwdnanunxnqoa")
    public suspend fun level(`value`: Output) {
        this.level = value
    }

    /**
     * @param value Specifies the orientation for a `Divider` sectional element. Valid values are `horizontal` or `vertical` .
     */
    @JvmName("wfwfjflqthonyaxx")
    public suspend fun orientation(`value`: Output) {
        this.orientation = value
    }

    /**
     * @param value Specifies the position of the text in a field for a `Text` sectional element.
     */
    @JvmName("mqgsvlubkqvauxlu")
    public suspend fun position(`value`: Output) {
        this.position = value
    }

    /**
     * @param value The text for a `Text` sectional element.
     */
    @JvmName("hxjbnbewngrvgigo")
    public suspend fun text(`value`: Output) {
        this.text = value
    }

    /**
     * @param value The type of sectional element. Valid values are `Heading` , `Text` , and `Divider` .
     */
    @JvmName("dedsetvchwiqxabt")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value Excludes a sectional element that was generated by default for a specified data model.
     */
    @JvmName("qufbeixmfinbidwk")
    public suspend fun excluded(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.excluded = mapped
    }

    /**
     * @param value Specifies the size of the font for a `Heading` sectional element. Valid values are `1 | 2 | 3 | 4 | 5 | 6` .
     */
    @JvmName("wieswtgjuddosipw")
    public suspend fun level(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.level = mapped
    }

    /**
     * @param value Specifies the orientation for a `Divider` sectional element. Valid values are `horizontal` or `vertical` .
     */
    @JvmName("mtwnedayragwfobp")
    public suspend fun orientation(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.orientation = mapped
    }

    /**
     * @param value Specifies the position of the text in a field for a `Text` sectional element.
     */
    @JvmName("orsksupvxaimjcnv")
    public suspend fun position(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.position = mapped
    }

    /**
     * @param value The text for a `Text` sectional element.
     */
    @JvmName("tvfxxskixlxexsml")
    public suspend fun text(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.text = mapped
    }

    /**
     * @param value The type of sectional element. Valid values are `Heading` , `Text` , and `Divider` .
     */
    @JvmName("bwhtdsgupeeaewcy")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): FormSectionalElementArgs = FormSectionalElementArgs(
        excluded = excluded,
        level = level,
        orientation = orientation,
        position = position,
        text = text,
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy