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

com.pulumi.awsnative.connect.kotlin.inputs.EvaluationFormSingleSelectQuestionPropertiesArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.connect.kotlin.inputs

import com.pulumi.awsnative.connect.inputs.EvaluationFormSingleSelectQuestionPropertiesArgs.builder
import com.pulumi.awsnative.connect.kotlin.enums.EvaluationFormSingleSelectQuestionPropertiesDisplayAs
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.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Information about the options in single select questions.
 * @property automation The display mode of the single select question.
 * @property displayAs The display mode of the single select question.
 *   *Allowed values*: ``DROPDOWN`` | ``RADIO``
 * @property options The answer options of the single select question.
 *   *Minimum*: 2
 *   *Maximum*: 256
 */
public data class EvaluationFormSingleSelectQuestionPropertiesArgs(
    public val automation: Output? = null,
    public val displayAs: Output? = null,
    public val options: Output>,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.connect.inputs.EvaluationFormSingleSelectQuestionPropertiesArgs =
        com.pulumi.awsnative.connect.inputs.EvaluationFormSingleSelectQuestionPropertiesArgs.builder()
            .automation(automation?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .displayAs(displayAs?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .options(
                options.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [EvaluationFormSingleSelectQuestionPropertiesArgs].
 */
@PulumiTagMarker
public class EvaluationFormSingleSelectQuestionPropertiesArgsBuilder internal constructor() {
    private var automation: Output? = null

    private var displayAs: Output? = null

    private var options: Output>? = null

    /**
     * @param value The display mode of the single select question.
     */
    @JvmName("jaghqpnrrlvpnmaq")
    public suspend fun automation(`value`: Output) {
        this.automation = value
    }

    /**
     * @param value The display mode of the single select question.
     *   *Allowed values*: ``DROPDOWN`` | ``RADIO``
     */
    @JvmName("dxuyvntotjtkanbb")
    public suspend fun displayAs(`value`: Output) {
        this.displayAs = value
    }

    /**
     * @param value The answer options of the single select question.
     *   *Minimum*: 2
     *   *Maximum*: 256
     */
    @JvmName("gebfmudbyihnkdox")
    public suspend fun options(`value`: Output>) {
        this.options = value
    }

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

    /**
     * @param values The answer options of the single select question.
     *   *Minimum*: 2
     *   *Maximum*: 256
     */
    @JvmName("mqoxuihpiphdirqs")
    public suspend fun options(values: List>) {
        this.options = Output.all(values)
    }

    /**
     * @param value The display mode of the single select question.
     */
    @JvmName("avokmbdgxmkideys")
    public suspend fun automation(`value`: EvaluationFormSingleSelectQuestionAutomationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.automation = mapped
    }

    /**
     * @param argument The display mode of the single select question.
     */
    @JvmName("dpkraehxmlllcsln")
    public suspend fun automation(argument: suspend EvaluationFormSingleSelectQuestionAutomationArgsBuilder.() -> Unit) {
        val toBeMapped = EvaluationFormSingleSelectQuestionAutomationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.automation = mapped
    }

    /**
     * @param value The display mode of the single select question.
     *   *Allowed values*: ``DROPDOWN`` | ``RADIO``
     */
    @JvmName("vuaocyowgucjwjnl")
    public suspend fun displayAs(`value`: EvaluationFormSingleSelectQuestionPropertiesDisplayAs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.displayAs = mapped
    }

    /**
     * @param value The answer options of the single select question.
     *   *Minimum*: 2
     *   *Maximum*: 256
     */
    @JvmName("jtxmwxmjkcvgudqy")
    public suspend fun options(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.options = mapped
    }

    /**
     * @param argument The answer options of the single select question.
     *   *Minimum*: 2
     *   *Maximum*: 256
     */
    @JvmName("movvywlyrwkbcpts")
    public suspend fun options(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            EvaluationFormSingleSelectQuestionOptionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.options = mapped
    }

    /**
     * @param argument The answer options of the single select question.
     *   *Minimum*: 2
     *   *Maximum*: 256
     */
    @JvmName("pikbffxnvusawqly")
    public suspend fun options(vararg argument: suspend EvaluationFormSingleSelectQuestionOptionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            EvaluationFormSingleSelectQuestionOptionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.options = mapped
    }

    /**
     * @param argument The answer options of the single select question.
     *   *Minimum*: 2
     *   *Maximum*: 256
     */
    @JvmName("txefcsackptsdtgo")
    public suspend fun options(argument: suspend EvaluationFormSingleSelectQuestionOptionArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            EvaluationFormSingleSelectQuestionOptionArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.options = mapped
    }

    /**
     * @param values The answer options of the single select question.
     *   *Minimum*: 2
     *   *Maximum*: 256
     */
    @JvmName("bcyaaobpchwygsrq")
    public suspend fun options(vararg values: EvaluationFormSingleSelectQuestionOptionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.options = mapped
    }

    internal fun build(): EvaluationFormSingleSelectQuestionPropertiesArgs =
        EvaluationFormSingleSelectQuestionPropertiesArgs(
            automation = automation,
            displayAs = displayAs,
            options = options ?: throw PulumiNullFieldException("options"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy