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

com.pulumi.awsnative.connect.kotlin.EvaluationFormArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.connect.kotlin

import com.pulumi.awsnative.connect.EvaluationFormArgs.builder
import com.pulumi.awsnative.connect.kotlin.enums.EvaluationFormStatus
import com.pulumi.awsnative.connect.kotlin.inputs.EvaluationFormBaseItemArgs
import com.pulumi.awsnative.connect.kotlin.inputs.EvaluationFormBaseItemArgsBuilder
import com.pulumi.awsnative.connect.kotlin.inputs.EvaluationFormScoringStrategyArgs
import com.pulumi.awsnative.connect.kotlin.inputs.EvaluationFormScoringStrategyArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Creates an evaluation form for the specified CON instance.
 * @property description The description of the evaluation form.
 *   *Length Constraints*: Minimum length of 0. Maximum length of 1024.
 * @property instanceArn The identifier of the Amazon Connect instance.
 * @property items Items that are part of the evaluation form. The total number of sections and questions must not exceed 100 each. Questions must be contained in a section.
 *   *Minimum size*: 1
 *   *Maximum size*: 100
 * @property scoringStrategy A scoring strategy of the evaluation form.
 * @property status The status of the evaluation form.
 *   *Allowed values*: ``DRAFT`` | ``ACTIVE``
 * @property tags The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
 * @property title A title of the evaluation form.
 */
public data class EvaluationFormArgs(
    public val description: Output? = null,
    public val instanceArn: Output? = null,
    public val items: Output>? = null,
    public val scoringStrategy: Output? = null,
    public val status: Output? = null,
    public val tags: Output>? = null,
    public val title: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.connect.EvaluationFormArgs =
        com.pulumi.awsnative.connect.EvaluationFormArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .instanceArn(instanceArn?.applyValue({ args0 -> args0 }))
            .items(items?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .scoringStrategy(scoringStrategy?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .status(status?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .title(title?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [EvaluationFormArgs].
 */
@PulumiTagMarker
public class EvaluationFormArgsBuilder internal constructor() {
    private var description: Output? = null

    private var instanceArn: Output? = null

    private var items: Output>? = null

    private var scoringStrategy: Output? = null

    private var status: Output? = null

    private var tags: Output>? = null

    private var title: Output? = null

    /**
     * @param value The description of the evaluation form.
     *   *Length Constraints*: Minimum length of 0. Maximum length of 1024.
     */
    @JvmName("nyykthdfjfeiuvaj")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The identifier of the Amazon Connect instance.
     */
    @JvmName("fpihyfjabrkpnhfk")
    public suspend fun instanceArn(`value`: Output) {
        this.instanceArn = value
    }

    /**
     * @param value Items that are part of the evaluation form. The total number of sections and questions must not exceed 100 each. Questions must be contained in a section.
     *   *Minimum size*: 1
     *   *Maximum size*: 100
     */
    @JvmName("aotsdqpipoghsgjx")
    public suspend fun items(`value`: Output>) {
        this.items = value
    }

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

    /**
     * @param values Items that are part of the evaluation form. The total number of sections and questions must not exceed 100 each. Questions must be contained in a section.
     *   *Minimum size*: 1
     *   *Maximum size*: 100
     */
    @JvmName("skoopkjqiopkppyh")
    public suspend fun items(values: List>) {
        this.items = Output.all(values)
    }

    /**
     * @param value A scoring strategy of the evaluation form.
     */
    @JvmName("engktvlkyrhracbv")
    public suspend fun scoringStrategy(`value`: Output) {
        this.scoringStrategy = value
    }

    /**
     * @param value The status of the evaluation form.
     *   *Allowed values*: ``DRAFT`` | ``ACTIVE``
     */
    @JvmName("aydmckyqvrkfeiwa")
    public suspend fun status(`value`: Output) {
        this.status = value
    }

    /**
     * @param value The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
     */
    @JvmName("qmyxlpucppeqlfel")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
     */
    @JvmName("cinmqeiqdncyyyhv")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value A title of the evaluation form.
     */
    @JvmName("krlipbjowjjfkxky")
    public suspend fun title(`value`: Output) {
        this.title = value
    }

    /**
     * @param value The description of the evaluation form.
     *   *Length Constraints*: Minimum length of 0. Maximum length of 1024.
     */
    @JvmName("jjwldrjuqnwbodgp")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The identifier of the Amazon Connect instance.
     */
    @JvmName("iebouthfgdjnedme")
    public suspend fun instanceArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.instanceArn = mapped
    }

    /**
     * @param value Items that are part of the evaluation form. The total number of sections and questions must not exceed 100 each. Questions must be contained in a section.
     *   *Minimum size*: 1
     *   *Maximum size*: 100
     */
    @JvmName("jrkbfaunwiwacetq")
    public suspend fun items(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.items = mapped
    }

    /**
     * @param argument Items that are part of the evaluation form. The total number of sections and questions must not exceed 100 each. Questions must be contained in a section.
     *   *Minimum size*: 1
     *   *Maximum size*: 100
     */
    @JvmName("dbrmmwycdwhthlla")
    public suspend fun items(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            EvaluationFormBaseItemArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.items = mapped
    }

    /**
     * @param argument Items that are part of the evaluation form. The total number of sections and questions must not exceed 100 each. Questions must be contained in a section.
     *   *Minimum size*: 1
     *   *Maximum size*: 100
     */
    @JvmName("wkilugqmicvptvfp")
    public suspend fun items(vararg argument: suspend EvaluationFormBaseItemArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            EvaluationFormBaseItemArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.items = mapped
    }

    /**
     * @param argument Items that are part of the evaluation form. The total number of sections and questions must not exceed 100 each. Questions must be contained in a section.
     *   *Minimum size*: 1
     *   *Maximum size*: 100
     */
    @JvmName("bcnyjswvgtmpycqg")
    public suspend fun items(argument: suspend EvaluationFormBaseItemArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(EvaluationFormBaseItemArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.items = mapped
    }

    /**
     * @param values Items that are part of the evaluation form. The total number of sections and questions must not exceed 100 each. Questions must be contained in a section.
     *   *Minimum size*: 1
     *   *Maximum size*: 100
     */
    @JvmName("angiwnuswbjhxneq")
    public suspend fun items(vararg values: EvaluationFormBaseItemArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.items = mapped
    }

    /**
     * @param value A scoring strategy of the evaluation form.
     */
    @JvmName("yocbslrqvxfsidod")
    public suspend fun scoringStrategy(`value`: EvaluationFormScoringStrategyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scoringStrategy = mapped
    }

    /**
     * @param argument A scoring strategy of the evaluation form.
     */
    @JvmName("vwovobtsjtypfgqi")
    public suspend fun scoringStrategy(argument: suspend EvaluationFormScoringStrategyArgsBuilder.() -> Unit) {
        val toBeMapped = EvaluationFormScoringStrategyArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.scoringStrategy = mapped
    }

    /**
     * @param value The status of the evaluation form.
     *   *Allowed values*: ``DRAFT`` | ``ACTIVE``
     */
    @JvmName("unichpfworiapjxp")
    public suspend fun status(`value`: EvaluationFormStatus?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.status = mapped
    }

    /**
     * @param value The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
     */
    @JvmName("dycloxasgsvhubvb")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
     */
    @JvmName("okymoijlnfanbqle")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
     */
    @JvmName("qsvxaolbvosxllna")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
     */
    @JvmName("emcbfxatbjttbskk")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
     */
    @JvmName("rishxahqntouwoie")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value A title of the evaluation form.
     */
    @JvmName("emnxvyxxdgbwsdqi")
    public suspend fun title(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.title = mapped
    }

    internal fun build(): EvaluationFormArgs = EvaluationFormArgs(
        description = description,
        instanceArn = instanceArn,
        items = items,
        scoringStrategy = scoringStrategy,
        status = status,
        tags = tags,
        title = title,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy