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

com.pulumi.awsnative.lex.kotlin.inputs.BotOutputContextArgs.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.lex.kotlin.inputs

import com.pulumi.awsnative.lex.inputs.BotOutputContextArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * A session context that is activated when an intent is fulfilled.
 * @property name
 * @property timeToLiveInSeconds
 * @property turnsToLive
 */
public data class BotOutputContextArgs(
    public val name: Output,
    public val timeToLiveInSeconds: Output,
    public val turnsToLive: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.lex.inputs.BotOutputContextArgs =
        com.pulumi.awsnative.lex.inputs.BotOutputContextArgs.builder()
            .name(name.applyValue({ args0 -> args0 }))
            .timeToLiveInSeconds(timeToLiveInSeconds.applyValue({ args0 -> args0 }))
            .turnsToLive(turnsToLive.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [BotOutputContextArgs].
 */
@PulumiTagMarker
public class BotOutputContextArgsBuilder internal constructor() {
    private var name: Output? = null

    private var timeToLiveInSeconds: Output? = null

    private var turnsToLive: Output? = null

    /**
     * @param value
     */
    @JvmName("cjbrfniprwygnekr")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value
     */
    @JvmName("vmwmcajtuumuoxuv")
    public suspend fun timeToLiveInSeconds(`value`: Output) {
        this.timeToLiveInSeconds = value
    }

    /**
     * @param value
     */
    @JvmName("qeduljgmgdrkquvq")
    public suspend fun turnsToLive(`value`: Output) {
        this.turnsToLive = value
    }

    /**
     * @param value
     */
    @JvmName("gywmcdhlxjjqxpid")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value
     */
    @JvmName("hwriphdhuaiokuhu")
    public suspend fun timeToLiveInSeconds(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.timeToLiveInSeconds = mapped
    }

    /**
     * @param value
     */
    @JvmName("hsnvnmclencmdtoc")
    public suspend fun turnsToLive(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.turnsToLive = mapped
    }

    internal fun build(): BotOutputContextArgs = BotOutputContextArgs(
        name = name ?: throw PulumiNullFieldException("name"),
        timeToLiveInSeconds = timeToLiveInSeconds ?: throw PulumiNullFieldException("timeToLiveInSeconds"),
        turnsToLive = turnsToLive ?: throw PulumiNullFieldException("turnsToLive"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy