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

com.pulumi.aws.comprehend.inputs.DocumentClassifierInputDataConfigAugmentedManifestArgs Maven / Gradle / Ivy

// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.comprehend.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class DocumentClassifierInputDataConfigAugmentedManifestArgs extends com.pulumi.resources.ResourceArgs {

    public static final DocumentClassifierInputDataConfigAugmentedManifestArgs Empty = new DocumentClassifierInputDataConfigAugmentedManifestArgs();

    /**
     * Location of annotation files.
     * 
     */
    @Import(name="annotationDataS3Uri")
    private @Nullable Output annotationDataS3Uri;

    /**
     * @return Location of annotation files.
     * 
     */
    public Optional> annotationDataS3Uri() {
        return Optional.ofNullable(this.annotationDataS3Uri);
    }

    /**
     * The JSON attribute that contains the annotations for the training documents.
     * 
     */
    @Import(name="attributeNames", required=true)
    private Output> attributeNames;

    /**
     * @return The JSON attribute that contains the annotations for the training documents.
     * 
     */
    public Output> attributeNames() {
        return this.attributeNames;
    }

    /**
     * Type of augmented manifest.
     * One of `PLAIN_TEXT_DOCUMENT` or `SEMI_STRUCTURED_DOCUMENT`.
     * 
     */
    @Import(name="documentType")
    private @Nullable Output documentType;

    /**
     * @return Type of augmented manifest.
     * One of `PLAIN_TEXT_DOCUMENT` or `SEMI_STRUCTURED_DOCUMENT`.
     * 
     */
    public Optional> documentType() {
        return Optional.ofNullable(this.documentType);
    }

    /**
     * Location of augmented manifest file.
     * 
     */
    @Import(name="s3Uri", required=true)
    private Output s3Uri;

    /**
     * @return Location of augmented manifest file.
     * 
     */
    public Output s3Uri() {
        return this.s3Uri;
    }

    /**
     * Location of source PDF files.
     * 
     */
    @Import(name="sourceDocumentsS3Uri")
    private @Nullable Output sourceDocumentsS3Uri;

    /**
     * @return Location of source PDF files.
     * 
     */
    public Optional> sourceDocumentsS3Uri() {
        return Optional.ofNullable(this.sourceDocumentsS3Uri);
    }

    /**
     * Purpose of data in augmented manifest.
     * One of `TRAIN` or `TEST`.
     * 
     */
    @Import(name="split")
    private @Nullable Output split;

    /**
     * @return Purpose of data in augmented manifest.
     * One of `TRAIN` or `TEST`.
     * 
     */
    public Optional> split() {
        return Optional.ofNullable(this.split);
    }

    private DocumentClassifierInputDataConfigAugmentedManifestArgs() {}

    private DocumentClassifierInputDataConfigAugmentedManifestArgs(DocumentClassifierInputDataConfigAugmentedManifestArgs $) {
        this.annotationDataS3Uri = $.annotationDataS3Uri;
        this.attributeNames = $.attributeNames;
        this.documentType = $.documentType;
        this.s3Uri = $.s3Uri;
        this.sourceDocumentsS3Uri = $.sourceDocumentsS3Uri;
        this.split = $.split;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(DocumentClassifierInputDataConfigAugmentedManifestArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private DocumentClassifierInputDataConfigAugmentedManifestArgs $;

        public Builder() {
            $ = new DocumentClassifierInputDataConfigAugmentedManifestArgs();
        }

        public Builder(DocumentClassifierInputDataConfigAugmentedManifestArgs defaults) {
            $ = new DocumentClassifierInputDataConfigAugmentedManifestArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param annotationDataS3Uri Location of annotation files.
         * 
         * @return builder
         * 
         */
        public Builder annotationDataS3Uri(@Nullable Output annotationDataS3Uri) {
            $.annotationDataS3Uri = annotationDataS3Uri;
            return this;
        }

        /**
         * @param annotationDataS3Uri Location of annotation files.
         * 
         * @return builder
         * 
         */
        public Builder annotationDataS3Uri(String annotationDataS3Uri) {
            return annotationDataS3Uri(Output.of(annotationDataS3Uri));
        }

        /**
         * @param attributeNames The JSON attribute that contains the annotations for the training documents.
         * 
         * @return builder
         * 
         */
        public Builder attributeNames(Output> attributeNames) {
            $.attributeNames = attributeNames;
            return this;
        }

        /**
         * @param attributeNames The JSON attribute that contains the annotations for the training documents.
         * 
         * @return builder
         * 
         */
        public Builder attributeNames(List attributeNames) {
            return attributeNames(Output.of(attributeNames));
        }

        /**
         * @param attributeNames The JSON attribute that contains the annotations for the training documents.
         * 
         * @return builder
         * 
         */
        public Builder attributeNames(String... attributeNames) {
            return attributeNames(List.of(attributeNames));
        }

        /**
         * @param documentType Type of augmented manifest.
         * One of `PLAIN_TEXT_DOCUMENT` or `SEMI_STRUCTURED_DOCUMENT`.
         * 
         * @return builder
         * 
         */
        public Builder documentType(@Nullable Output documentType) {
            $.documentType = documentType;
            return this;
        }

        /**
         * @param documentType Type of augmented manifest.
         * One of `PLAIN_TEXT_DOCUMENT` or `SEMI_STRUCTURED_DOCUMENT`.
         * 
         * @return builder
         * 
         */
        public Builder documentType(String documentType) {
            return documentType(Output.of(documentType));
        }

        /**
         * @param s3Uri Location of augmented manifest file.
         * 
         * @return builder
         * 
         */
        public Builder s3Uri(Output s3Uri) {
            $.s3Uri = s3Uri;
            return this;
        }

        /**
         * @param s3Uri Location of augmented manifest file.
         * 
         * @return builder
         * 
         */
        public Builder s3Uri(String s3Uri) {
            return s3Uri(Output.of(s3Uri));
        }

        /**
         * @param sourceDocumentsS3Uri Location of source PDF files.
         * 
         * @return builder
         * 
         */
        public Builder sourceDocumentsS3Uri(@Nullable Output sourceDocumentsS3Uri) {
            $.sourceDocumentsS3Uri = sourceDocumentsS3Uri;
            return this;
        }

        /**
         * @param sourceDocumentsS3Uri Location of source PDF files.
         * 
         * @return builder
         * 
         */
        public Builder sourceDocumentsS3Uri(String sourceDocumentsS3Uri) {
            return sourceDocumentsS3Uri(Output.of(sourceDocumentsS3Uri));
        }

        /**
         * @param split Purpose of data in augmented manifest.
         * One of `TRAIN` or `TEST`.
         * 
         * @return builder
         * 
         */
        public Builder split(@Nullable Output split) {
            $.split = split;
            return this;
        }

        /**
         * @param split Purpose of data in augmented manifest.
         * One of `TRAIN` or `TEST`.
         * 
         * @return builder
         * 
         */
        public Builder split(String split) {
            return split(Output.of(split));
        }

        public DocumentClassifierInputDataConfigAugmentedManifestArgs build() {
            if ($.attributeNames == null) {
                throw new MissingRequiredPropertyException("DocumentClassifierInputDataConfigAugmentedManifestArgs", "attributeNames");
            }
            if ($.s3Uri == null) {
                throw new MissingRequiredPropertyException("DocumentClassifierInputDataConfigAugmentedManifestArgs", "s3Uri");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy