Class Configuration.Builder
java.lang.Object
com.ibm.watson.discovery.v1.model.Configuration.Builder
- Enclosing class:
- Configuration
public static class Configuration.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description Configuration.BuilderaddEnrichment(Enrichment enrichment)Adds an enrichment to enrichments.Configuration.BuilderaddNormalization(NormalizationOperation normalization)Adds an normalization to normalizations.Configurationbuild()Builds a Configuration.Configuration.Builderconversions(Conversions conversions)Set the conversions.Configuration.Builderdescription(String description)Set the description.Configuration.Builderenrichments(List<Enrichment> enrichments)Set the enrichments.Configuration.Buildername(String name)Set the name.Configuration.Buildernormalizations(List<NormalizationOperation> normalizations)Set the normalizations.Configuration.Buildersource(Source source)Set the source.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
name- the name
-
-
Method Details
-
build
Builds a Configuration.- Returns:
- the new Configuration instance
-
addEnrichment
Adds an enrichment to enrichments.- Parameters:
enrichment- the new enrichment- Returns:
- the Configuration builder
-
addNormalization
Adds an normalization to normalizations.- Parameters:
normalization- the new normalization- Returns:
- the Configuration builder
-
name
Set the name.- Parameters:
name- the name- Returns:
- the Configuration builder
-
description
Set the description.- Parameters:
description- the description- Returns:
- the Configuration builder
-
conversions
Set the conversions.- Parameters:
conversions- the conversions- Returns:
- the Configuration builder
-
enrichments
Set the enrichments. Existing enrichments will be replaced.- Parameters:
enrichments- the enrichments- Returns:
- the Configuration builder
-
normalizations
Set the normalizations. Existing normalizations will be replaced.- Parameters:
normalizations- the normalizations- Returns:
- the Configuration builder
-
source
Set the source.- Parameters:
source- the source- Returns:
- the Configuration builder
-