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

com.pulumi.awsnative.quicksight.kotlin.inputs.TopicNamedEntityArgs.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.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.quicksight.kotlin.inputs

import com.pulumi.awsnative.quicksight.inputs.TopicNamedEntityArgs.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.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property definition The definition of a named entity.
 * @property entityDescription The description of the named entity.
 * @property entityName The name of the named entity.
 * @property entitySynonyms The other names or aliases for the named entity.
 * @property semanticEntityType The type of named entity that a topic represents.
 */
public data class TopicNamedEntityArgs(
    public val definition: Output>? = null,
    public val entityDescription: Output? = null,
    public val entityName: Output,
    public val entitySynonyms: Output>? = null,
    public val semanticEntityType: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.quicksight.inputs.TopicNamedEntityArgs =
        com.pulumi.awsnative.quicksight.inputs.TopicNamedEntityArgs.builder()
            .definition(
                definition?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .entityDescription(entityDescription?.applyValue({ args0 -> args0 }))
            .entityName(entityName.applyValue({ args0 -> args0 }))
            .entitySynonyms(entitySynonyms?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .semanticEntityType(
                semanticEntityType?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

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

    private var entityDescription: Output? = null

    private var entityName: Output? = null

    private var entitySynonyms: Output>? = null

    private var semanticEntityType: Output? = null

    /**
     * @param value The definition of a named entity.
     */
    @JvmName("sbkomravnllxlnyr")
    public suspend fun definition(`value`: Output>) {
        this.definition = value
    }

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

    /**
     * @param values The definition of a named entity.
     */
    @JvmName("jmwhtvtsnbgfmdoj")
    public suspend fun definition(values: List>) {
        this.definition = Output.all(values)
    }

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

    /**
     * @param value The name of the named entity.
     */
    @JvmName("cicghwfsbogqeofh")
    public suspend fun entityName(`value`: Output) {
        this.entityName = value
    }

    /**
     * @param value The other names or aliases for the named entity.
     */
    @JvmName("rqnlnbkgwflcllhr")
    public suspend fun entitySynonyms(`value`: Output>) {
        this.entitySynonyms = value
    }

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

    /**
     * @param values The other names or aliases for the named entity.
     */
    @JvmName("wdmpswoaugdypofa")
    public suspend fun entitySynonyms(values: List>) {
        this.entitySynonyms = Output.all(values)
    }

    /**
     * @param value The type of named entity that a topic represents.
     */
    @JvmName("hoppibtvmqilecje")
    public suspend fun semanticEntityType(`value`: Output) {
        this.semanticEntityType = value
    }

    /**
     * @param value The definition of a named entity.
     */
    @JvmName("tqgpkqjxlmxcylkh")
    public suspend fun definition(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.definition = mapped
    }

    /**
     * @param argument The definition of a named entity.
     */
    @JvmName("rlkoqphcryoautqi")
    public suspend fun definition(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TopicNamedEntityDefinitionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.definition = mapped
    }

    /**
     * @param argument The definition of a named entity.
     */
    @JvmName("qhtvcowwkbtpsrai")
    public suspend fun definition(vararg argument: suspend TopicNamedEntityDefinitionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TopicNamedEntityDefinitionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.definition = mapped
    }

    /**
     * @param argument The definition of a named entity.
     */
    @JvmName("ddpyxurnlqnelhpl")
    public suspend fun definition(argument: suspend TopicNamedEntityDefinitionArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            TopicNamedEntityDefinitionArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.definition = mapped
    }

    /**
     * @param values The definition of a named entity.
     */
    @JvmName("tewbwrhipocjxqvc")
    public suspend fun definition(vararg values: TopicNamedEntityDefinitionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.definition = mapped
    }

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

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

    /**
     * @param value The other names or aliases for the named entity.
     */
    @JvmName("opwpsirgygbqgugi")
    public suspend fun entitySynonyms(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.entitySynonyms = mapped
    }

    /**
     * @param values The other names or aliases for the named entity.
     */
    @JvmName("hsomfuufcsidmdpg")
    public suspend fun entitySynonyms(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.entitySynonyms = mapped
    }

    /**
     * @param value The type of named entity that a topic represents.
     */
    @JvmName("urqjrxjavoryefcl")
    public suspend fun semanticEntityType(`value`: TopicSemanticEntityTypeArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.semanticEntityType = mapped
    }

    /**
     * @param argument The type of named entity that a topic represents.
     */
    @JvmName("itbaplxvqmumoxup")
    public suspend fun semanticEntityType(argument: suspend TopicSemanticEntityTypeArgsBuilder.() -> Unit) {
        val toBeMapped = TopicSemanticEntityTypeArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.semanticEntityType = mapped
    }

    internal fun build(): TopicNamedEntityArgs = TopicNamedEntityArgs(
        definition = definition,
        entityDescription = entityDescription,
        entityName = entityName ?: throw PulumiNullFieldException("entityName"),
        entitySynonyms = entitySynonyms,
        semanticEntityType = semanticEntityType,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy