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

com.pulumi.aws.comprehend.kotlin.inputs.EntityRecognizerInputDataConfigAugmentedManifestArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.comprehend.kotlin.inputs

import com.pulumi.aws.comprehend.inputs.EntityRecognizerInputDataConfigAugmentedManifestArgs.builder
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 annotationDataS3Uri Location of annotation files.
 * @property attributeNames The JSON attribute that contains the annotations for the training documents.
 * @property documentType Type of augmented manifest.
 * One of `PLAIN_TEXT_DOCUMENT` or `SEMI_STRUCTURED_DOCUMENT`.
 * @property s3Uri Location of augmented manifest file.
 * @property sourceDocumentsS3Uri Location of source PDF files.
 * @property split Purpose of data in augmented manifest.
 * One of `TRAIN` or `TEST`.
 */
public data class EntityRecognizerInputDataConfigAugmentedManifestArgs(
    public val annotationDataS3Uri: Output? = null,
    public val attributeNames: Output>,
    public val documentType: Output? = null,
    public val s3Uri: Output,
    public val sourceDocumentsS3Uri: Output? = null,
    public val split: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.comprehend.inputs.EntityRecognizerInputDataConfigAugmentedManifestArgs =
        com.pulumi.aws.comprehend.inputs.EntityRecognizerInputDataConfigAugmentedManifestArgs.builder()
            .annotationDataS3Uri(annotationDataS3Uri?.applyValue({ args0 -> args0 }))
            .attributeNames(attributeNames.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .documentType(documentType?.applyValue({ args0 -> args0 }))
            .s3Uri(s3Uri.applyValue({ args0 -> args0 }))
            .sourceDocumentsS3Uri(sourceDocumentsS3Uri?.applyValue({ args0 -> args0 }))
            .split(split?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [EntityRecognizerInputDataConfigAugmentedManifestArgs].
 */
@PulumiTagMarker
public class EntityRecognizerInputDataConfigAugmentedManifestArgsBuilder internal constructor() {
    private var annotationDataS3Uri: Output? = null

    private var attributeNames: Output>? = null

    private var documentType: Output? = null

    private var s3Uri: Output? = null

    private var sourceDocumentsS3Uri: Output? = null

    private var split: Output? = null

    /**
     * @param value Location of annotation files.
     */
    @JvmName("pbaxjsvqrhafwstn")
    public suspend fun annotationDataS3Uri(`value`: Output) {
        this.annotationDataS3Uri = value
    }

    /**
     * @param value The JSON attribute that contains the annotations for the training documents.
     */
    @JvmName("xlddidtuqlrrnlij")
    public suspend fun attributeNames(`value`: Output>) {
        this.attributeNames = value
    }

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

    /**
     * @param values The JSON attribute that contains the annotations for the training documents.
     */
    @JvmName("pawriwgbalvhmgvc")
    public suspend fun attributeNames(values: List>) {
        this.attributeNames = Output.all(values)
    }

    /**
     * @param value Type of augmented manifest.
     * One of `PLAIN_TEXT_DOCUMENT` or `SEMI_STRUCTURED_DOCUMENT`.
     */
    @JvmName("yqctnkjlikchtyrv")
    public suspend fun documentType(`value`: Output) {
        this.documentType = value
    }

    /**
     * @param value Location of augmented manifest file.
     */
    @JvmName("gtnyralsdwgjyqqr")
    public suspend fun s3Uri(`value`: Output) {
        this.s3Uri = value
    }

    /**
     * @param value Location of source PDF files.
     */
    @JvmName("wwuwobavixjfhhom")
    public suspend fun sourceDocumentsS3Uri(`value`: Output) {
        this.sourceDocumentsS3Uri = value
    }

    /**
     * @param value Purpose of data in augmented manifest.
     * One of `TRAIN` or `TEST`.
     */
    @JvmName("bmscykrmegvfgqnb")
    public suspend fun split(`value`: Output) {
        this.split = value
    }

    /**
     * @param value Location of annotation files.
     */
    @JvmName("eshuvnwllxqqykxi")
    public suspend fun annotationDataS3Uri(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.annotationDataS3Uri = mapped
    }

    /**
     * @param value The JSON attribute that contains the annotations for the training documents.
     */
    @JvmName("jqwacxyjycktupyw")
    public suspend fun attributeNames(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.attributeNames = mapped
    }

    /**
     * @param values The JSON attribute that contains the annotations for the training documents.
     */
    @JvmName("fhsquxqlskixjfao")
    public suspend fun attributeNames(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.attributeNames = mapped
    }

    /**
     * @param value Type of augmented manifest.
     * One of `PLAIN_TEXT_DOCUMENT` or `SEMI_STRUCTURED_DOCUMENT`.
     */
    @JvmName("ggatsabsorivtbcv")
    public suspend fun documentType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.documentType = mapped
    }

    /**
     * @param value Location of augmented manifest file.
     */
    @JvmName("fxgprygswkelwmrk")
    public suspend fun s3Uri(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.s3Uri = mapped
    }

    /**
     * @param value Location of source PDF files.
     */
    @JvmName("vjtjnyrghmdhhgfj")
    public suspend fun sourceDocumentsS3Uri(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourceDocumentsS3Uri = mapped
    }

    /**
     * @param value Purpose of data in augmented manifest.
     * One of `TRAIN` or `TEST`.
     */
    @JvmName("whexglkktdghphkw")
    public suspend fun split(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.split = mapped
    }

    internal fun build(): EntityRecognizerInputDataConfigAugmentedManifestArgs =
        EntityRecognizerInputDataConfigAugmentedManifestArgs(
            annotationDataS3Uri = annotationDataS3Uri,
            attributeNames = attributeNames ?: throw PulumiNullFieldException("attributeNames"),
            documentType = documentType,
            s3Uri = s3Uri ?: throw PulumiNullFieldException("s3Uri"),
            sourceDocumentsS3Uri = sourceDocumentsS3Uri,
            split = split,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy