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

com.pulumi.gcp.diagflow.kotlin.inputs.CxTestCaseTestCaseConversationTurnArgs.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.diagflow.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.diagflow.inputs.CxTestCaseTestCaseConversationTurnArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property userInput The user input.
 * Structure is documented below.
 * @property virtualAgentOutput The virtual agent output.
 * Structure is documented below.
 */
public data class CxTestCaseTestCaseConversationTurnArgs(
    public val userInput: Output? = null,
    public val virtualAgentOutput: Output? =
        null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.diagflow.inputs.CxTestCaseTestCaseConversationTurnArgs =
        com.pulumi.gcp.diagflow.inputs.CxTestCaseTestCaseConversationTurnArgs.builder()
            .userInput(userInput?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .virtualAgentOutput(
                virtualAgentOutput?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [CxTestCaseTestCaseConversationTurnArgs].
 */
@PulumiTagMarker
public class CxTestCaseTestCaseConversationTurnArgsBuilder internal constructor() {
    private var userInput: Output? = null

    private var virtualAgentOutput: Output? =
        null

    /**
     * @param value The user input.
     * Structure is documented below.
     */
    @JvmName("fbkmejslndkqycpr")
    public suspend fun userInput(`value`: Output) {
        this.userInput = value
    }

    /**
     * @param value The virtual agent output.
     * Structure is documented below.
     */
    @JvmName("wfpiegwntuwxokww")
    public suspend fun virtualAgentOutput(`value`: Output) {
        this.virtualAgentOutput = value
    }

    /**
     * @param value The user input.
     * Structure is documented below.
     */
    @JvmName("jjvewayccmlpcobd")
    public suspend fun userInput(`value`: CxTestCaseTestCaseConversationTurnUserInputArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.userInput = mapped
    }

    /**
     * @param argument The user input.
     * Structure is documented below.
     */
    @JvmName("yvhfrniufmgotcjc")
    public suspend fun userInput(argument: suspend CxTestCaseTestCaseConversationTurnUserInputArgsBuilder.() -> Unit) {
        val toBeMapped = CxTestCaseTestCaseConversationTurnUserInputArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.userInput = mapped
    }

    /**
     * @param value The virtual agent output.
     * Structure is documented below.
     */
    @JvmName("bksqqxxswrrgkopg")
    public suspend fun virtualAgentOutput(`value`: CxTestCaseTestCaseConversationTurnVirtualAgentOutputArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.virtualAgentOutput = mapped
    }

    /**
     * @param argument The virtual agent output.
     * Structure is documented below.
     */
    @JvmName("ausrypsgbssdytra")
    public suspend fun virtualAgentOutput(argument: suspend CxTestCaseTestCaseConversationTurnVirtualAgentOutputArgsBuilder.() -> Unit) {
        val toBeMapped = CxTestCaseTestCaseConversationTurnVirtualAgentOutputArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.virtualAgentOutput = mapped
    }

    internal fun build(): CxTestCaseTestCaseConversationTurnArgs =
        CxTestCaseTestCaseConversationTurnArgs(
            userInput = userInput,
            virtualAgentOutput = virtualAgentOutput,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy