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

@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("qauhwemqoxvdnoru")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

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

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

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

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

    /**
     * @param value
     */
    @JvmName("pxopafusrneunfwl")
    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 - 2025 Weber Informatics LLC | Privacy Policy