Class CollectionEnrichment
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.discovery.v2.model.CollectionEnrichment
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class CollectionEnrichment
extends com.ibm.cloud.sdk.core.service.model.GenericModel
An object describing an Enrichment for a collection.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CollectionEnrichment.Builder
Builder. -
Method Summary
Modifier and Type Method Description String
enrichmentId()
Gets the enrichmentId.List<String>
fields()
Gets the fields.CollectionEnrichment.Builder
newBuilder()
New builder.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Method Details
-
newBuilder
New builder.- Returns:
- a CollectionEnrichment builder
-
enrichmentId
Gets the enrichmentId.The unique identifier of this enrichment.
- Returns:
- the enrichmentId
-
fields
Gets the fields.An array of field names that the enrichment is applied to.
If you apply an enrichment to a field from a JSON file, the data is converted to an array automatically, even if the field contains a single value.
- Returns:
- the fields
-