com.pulumi.aws.comprehend.outputs.DocumentClassifierInputDataConfigAugmentedManifest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
The newest version!
// *** 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.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class DocumentClassifierInputDataConfigAugmentedManifest {
/**
* @return Location of annotation files.
*
*/
private @Nullable String annotationDataS3Uri;
/**
* @return The JSON attribute that contains the annotations for the training documents.
*
*/
private List attributeNames;
/**
* @return Type of augmented manifest.
* One of `PLAIN_TEXT_DOCUMENT` or `SEMI_STRUCTURED_DOCUMENT`.
*
*/
private @Nullable String documentType;
/**
* @return Location of augmented manifest file.
*
*/
private String s3Uri;
/**
* @return Location of source PDF files.
*
*/
private @Nullable String sourceDocumentsS3Uri;
/**
* @return Purpose of data in augmented manifest.
* One of `TRAIN` or `TEST`.
*
*/
private @Nullable String split;
private DocumentClassifierInputDataConfigAugmentedManifest() {}
/**
* @return Location of annotation files.
*
*/
public Optional annotationDataS3Uri() {
return Optional.ofNullable(this.annotationDataS3Uri);
}
/**
* @return The JSON attribute that contains the annotations for the training documents.
*
*/
public List attributeNames() {
return this.attributeNames;
}
/**
* @return Type of augmented manifest.
* One of `PLAIN_TEXT_DOCUMENT` or `SEMI_STRUCTURED_DOCUMENT`.
*
*/
public Optional documentType() {
return Optional.ofNullable(this.documentType);
}
/**
* @return Location of augmented manifest file.
*
*/
public String s3Uri() {
return this.s3Uri;
}
/**
* @return Location of source PDF files.
*
*/
public Optional sourceDocumentsS3Uri() {
return Optional.ofNullable(this.sourceDocumentsS3Uri);
}
/**
* @return Purpose of data in augmented manifest.
* One of `TRAIN` or `TEST`.
*
*/
public Optional split() {
return Optional.ofNullable(this.split);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DocumentClassifierInputDataConfigAugmentedManifest defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String annotationDataS3Uri;
private List attributeNames;
private @Nullable String documentType;
private String s3Uri;
private @Nullable String sourceDocumentsS3Uri;
private @Nullable String split;
public Builder() {}
public Builder(DocumentClassifierInputDataConfigAugmentedManifest defaults) {
Objects.requireNonNull(defaults);
this.annotationDataS3Uri = defaults.annotationDataS3Uri;
this.attributeNames = defaults.attributeNames;
this.documentType = defaults.documentType;
this.s3Uri = defaults.s3Uri;
this.sourceDocumentsS3Uri = defaults.sourceDocumentsS3Uri;
this.split = defaults.split;
}
@CustomType.Setter
public Builder annotationDataS3Uri(@Nullable String annotationDataS3Uri) {
this.annotationDataS3Uri = annotationDataS3Uri;
return this;
}
@CustomType.Setter
public Builder attributeNames(List attributeNames) {
if (attributeNames == null) {
throw new MissingRequiredPropertyException("DocumentClassifierInputDataConfigAugmentedManifest", "attributeNames");
}
this.attributeNames = attributeNames;
return this;
}
public Builder attributeNames(String... attributeNames) {
return attributeNames(List.of(attributeNames));
}
@CustomType.Setter
public Builder documentType(@Nullable String documentType) {
this.documentType = documentType;
return this;
}
@CustomType.Setter
public Builder s3Uri(String s3Uri) {
if (s3Uri == null) {
throw new MissingRequiredPropertyException("DocumentClassifierInputDataConfigAugmentedManifest", "s3Uri");
}
this.s3Uri = s3Uri;
return this;
}
@CustomType.Setter
public Builder sourceDocumentsS3Uri(@Nullable String sourceDocumentsS3Uri) {
this.sourceDocumentsS3Uri = sourceDocumentsS3Uri;
return this;
}
@CustomType.Setter
public Builder split(@Nullable String split) {
this.split = split;
return this;
}
public DocumentClassifierInputDataConfigAugmentedManifest build() {
final var _resultValue = new DocumentClassifierInputDataConfigAugmentedManifest();
_resultValue.annotationDataS3Uri = annotationDataS3Uri;
_resultValue.attributeNames = attributeNames;
_resultValue.documentType = documentType;
_resultValue.s3Uri = s3Uri;
_resultValue.sourceDocumentsS3Uri = sourceDocumentsS3Uri;
_resultValue.split = split;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy