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

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

/**
 * A slot is a variable needed to fulfill an intent, where an intent can require zero or more slots.
 * @property description The description of the slot.
 * @property multipleValuesSetting Indicates whether a slot can return multiple values.
 * @property name The name given to the slot.
 * @property obfuscationSetting Determines whether the contents of the slot are obfuscated in Amazon CloudWatch Logs logs. Use obfuscated slots to protect information such as personally identifiable information (PII) in logs.
 * @property slotTypeName The name of the slot type that this slot is based on. The slot type defines the acceptable values for the slot.
 * @property valueElicitationSetting Determines the slot resolution strategy that Amazon Lex uses to return slot type values. The field can be set to one of the following values:
 * - ORIGINAL_VALUE - Returns the value entered by the user, if the user value is similar to a slot value.
 * - TOP_RESOLUTION - If there is a resolution list for the slot, return the first value in the resolution list as the slot type value. If there is no resolution list, null is returned.
 * If you don't specify the `valueSelectionStrategy` , the default is `ORIGINAL_VALUE` .
 */
public data class BotSlotArgs(
    public val description: Output? = null,
    public val multipleValuesSetting: Output? = null,
    public val name: Output,
    public val obfuscationSetting: Output? = null,
    public val slotTypeName: Output,
    public val valueElicitationSetting: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.lex.inputs.BotSlotArgs =
        com.pulumi.awsnative.lex.inputs.BotSlotArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .multipleValuesSetting(
                multipleValuesSetting?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .name(name.applyValue({ args0 -> args0 }))
            .obfuscationSetting(
                obfuscationSetting?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .slotTypeName(slotTypeName.applyValue({ args0 -> args0 }))
            .valueElicitationSetting(
                valueElicitationSetting.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [BotSlotArgs].
 */
@PulumiTagMarker
public class BotSlotArgsBuilder internal constructor() {
    private var description: Output? = null

    private var multipleValuesSetting: Output? = null

    private var name: Output? = null

    private var obfuscationSetting: Output? = null

    private var slotTypeName: Output? = null

    private var valueElicitationSetting: Output? = null

    /**
     * @param value The description of the slot.
     */
    @JvmName("ocjprsyefahcgscs")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Indicates whether a slot can return multiple values.
     */
    @JvmName("olgrbtaxbndryafm")
    public suspend fun multipleValuesSetting(`value`: Output) {
        this.multipleValuesSetting = value
    }

    /**
     * @param value The name given to the slot.
     */
    @JvmName("ekdymslxnsykybrb")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Determines whether the contents of the slot are obfuscated in Amazon CloudWatch Logs logs. Use obfuscated slots to protect information such as personally identifiable information (PII) in logs.
     */
    @JvmName("kmrjdkhdnyjpdfue")
    public suspend fun obfuscationSetting(`value`: Output) {
        this.obfuscationSetting = value
    }

    /**
     * @param value The name of the slot type that this slot is based on. The slot type defines the acceptable values for the slot.
     */
    @JvmName("jajhhnfggbyuaxwc")
    public suspend fun slotTypeName(`value`: Output) {
        this.slotTypeName = value
    }

    /**
     * @param value Determines the slot resolution strategy that Amazon Lex uses to return slot type values. The field can be set to one of the following values:
     * - ORIGINAL_VALUE - Returns the value entered by the user, if the user value is similar to a slot value.
     * - TOP_RESOLUTION - If there is a resolution list for the slot, return the first value in the resolution list as the slot type value. If there is no resolution list, null is returned.
     * If you don't specify the `valueSelectionStrategy` , the default is `ORIGINAL_VALUE` .
     */
    @JvmName("sqenlavpndfcvtpt")
    public suspend fun valueElicitationSetting(`value`: Output) {
        this.valueElicitationSetting = value
    }

    /**
     * @param value The description of the slot.
     */
    @JvmName("mfpkcwlkvjrhkoxj")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value Indicates whether a slot can return multiple values.
     */
    @JvmName("anpmxxlyoxjylvqk")
    public suspend fun multipleValuesSetting(`value`: BotMultipleValuesSettingArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.multipleValuesSetting = mapped
    }

    /**
     * @param argument Indicates whether a slot can return multiple values.
     */
    @JvmName("vemadbghjrkclvco")
    public suspend fun multipleValuesSetting(argument: suspend BotMultipleValuesSettingArgsBuilder.() -> Unit) {
        val toBeMapped = BotMultipleValuesSettingArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.multipleValuesSetting = mapped
    }

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

    /**
     * @param value Determines whether the contents of the slot are obfuscated in Amazon CloudWatch Logs logs. Use obfuscated slots to protect information such as personally identifiable information (PII) in logs.
     */
    @JvmName("dolisembbtqebavf")
    public suspend fun obfuscationSetting(`value`: BotObfuscationSettingArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.obfuscationSetting = mapped
    }

    /**
     * @param argument Determines whether the contents of the slot are obfuscated in Amazon CloudWatch Logs logs. Use obfuscated slots to protect information such as personally identifiable information (PII) in logs.
     */
    @JvmName("cbrtnffogxrmjkvo")
    public suspend fun obfuscationSetting(argument: suspend BotObfuscationSettingArgsBuilder.() -> Unit) {
        val toBeMapped = BotObfuscationSettingArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.obfuscationSetting = mapped
    }

    /**
     * @param value The name of the slot type that this slot is based on. The slot type defines the acceptable values for the slot.
     */
    @JvmName("uopopjmtylnuyuuj")
    public suspend fun slotTypeName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.slotTypeName = mapped
    }

    /**
     * @param value Determines the slot resolution strategy that Amazon Lex uses to return slot type values. The field can be set to one of the following values:
     * - ORIGINAL_VALUE - Returns the value entered by the user, if the user value is similar to a slot value.
     * - TOP_RESOLUTION - If there is a resolution list for the slot, return the first value in the resolution list as the slot type value. If there is no resolution list, null is returned.
     * If you don't specify the `valueSelectionStrategy` , the default is `ORIGINAL_VALUE` .
     */
    @JvmName("fdtdpjjfnaxjewmc")
    public suspend fun valueElicitationSetting(`value`: BotSlotValueElicitationSettingArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.valueElicitationSetting = mapped
    }

    /**
     * @param argument Determines the slot resolution strategy that Amazon Lex uses to return slot type values. The field can be set to one of the following values:
     * - ORIGINAL_VALUE - Returns the value entered by the user, if the user value is similar to a slot value.
     * - TOP_RESOLUTION - If there is a resolution list for the slot, return the first value in the resolution list as the slot type value. If there is no resolution list, null is returned.
     * If you don't specify the `valueSelectionStrategy` , the default is `ORIGINAL_VALUE` .
     */
    @JvmName("esncxcafotrqnlbu")
    public suspend fun valueElicitationSetting(argument: suspend BotSlotValueElicitationSettingArgsBuilder.() -> Unit) {
        val toBeMapped = BotSlotValueElicitationSettingArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.valueElicitationSetting = mapped
    }

    internal fun build(): BotSlotArgs = BotSlotArgs(
        description = description,
        multipleValuesSetting = multipleValuesSetting,
        name = name ?: throw PulumiNullFieldException("name"),
        obfuscationSetting = obfuscationSetting,
        slotTypeName = slotTypeName ?: throw PulumiNullFieldException("slotTypeName"),
        valueElicitationSetting = valueElicitationSetting ?: throw
            PulumiNullFieldException("valueElicitationSetting"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy