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

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

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

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

import com.pulumi.awsnative.connect.inputs.EvaluationFormSingleSelectQuestionOptionArgs.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.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Information about the automation configuration in single select 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 refId The identifier of the answer option. An identifier must be unique within the question.
 *   *Length Constraints*: Minimum length of 1. Maximum length of 40.
 * @property score The score assigned to the answer option.
 *   *Minimum*: 0
 *   *Maximum*: 10
 * @property text The title of the answer option.
 *   *Length Constraints*: Minimum length of 1. Maximum length of 128.
 */
public data class EvaluationFormSingleSelectQuestionOptionArgs(
    public val automaticFail: Output? = null,
    public val refId: Output,
    public val score: Output? = null,
    public val text: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.connect.inputs.EvaluationFormSingleSelectQuestionOptionArgs =
        com.pulumi.awsnative.connect.inputs.EvaluationFormSingleSelectQuestionOptionArgs.builder()
            .automaticFail(automaticFail?.applyValue({ args0 -> args0 }))
            .refId(refId.applyValue({ args0 -> args0 }))
            .score(score?.applyValue({ args0 -> args0 }))
            .text(text.applyValue({ args0 -> args0 })).build()
}

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

    private var refId: Output? = null

    private var score: Output? = null

    private var text: 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("tkqhunqadoxdixdj")
    public suspend fun automaticFail(`value`: Output) {
        this.automaticFail = value
    }

    /**
     * @param value The identifier of the answer option. An identifier must be unique within the question.
     *   *Length Constraints*: Minimum length of 1. Maximum length of 40.
     */
    @JvmName("devvuqerxtpauxmn")
    public suspend fun refId(`value`: Output) {
        this.refId = value
    }

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

    /**
     * @param value The title of the answer option.
     *   *Length Constraints*: Minimum length of 1. Maximum length of 128.
     */
    @JvmName("mwelqaidyolhfiwb")
    public suspend fun text(`value`: Output) {
        this.text = 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("eeukidhnqrxlcbdr")
    public suspend fun automaticFail(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.automaticFail = mapped
    }

    /**
     * @param value The identifier of the answer option. An identifier must be unique within the question.
     *   *Length Constraints*: Minimum length of 1. Maximum length of 40.
     */
    @JvmName("lcejgxwmospmebmy")
    public suspend fun refId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.refId = mapped
    }

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

    /**
     * @param value The title of the answer option.
     *   *Length Constraints*: Minimum length of 1. Maximum length of 128.
     */
    @JvmName("gdbxoumjojlkgebw")
    public suspend fun text(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.text = mapped
    }

    internal fun build(): EvaluationFormSingleSelectQuestionOptionArgs =
        EvaluationFormSingleSelectQuestionOptionArgs(
            automaticFail = automaticFail,
            refId = refId ?: throw PulumiNullFieldException("refId"),
            score = score,
            text = text ?: throw PulumiNullFieldException("text"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy