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.BuilderaddFields(String fields)Adds an fields to fields.CollectionEnrichmentbuild()Builds a CollectionEnrichment.CollectionEnrichment.BuilderenrichmentId(String enrichmentId)Set the enrichmentId.CollectionEnrichment.Builderfields(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
-