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

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

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

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

import com.pulumi.awsnative.comprehend.inputs.FlywheelDocumentClassificationConfigArgs.builder
import com.pulumi.awsnative.comprehend.kotlin.enums.FlywheelDocumentClassificationConfigMode
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.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property labels One or more labels to associate with the custom classifier.
 * @property mode Classification mode indicates whether the documents are `MULTI_CLASS` or `MULTI_LABEL` .
 */
public data class FlywheelDocumentClassificationConfigArgs(
    public val labels: Output>? = null,
    public val mode: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.comprehend.inputs.FlywheelDocumentClassificationConfigArgs =
        com.pulumi.awsnative.comprehend.inputs.FlywheelDocumentClassificationConfigArgs.builder()
            .labels(labels?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .mode(mode.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

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

    private var mode: Output? = null

    /**
     * @param value One or more labels to associate with the custom classifier.
     */
    @JvmName("emarqnuttcpdagfr")
    public suspend fun labels(`value`: Output>) {
        this.labels = value
    }

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

    /**
     * @param values One or more labels to associate with the custom classifier.
     */
    @JvmName("tysmiajieekrlopl")
    public suspend fun labels(values: List>) {
        this.labels = Output.all(values)
    }

    /**
     * @param value Classification mode indicates whether the documents are `MULTI_CLASS` or `MULTI_LABEL` .
     */
    @JvmName("cwwvmmsvkqvjlnxq")
    public suspend fun mode(`value`: Output) {
        this.mode = value
    }

    /**
     * @param value One or more labels to associate with the custom classifier.
     */
    @JvmName("ftogciyghdpisiag")
    public suspend fun labels(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param values One or more labels to associate with the custom classifier.
     */
    @JvmName("vkjjhymmxrcjsvuw")
    public suspend fun labels(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param value Classification mode indicates whether the documents are `MULTI_CLASS` or `MULTI_LABEL` .
     */
    @JvmName("gdsphtqbmfdcrusc")
    public suspend fun mode(`value`: FlywheelDocumentClassificationConfigMode) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.mode = mapped
    }

    internal fun build(): FlywheelDocumentClassificationConfigArgs =
        FlywheelDocumentClassificationConfigArgs(
            labels = labels,
            mode = mode ?: throw PulumiNullFieldException("mode"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy