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

com.pulumi.aws.comprehend.outputs.EntityRecognizerInputDataConfigDocuments 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.outputs;

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

@CustomType
public final class EntityRecognizerInputDataConfigDocuments {
    /**
     * @return Specifies how the input files should be processed.
     * One of `ONE_DOC_PER_LINE` or `ONE_DOC_PER_FILE`.
     * 
     */
    private @Nullable String inputFormat;
    /**
     * @return Location of training documents.
     * 
     */
    private String s3Uri;
    private @Nullable String testS3Uri;

    private EntityRecognizerInputDataConfigDocuments() {}
    /**
     * @return Specifies how the input files should be processed.
     * One of `ONE_DOC_PER_LINE` or `ONE_DOC_PER_FILE`.
     * 
     */
    public Optional inputFormat() {
        return Optional.ofNullable(this.inputFormat);
    }
    /**
     * @return Location of training documents.
     * 
     */
    public String s3Uri() {
        return this.s3Uri;
    }
    public Optional testS3Uri() {
        return Optional.ofNullable(this.testS3Uri);
    }

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

    public static Builder builder(EntityRecognizerInputDataConfigDocuments defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String inputFormat;
        private String s3Uri;
        private @Nullable String testS3Uri;
        public Builder() {}
        public Builder(EntityRecognizerInputDataConfigDocuments defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.inputFormat = defaults.inputFormat;
    	      this.s3Uri = defaults.s3Uri;
    	      this.testS3Uri = defaults.testS3Uri;
        }

        @CustomType.Setter
        public Builder inputFormat(@Nullable String inputFormat) {

            this.inputFormat = inputFormat;
            return this;
        }
        @CustomType.Setter
        public Builder s3Uri(String s3Uri) {
            if (s3Uri == null) {
              throw new MissingRequiredPropertyException("EntityRecognizerInputDataConfigDocuments", "s3Uri");
            }
            this.s3Uri = s3Uri;
            return this;
        }
        @CustomType.Setter
        public Builder testS3Uri(@Nullable String testS3Uri) {

            this.testS3Uri = testS3Uri;
            return this;
        }
        public EntityRecognizerInputDataConfigDocuments build() {
            final var _resultValue = new EntityRecognizerInputDataConfigDocuments();
            _resultValue.inputFormat = inputFormat;
            _resultValue.s3Uri = s3Uri;
            _resultValue.testS3Uri = testS3Uri;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy