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

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

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

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

import com.pulumi.awsnative.connect.inputs.EvaluationFormNumericQuestionPropertiesArgs.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.Int
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Information about properties for a numeric question in an evaluation form.
 * @property automation The automation properties of the numeric question.
 * @property maxValue The maximum answer value.
 * @property minValue The minimum answer value.
 * @property options The scoring options of the numeric question.
 */
public data class EvaluationFormNumericQuestionPropertiesArgs(
    public val automation: Output? = null,
    public val maxValue: Output,
    public val minValue: Output,
    public val options: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.connect.inputs.EvaluationFormNumericQuestionPropertiesArgs =
        com.pulumi.awsnative.connect.inputs.EvaluationFormNumericQuestionPropertiesArgs.builder()
            .automation(automation?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .maxValue(maxValue.applyValue({ args0 -> args0 }))
            .minValue(minValue.applyValue({ args0 -> args0 }))
            .options(
                options?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var maxValue: Output? = null

    private var minValue: Output? = null

    private var options: Output>? = null

    /**
     * @param value The automation properties of the numeric question.
     */
    @JvmName("quxguoituiqgamik")
    public suspend fun automation(`value`: Output) {
        this.automation = value
    }

    /**
     * @param value The maximum answer value.
     */
    @JvmName("fgxobcewovwfpjel")
    public suspend fun maxValue(`value`: Output) {
        this.maxValue = value
    }

    /**
     * @param value The minimum answer value.
     */
    @JvmName("ieqgqmxoitkbuxwi")
    public suspend fun minValue(`value`: Output) {
        this.minValue = value
    }

    /**
     * @param value The scoring options of the numeric question.
     */
    @JvmName("jhhrhbhwcchbkhrf")
    public suspend fun options(`value`: Output>) {
        this.options = value
    }

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

    /**
     * @param values The scoring options of the numeric question.
     */
    @JvmName("pclvdlbigvesqaed")
    public suspend fun options(values: List>) {
        this.options = Output.all(values)
    }

    /**
     * @param value The automation properties of the numeric question.
     */
    @JvmName("qquyhriomrxmaeet")
    public suspend fun automation(`value`: EvaluationFormNumericQuestionAutomationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.automation = mapped
    }

    /**
     * @param argument The automation properties of the numeric question.
     */
    @JvmName("sfsibvxptajrsegp")
    public suspend fun automation(argument: suspend EvaluationFormNumericQuestionAutomationArgsBuilder.() -> Unit) {
        val toBeMapped = EvaluationFormNumericQuestionAutomationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.automation = mapped
    }

    /**
     * @param value The maximum answer value.
     */
    @JvmName("vynhxgjddmodnuie")
    public suspend fun maxValue(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.maxValue = mapped
    }

    /**
     * @param value The minimum answer value.
     */
    @JvmName("ufackxdoimvycdfw")
    public suspend fun minValue(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.minValue = mapped
    }

    /**
     * @param value The scoring options of the numeric question.
     */
    @JvmName("liaqcdvjoviylsmx")
    public suspend fun options(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.options = mapped
    }

    /**
     * @param argument The scoring options of the numeric question.
     */
    @JvmName("vljhncebaiyxvwyk")
    public suspend fun options(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            EvaluationFormNumericQuestionOptionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.options = mapped
    }

    /**
     * @param argument The scoring options of the numeric question.
     */
    @JvmName("nfyhwvtjviijykwd")
    public suspend fun options(vararg argument: suspend EvaluationFormNumericQuestionOptionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            EvaluationFormNumericQuestionOptionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.options = mapped
    }

    /**
     * @param argument The scoring options of the numeric question.
     */
    @JvmName("prinxidkubthglsc")
    public suspend fun options(argument: suspend EvaluationFormNumericQuestionOptionArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            EvaluationFormNumericQuestionOptionArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.options = mapped
    }

    /**
     * @param values The scoring options of the numeric question.
     */
    @JvmName("rkfwecrgywxlwhdu")
    public suspend fun options(vararg values: EvaluationFormNumericQuestionOptionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.options = mapped
    }

    internal fun build(): EvaluationFormNumericQuestionPropertiesArgs =
        EvaluationFormNumericQuestionPropertiesArgs(
            automation = automation,
            maxValue = maxValue ?: throw PulumiNullFieldException("maxValue"),
            minValue = minValue ?: throw PulumiNullFieldException("minValue"),
            options = options,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy