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

com.pulumi.googlenative.dialogflow.v3.kotlin.inputs.GoogleCloudDialogflowCxV3TestCaseResultArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.dialogflow.v3.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.dialogflow.v3.inputs.GoogleCloudDialogflowCxV3TestCaseResultArgs.builder
import com.pulumi.googlenative.dialogflow.v3.kotlin.enums.GoogleCloudDialogflowCxV3TestCaseResultTestResult
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

/**
 * Represents a result from running a test case in an agent environment.
 * @property conversationTurns The conversation turns uttered during the test case replay in chronological order.
 * @property environment Environment where the test was run. If not set, it indicates the draft environment.
 * @property name The resource name for the test case result. Format: `projects//locations//agents//testCases/ /results/`.
 * @property testResult Whether the test case passed in the agent environment.
 * @property testTime The time that the test was run.
 */
public data class GoogleCloudDialogflowCxV3TestCaseResultArgs(
    public val conversationTurns: Output>? = null,
    public val environment: Output? = null,
    public val name: Output? = null,
    public val testResult: Output? = null,
    public val testTime: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.dialogflow.v3.inputs.GoogleCloudDialogflowCxV3TestCaseResultArgs =
        com.pulumi.googlenative.dialogflow.v3.inputs.GoogleCloudDialogflowCxV3TestCaseResultArgs.builder()
            .conversationTurns(
                conversationTurns?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .environment(environment?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .testResult(testResult?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .testTime(testTime?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [GoogleCloudDialogflowCxV3TestCaseResultArgs].
 */
@PulumiTagMarker
public class GoogleCloudDialogflowCxV3TestCaseResultArgsBuilder internal constructor() {
    private var conversationTurns: Output>? = null

    private var environment: Output? = null

    private var name: Output? = null

    private var testResult: Output? = null

    private var testTime: Output? = null

    /**
     * @param value The conversation turns uttered during the test case replay in chronological order.
     */
    @JvmName("utcgjqanqnlckpoo")
    public suspend fun conversationTurns(`value`: Output>) {
        this.conversationTurns = value
    }

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

    /**
     * @param values The conversation turns uttered during the test case replay in chronological order.
     */
    @JvmName("kvtqkvvrtbrddvux")
    public suspend fun conversationTurns(values: List>) {
        this.conversationTurns = Output.all(values)
    }

    /**
     * @param value Environment where the test was run. If not set, it indicates the draft environment.
     */
    @JvmName("etbkfgruungeuhwy")
    public suspend fun environment(`value`: Output) {
        this.environment = value
    }

    /**
     * @param value The resource name for the test case result. Format: `projects//locations//agents//testCases/ /results/`.
     */
    @JvmName("sirhndwrvhdwfdmk")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Whether the test case passed in the agent environment.
     */
    @JvmName("kfjybbifuekaugtb")
    public suspend fun testResult(`value`: Output) {
        this.testResult = value
    }

    /**
     * @param value The time that the test was run.
     */
    @JvmName("apblimrcfgueyuhi")
    public suspend fun testTime(`value`: Output) {
        this.testTime = value
    }

    /**
     * @param value The conversation turns uttered during the test case replay in chronological order.
     */
    @JvmName("qigvxsphhsvgfxym")
    public suspend fun conversationTurns(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.conversationTurns = mapped
    }

    /**
     * @param argument The conversation turns uttered during the test case replay in chronological order.
     */
    @JvmName("ohmtdvyigcukrdhg")
    public suspend fun conversationTurns(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            GoogleCloudDialogflowCxV3ConversationTurnArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.conversationTurns = mapped
    }

    /**
     * @param argument The conversation turns uttered during the test case replay in chronological order.
     */
    @JvmName("qsokkdglaadhbdke")
    public suspend fun conversationTurns(vararg argument: suspend GoogleCloudDialogflowCxV3ConversationTurnArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            GoogleCloudDialogflowCxV3ConversationTurnArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.conversationTurns = mapped
    }

    /**
     * @param argument The conversation turns uttered during the test case replay in chronological order.
     */
    @JvmName("srgqgeeehcbwghxu")
    public suspend fun conversationTurns(argument: suspend GoogleCloudDialogflowCxV3ConversationTurnArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            GoogleCloudDialogflowCxV3ConversationTurnArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.conversationTurns = mapped
    }

    /**
     * @param values The conversation turns uttered during the test case replay in chronological order.
     */
    @JvmName("bgpmurdhewpqknwa")
    public suspend fun conversationTurns(vararg values: GoogleCloudDialogflowCxV3ConversationTurnArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.conversationTurns = mapped
    }

    /**
     * @param value Environment where the test was run. If not set, it indicates the draft environment.
     */
    @JvmName("ccdfnyjxoekgohmo")
    public suspend fun environment(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.environment = mapped
    }

    /**
     * @param value The resource name for the test case result. Format: `projects//locations//agents//testCases/ /results/`.
     */
    @JvmName("ivymicuepxsqnpmn")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Whether the test case passed in the agent environment.
     */
    @JvmName("avojqmlnppgcpyxw")
    public suspend fun testResult(`value`: GoogleCloudDialogflowCxV3TestCaseResultTestResult?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.testResult = mapped
    }

    /**
     * @param value The time that the test was run.
     */
    @JvmName("nyjxhkbgimwybgbn")
    public suspend fun testTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.testTime = mapped
    }

    internal fun build(): GoogleCloudDialogflowCxV3TestCaseResultArgs =
        GoogleCloudDialogflowCxV3TestCaseResultArgs(
            conversationTurns = conversationTurns,
            environment = environment,
            name = name,
            testResult = testResult,
            testTime = testTime,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy