Class EnrichmentOptions.Builder
java.lang.Object
com.ibm.watson.discovery.v2.model.EnrichmentOptions.Builder
- Enclosing class:
- EnrichmentOptions
public static class EnrichmentOptions.Builder extends Object
Builder.
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder. -
Method Summary
Modifier and Type Method Description EnrichmentOptions.Builder
addLanguages(String languages)
Adds an languages to languages.EnrichmentOptions
build()
Builds a EnrichmentOptions.EnrichmentOptions.Builder
entityType(String entityType)
Set the entityType.EnrichmentOptions.Builder
languages(List<String> languages)
Set the languages.EnrichmentOptions.Builder
regularExpression(String regularExpression)
Set the regularExpression.EnrichmentOptions.Builder
resultField(String resultField)
Set the resultField.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder.
-
-
Method Details
-
build
Builds a EnrichmentOptions.- Returns:
- the new EnrichmentOptions instance
-
addLanguages
Adds an languages to languages.- Parameters:
languages
- the new languages- Returns:
- the EnrichmentOptions builder
-
languages
Set the languages. Existing languages will be replaced.- Parameters:
languages
- the languages- Returns:
- the EnrichmentOptions builder
-
entityType
Set the entityType.- Parameters:
entityType
- the entityType- Returns:
- the EnrichmentOptions builder
-
regularExpression
Set the regularExpression.- Parameters:
regularExpression
- the regularExpression- Returns:
- the EnrichmentOptions builder
-
resultField
Set the resultField.- Parameters:
resultField
- the resultField- Returns:
- the EnrichmentOptions builder
-