public class EnrichmentOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static class |
EnrichmentOptions.Builder
Builder.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
entityType |
protected java.util.List<java.lang.String> |
languages |
protected java.lang.String |
regularExpression |
protected java.lang.String |
resultField |
Modifier | Constructor and Description |
---|---|
protected |
EnrichmentOptions(EnrichmentOptions.Builder builder) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
entityType()
Gets the entityType.
|
java.util.List<java.lang.String> |
languages()
Gets the languages.
|
EnrichmentOptions.Builder |
newBuilder()
New builder.
|
java.lang.String |
regularExpression()
Gets the regularExpression.
|
java.lang.String |
resultField()
Gets the resultField.
|
protected java.util.List<java.lang.String> languages
@SerializedName(value="entity_type") protected java.lang.String entityType
@SerializedName(value="regular_expression") protected java.lang.String regularExpression
@SerializedName(value="result_field") protected java.lang.String resultField
protected EnrichmentOptions(EnrichmentOptions.Builder builder)
public EnrichmentOptions.Builder newBuilder()
public java.util.List<java.lang.String> languages()
An array of supported languages for this enrichment.
public java.lang.String entityType()
The type of entity. Required when creating `dictionary` and `regular_expression` **type** enrichment. Not valid when creating any other type of enrichment.
public java.lang.String regularExpression()
The regular expression to apply for this enrichment. Required only when the **type** of enrichment being created is a `regular_expression`. Not valid when creating any other type of enrichment.
public java.lang.String resultField()
The name of the result document field that this enrichment creates. Required only when the enrichment **type** is `rule_based`. Not valid when creating any other type of enrichment.