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