
com.pulumi.aws.comprehend.outputs.EntityRecognizerInputDataConfig 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.aws.comprehend.outputs.EntityRecognizerInputDataConfigAnnotations;
import com.pulumi.aws.comprehend.outputs.EntityRecognizerInputDataConfigAugmentedManifest;
import com.pulumi.aws.comprehend.outputs.EntityRecognizerInputDataConfigDocuments;
import com.pulumi.aws.comprehend.outputs.EntityRecognizerInputDataConfigEntityList;
import com.pulumi.aws.comprehend.outputs.EntityRecognizerInputDataConfigEntityType;
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 EntityRecognizerInputDataConfig {
/**
* @return Specifies location of the document annotation data.
* See the `annotations` Configuration Block section below.
* One of `annotations` or `entity_list` is required.
*
*/
private @Nullable EntityRecognizerInputDataConfigAnnotations annotations;
/**
* @return List of training datasets produced by Amazon SageMaker Ground Truth.
* Used if `data_format` is `AUGMENTED_MANIFEST`.
* See the `augmented_manifests` Configuration Block section below.
*
*/
private @Nullable List augmentedManifests;
/**
* @return The format for the training data.
* One of `COMPREHEND_CSV` or `AUGMENTED_MANIFEST`.
*
*/
private @Nullable String dataFormat;
/**
* @return Specifies a collection of training documents.
* Used if `data_format` is `COMPREHEND_CSV`.
* See the `documents` Configuration Block section below.
*
*/
private @Nullable EntityRecognizerInputDataConfigDocuments documents;
/**
* @return Specifies location of the entity list data.
* See the `entity_list` Configuration Block section below.
* One of `entity_list` or `annotations` is required.
*
*/
private @Nullable EntityRecognizerInputDataConfigEntityList entityList;
/**
* @return Set of entity types to be recognized.
* Has a maximum of 25 items.
* See the `entity_types` Configuration Block section below.
*
*/
private List entityTypes;
private EntityRecognizerInputDataConfig() {}
/**
* @return Specifies location of the document annotation data.
* See the `annotations` Configuration Block section below.
* One of `annotations` or `entity_list` is required.
*
*/
public Optional annotations() {
return Optional.ofNullable(this.annotations);
}
/**
* @return List of training datasets produced by Amazon SageMaker Ground Truth.
* Used if `data_format` is `AUGMENTED_MANIFEST`.
* See the `augmented_manifests` Configuration Block section below.
*
*/
public List augmentedManifests() {
return this.augmentedManifests == null ? List.of() : this.augmentedManifests;
}
/**
* @return The format for the training data.
* One of `COMPREHEND_CSV` or `AUGMENTED_MANIFEST`.
*
*/
public Optional dataFormat() {
return Optional.ofNullable(this.dataFormat);
}
/**
* @return Specifies a collection of training documents.
* Used if `data_format` is `COMPREHEND_CSV`.
* See the `documents` Configuration Block section below.
*
*/
public Optional documents() {
return Optional.ofNullable(this.documents);
}
/**
* @return Specifies location of the entity list data.
* See the `entity_list` Configuration Block section below.
* One of `entity_list` or `annotations` is required.
*
*/
public Optional entityList() {
return Optional.ofNullable(this.entityList);
}
/**
* @return Set of entity types to be recognized.
* Has a maximum of 25 items.
* See the `entity_types` Configuration Block section below.
*
*/
public List entityTypes() {
return this.entityTypes;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(EntityRecognizerInputDataConfig defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable EntityRecognizerInputDataConfigAnnotations annotations;
private @Nullable List augmentedManifests;
private @Nullable String dataFormat;
private @Nullable EntityRecognizerInputDataConfigDocuments documents;
private @Nullable EntityRecognizerInputDataConfigEntityList entityList;
private List entityTypes;
public Builder() {}
public Builder(EntityRecognizerInputDataConfig defaults) {
Objects.requireNonNull(defaults);
this.annotations = defaults.annotations;
this.augmentedManifests = defaults.augmentedManifests;
this.dataFormat = defaults.dataFormat;
this.documents = defaults.documents;
this.entityList = defaults.entityList;
this.entityTypes = defaults.entityTypes;
}
@CustomType.Setter
public Builder annotations(@Nullable EntityRecognizerInputDataConfigAnnotations annotations) {
this.annotations = annotations;
return this;
}
@CustomType.Setter
public Builder augmentedManifests(@Nullable List augmentedManifests) {
this.augmentedManifests = augmentedManifests;
return this;
}
public Builder augmentedManifests(EntityRecognizerInputDataConfigAugmentedManifest... augmentedManifests) {
return augmentedManifests(List.of(augmentedManifests));
}
@CustomType.Setter
public Builder dataFormat(@Nullable String dataFormat) {
this.dataFormat = dataFormat;
return this;
}
@CustomType.Setter
public Builder documents(@Nullable EntityRecognizerInputDataConfigDocuments documents) {
this.documents = documents;
return this;
}
@CustomType.Setter
public Builder entityList(@Nullable EntityRecognizerInputDataConfigEntityList entityList) {
this.entityList = entityList;
return this;
}
@CustomType.Setter
public Builder entityTypes(List entityTypes) {
if (entityTypes == null) {
throw new MissingRequiredPropertyException("EntityRecognizerInputDataConfig", "entityTypes");
}
this.entityTypes = entityTypes;
return this;
}
public Builder entityTypes(EntityRecognizerInputDataConfigEntityType... entityTypes) {
return entityTypes(List.of(entityTypes));
}
public EntityRecognizerInputDataConfig build() {
final var _resultValue = new EntityRecognizerInputDataConfig();
_resultValue.annotations = annotations;
_resultValue.augmentedManifests = augmentedManifests;
_resultValue.dataFormat = dataFormat;
_resultValue.documents = documents;
_resultValue.entityList = entityList;
_resultValue.entityTypes = entityTypes;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy