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

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

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.11.0.0
Show newest version
@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("eyeacufyhxrlpgif")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The identifier of the Amazon Connect instance.
     */
    @JvmName("jokbvrnuctekjifu")
    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("lgjjhexqnntiahoy")
    public suspend fun items(`value`: Output>) {
        this.items = value
    }

    @JvmName("affriadaearkstkc")
    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("yejwelnnmsqglrlu")
    public suspend fun items(values: List>) {
        this.items = Output.all(values)
    }

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

    /**
     * @param value The status of the evaluation form.
     *   *Allowed values*: ``DRAFT`` | ``ACTIVE``
     */
    @JvmName("nhogqxqfspgfqfof")
    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("ucainchmcsvdmrmp")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("ygvutqafstdwdvab")
    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("qrmisecldekbqors")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value A title of the evaluation form.
     */
    @JvmName("ypaxeuhgpwgsqltg")
    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("jvikqtaiexrcdabk")
    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("xqekgtqgybbegjmo")
    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("okoiexuicupsusye")
    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("sedqihyhcpagohxr")
    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("jsshfueosyxahhvg")
    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("wftdwprnmtsqilgr")
    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("bmxnqeokdwkkeaof")
    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("rmmwomfpktxbxllg")
    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("scdwliiwmedayyec")
    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("wmkwmolaxwmufguv")
    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("rricqetksdxnkwvi")
    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("tvdesbognactcqya")
    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("hajhegdgtdnuqnrj")
    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("ynyswidcrjwtusrx")
    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("olshqssqbgvmdgqs")
    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("nnwotaqqhvkpprcx")
    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 - 2024 Weber Informatics LLC | Privacy Policy