
com.pulumi.azurenative.machinelearningservices.kotlin.inputs.LabelingJobTextPropertiesArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.machinelearningservices.kotlin.inputs
import com.pulumi.azurenative.machinelearningservices.inputs.LabelingJobTextPropertiesArgs.builder
import com.pulumi.azurenative.machinelearningservices.kotlin.enums.TextAnnotationType
import com.pulumi.core.Either
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.jvm.JvmName
/**
* Properties of a labeling job for text data
* @property annotationType Annotation type of text labeling job.
* @property mediaType Media type of data asset.
* Expected value is 'Text'.
*/
public data class LabelingJobTextPropertiesArgs(
public val annotationType: Output>? = null,
public val mediaType: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.machinelearningservices.inputs.LabelingJobTextPropertiesArgs =
com.pulumi.azurenative.machinelearningservices.inputs.LabelingJobTextPropertiesArgs.builder()
.annotationType(
annotationType?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.mediaType(mediaType.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [LabelingJobTextPropertiesArgs].
*/
@PulumiTagMarker
public class LabelingJobTextPropertiesArgsBuilder internal constructor() {
private var annotationType: Output>? = null
private var mediaType: Output? = null
/**
* @param value Annotation type of text labeling job.
*/
@JvmName("ldybsyibefhhriuh")
public suspend fun annotationType(`value`: Output>) {
this.annotationType = value
}
/**
* @param value Media type of data asset.
* Expected value is 'Text'.
*/
@JvmName("gshstbalpfoungfn")
public suspend fun mediaType(`value`: Output) {
this.mediaType = value
}
/**
* @param value Annotation type of text labeling job.
*/
@JvmName("chatndmbvbkpkpap")
public suspend fun annotationType(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.annotationType = mapped
}
/**
* @param value Annotation type of text labeling job.
*/
@JvmName("ypsmeiutjjbvrbra")
public fun annotationType(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.annotationType = mapped
}
/**
* @param value Annotation type of text labeling job.
*/
@JvmName("icwfxphmxelhxkqq")
public fun annotationType(`value`: TextAnnotationType) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.annotationType = mapped
}
/**
* @param value Media type of data asset.
* Expected value is 'Text'.
*/
@JvmName("wwqbcgiwrwnwmgkc")
public suspend fun mediaType(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.mediaType = mapped
}
internal fun build(): LabelingJobTextPropertiesArgs = LabelingJobTextPropertiesArgs(
annotationType = annotationType,
mediaType = mediaType ?: throw PulumiNullFieldException("mediaType"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy