Class Enrichment.Builder
java.lang.Object
com.ibm.watson.discovery.v1.model.Enrichment.Builder
- Enclosing class:
- Enrichment
public static class Enrichment.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description Enrichmentbuild()Builds a Enrichment.Enrichment.Builderdescription(String description)Set the description.Enrichment.BuilderdestinationField(String destinationField)Set the destinationField.Enrichment.Builderenrichment(String enrichment)Set the enrichment.Enrichment.BuilderignoreDownstreamErrors(Boolean ignoreDownstreamErrors)Set the ignoreDownstreamErrors.Enrichment.Builderoptions(EnrichmentOptions options)Set the options.Enrichment.Builderoverwrite(Boolean overwrite)Set the overwrite.Enrichment.BuildersourceField(String sourceField)Set the sourceField.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
destinationField- the destinationFieldsourceField- the sourceFieldenrichment- the enrichment
-
-
Method Details
-
build
Builds a Enrichment.- Returns:
- the new Enrichment instance
-
description
Set the description.- Parameters:
description- the description- Returns:
- the Enrichment builder
-
destinationField
Set the destinationField.- Parameters:
destinationField- the destinationField- Returns:
- the Enrichment builder
-
sourceField
Set the sourceField.- Parameters:
sourceField- the sourceField- Returns:
- the Enrichment builder
-
overwrite
Set the overwrite.- Parameters:
overwrite- the overwrite- Returns:
- the Enrichment builder
-
enrichment
Set the enrichment.- Parameters:
enrichment- the enrichment- Returns:
- the Enrichment builder
-
ignoreDownstreamErrors
Set the ignoreDownstreamErrors.- Parameters:
ignoreDownstreamErrors- the ignoreDownstreamErrors- Returns:
- the Enrichment builder
-
options
Set the options.- Parameters:
options- the options- Returns:
- the Enrichment builder
-