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.BuilderaddLanguages(String languages)Adds an languages to languages.EnrichmentOptionsbuild()Builds a EnrichmentOptions.EnrichmentOptions.BuilderentityType(String entityType)Set the entityType.EnrichmentOptions.Builderlanguages(List<String> languages)Set the languages.EnrichmentOptions.BuilderregularExpression(String regularExpression)Set the regularExpression.EnrichmentOptions.BuilderresultField(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
-