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

com.pulumi.awsnative.comprehend.kotlin.inputs.FlywheelEntityRecognitionConfigArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.comprehend.kotlin.inputs

import com.pulumi.awsnative.comprehend.inputs.FlywheelEntityRecognitionConfigArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property entityTypes Up to 25 entity types that the model is trained to recognize.
 */
public data class FlywheelEntityRecognitionConfigArgs(
    public val entityTypes: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.comprehend.inputs.FlywheelEntityRecognitionConfigArgs = com.pulumi.awsnative.comprehend.inputs.FlywheelEntityRecognitionConfigArgs.builder()
        .entityTypes(
            entityTypes?.applyValue({ args0 ->
                args0.map({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                })
            }),
        ).build()
}

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

    /**
     * @param value Up to 25 entity types that the model is trained to recognize.
     */
    @JvmName("peifqavcxiqoxvog")
    public suspend fun entityTypes(`value`: Output>) {
        this.entityTypes = value
    }

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

    /**
     * @param values Up to 25 entity types that the model is trained to recognize.
     */
    @JvmName("pevrqbknpasdrbft")
    public suspend fun entityTypes(values: List>) {
        this.entityTypes = Output.all(values)
    }

    /**
     * @param value Up to 25 entity types that the model is trained to recognize.
     */
    @JvmName("djjyxukjhtlawpgq")
    public suspend fun entityTypes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.entityTypes = mapped
    }

    /**
     * @param argument Up to 25 entity types that the model is trained to recognize.
     */
    @JvmName("eefrisrmyifmyqav")
    public suspend fun entityTypes(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            FlywheelEntityTypesListItemArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.entityTypes = mapped
    }

    /**
     * @param argument Up to 25 entity types that the model is trained to recognize.
     */
    @JvmName("ecihhcitcvnrpsks")
    public suspend fun entityTypes(vararg argument: suspend FlywheelEntityTypesListItemArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            FlywheelEntityTypesListItemArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.entityTypes = mapped
    }

    /**
     * @param argument Up to 25 entity types that the model is trained to recognize.
     */
    @JvmName("nnwnlogwliemhtvv")
    public suspend fun entityTypes(argument: suspend FlywheelEntityTypesListItemArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            FlywheelEntityTypesListItemArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.entityTypes = mapped
    }

    /**
     * @param values Up to 25 entity types that the model is trained to recognize.
     */
    @JvmName("phywrrrexvobadnl")
    public suspend fun entityTypes(vararg values: FlywheelEntityTypesListItemArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.entityTypes = mapped
    }

    internal fun build(): FlywheelEntityRecognitionConfigArgs = FlywheelEntityRecognitionConfigArgs(
        entityTypes = entityTypes,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy