com.pulumi.awsnative.comprehend.kotlin.outputs.FlywheelDocumentClassificationConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.comprehend.kotlin.outputs
import com.pulumi.awsnative.comprehend.kotlin.enums.FlywheelDocumentClassificationConfigMode
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @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 FlywheelDocumentClassificationConfig(
public val labels: List? = null,
public val mode: FlywheelDocumentClassificationConfigMode,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.comprehend.outputs.FlywheelDocumentClassificationConfig): FlywheelDocumentClassificationConfig = FlywheelDocumentClassificationConfig(
labels = javaType.labels().map({ args0 -> args0 }),
mode = javaType.mode().let({ args0 ->
com.pulumi.awsnative.comprehend.kotlin.enums.FlywheelDocumentClassificationConfigMode.Companion.toKotlin(args0)
}),
)
}
}