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 Enrichment
build()
Builds a Enrichment.Enrichment.Builder
description(String description)
Set the description.Enrichment.Builder
destinationField(String destinationField)
Set the destinationField.Enrichment.Builder
enrichment(String enrichment)
Set the enrichment.Enrichment.Builder
ignoreDownstreamErrors(Boolean ignoreDownstreamErrors)
Set the ignoreDownstreamErrors.Enrichment.Builder
options(EnrichmentOptions options)
Set the options.Enrichment.Builder
overwrite(Boolean overwrite)
Set the overwrite.Enrichment.Builder
sourceField(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
-