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

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

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

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

import com.pulumi.awsnative.connect.inputs.EvaluationFormNumericQuestionOptionArgs.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.Boolean
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Information about the option range used for scoring in numeric questions.
 * @property automaticFail The flag to mark the option as automatic fail. If an automatic fail answer is provided, the overall evaluation gets a score of 0.
 * @property maxValue The maximum answer value of the range option.
 * @property minValue The minimum answer value of the range option.
 * @property score The score assigned to answer values within the range option.
 *   *Minimum*: 0
 *   *Maximum*: 10
 */
public data class EvaluationFormNumericQuestionOptionArgs(
    public val automaticFail: Output? = null,
    public val maxValue: Output,
    public val minValue: Output,
    public val score: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.connect.inputs.EvaluationFormNumericQuestionOptionArgs = com.pulumi.awsnative.connect.inputs.EvaluationFormNumericQuestionOptionArgs.builder()
        .automaticFail(automaticFail?.applyValue({ args0 -> args0 }))
        .maxValue(maxValue.applyValue({ args0 -> args0 }))
        .minValue(minValue.applyValue({ args0 -> args0 }))
        .score(score?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [EvaluationFormNumericQuestionOptionArgs].
 */
@PulumiTagMarker
public class EvaluationFormNumericQuestionOptionArgsBuilder internal constructor() {
    private var automaticFail: Output? = null

    private var maxValue: Output? = null

    private var minValue: Output? = null

    private var score: Output? = null

    /**
     * @param value The flag to mark the option as automatic fail. If an automatic fail answer is provided, the overall evaluation gets a score of 0.
     */
    @JvmName("salwnqctwctlobov")
    public suspend fun automaticFail(`value`: Output) {
        this.automaticFail = value
    }

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

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

    /**
     * @param value The score assigned to answer values within the range option.
     *   *Minimum*: 0
     *   *Maximum*: 10
     */
    @JvmName("hcfcldrrrnfobkjw")
    public suspend fun score(`value`: Output) {
        this.score = value
    }

    /**
     * @param value The flag to mark the option as automatic fail. If an automatic fail answer is provided, the overall evaluation gets a score of 0.
     */
    @JvmName("ukfglnmvwagoowng")
    public suspend fun automaticFail(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.automaticFail = mapped
    }

    /**
     * @param value The maximum answer value of the range option.
     */
    @JvmName("npgkkufkvhjlcoco")
    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 of the range option.
     */
    @JvmName("xhnwixevjgjyiral")
    public suspend fun minValue(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.minValue = mapped
    }

    /**
     * @param value The score assigned to answer values within the range option.
     *   *Minimum*: 0
     *   *Maximum*: 10
     */
    @JvmName("kbomxxlbcswcbmmo")
    public suspend fun score(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.score = mapped
    }

    internal fun build(): EvaluationFormNumericQuestionOptionArgs =
        EvaluationFormNumericQuestionOptionArgs(
            automaticFail = automaticFail,
            maxValue = maxValue ?: throw PulumiNullFieldException("maxValue"),
            minValue = minValue ?: throw PulumiNullFieldException("minValue"),
            score = score,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy