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

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

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

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

import com.pulumi.awsnative.comprehend.inputs.FlywheelTaskConfigArgs.builder
import com.pulumi.awsnative.comprehend.kotlin.enums.FlywheelTaskConfigLanguageCode
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.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property documentClassificationConfig Configuration required for a document classification model.
 * @property entityRecognitionConfig Configuration required for an entity recognition model.
 * @property languageCode Language code for the language that the model supports.
 */
public data class FlywheelTaskConfigArgs(
    public val documentClassificationConfig: Output? = null,
    public val entityRecognitionConfig: Output? = null,
    public val languageCode: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.comprehend.inputs.FlywheelTaskConfigArgs =
        com.pulumi.awsnative.comprehend.inputs.FlywheelTaskConfigArgs.builder()
            .documentClassificationConfig(
                documentClassificationConfig?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .entityRecognitionConfig(
                entityRecognitionConfig?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .languageCode(languageCode.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [FlywheelTaskConfigArgs].
 */
@PulumiTagMarker
public class FlywheelTaskConfigArgsBuilder internal constructor() {
    private var documentClassificationConfig: Output? = null

    private var entityRecognitionConfig: Output? = null

    private var languageCode: Output? = null

    /**
     * @param value Configuration required for a document classification model.
     */
    @JvmName("spyjycfhftojoaoj")
    public suspend fun documentClassificationConfig(`value`: Output) {
        this.documentClassificationConfig = value
    }

    /**
     * @param value Configuration required for an entity recognition model.
     */
    @JvmName("nquqpsrwdkhtdpmq")
    public suspend fun entityRecognitionConfig(`value`: Output) {
        this.entityRecognitionConfig = value
    }

    /**
     * @param value Language code for the language that the model supports.
     */
    @JvmName("kpxalhnvtkuctbyg")
    public suspend fun languageCode(`value`: Output) {
        this.languageCode = value
    }

    /**
     * @param value Configuration required for a document classification model.
     */
    @JvmName("ofblmwhcfjkrfant")
    public suspend fun documentClassificationConfig(`value`: FlywheelDocumentClassificationConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.documentClassificationConfig = mapped
    }

    /**
     * @param argument Configuration required for a document classification model.
     */
    @JvmName("lturnmufwsrtpasl")
    public suspend fun documentClassificationConfig(argument: suspend FlywheelDocumentClassificationConfigArgsBuilder.() -> Unit) {
        val toBeMapped = FlywheelDocumentClassificationConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.documentClassificationConfig = mapped
    }

    /**
     * @param value Configuration required for an entity recognition model.
     */
    @JvmName("pppwwcytditumeaj")
    public suspend fun entityRecognitionConfig(`value`: FlywheelEntityRecognitionConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.entityRecognitionConfig = mapped
    }

    /**
     * @param argument Configuration required for an entity recognition model.
     */
    @JvmName("qhffypkrtaahdbfy")
    public suspend fun entityRecognitionConfig(argument: suspend FlywheelEntityRecognitionConfigArgsBuilder.() -> Unit) {
        val toBeMapped = FlywheelEntityRecognitionConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.entityRecognitionConfig = mapped
    }

    /**
     * @param value Language code for the language that the model supports.
     */
    @JvmName("ixbcdqxaxjvhrmwu")
    public suspend fun languageCode(`value`: FlywheelTaskConfigLanguageCode) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.languageCode = mapped
    }

    internal fun build(): FlywheelTaskConfigArgs = FlywheelTaskConfigArgs(
        documentClassificationConfig = documentClassificationConfig,
        entityRecognitionConfig = entityRecognitionConfig,
        languageCode = languageCode ?: throw PulumiNullFieldException("languageCode"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy