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 SummaryModifier 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- 
Builderpublic Builder()Instantiates a new builder.
- 
BuilderInstantiates a new builder with required properties.- Parameters:
- name- the name
 
 
- 
- 
Method Details- 
buildBuilds a Configuration.- Returns:
- the new Configuration instance
 
- 
addEnrichmentAdds an enrichment to enrichments.- Parameters:
- enrichment- the new enrichment
- Returns:
- the Configuration builder
 
- 
addNormalizationAdds an normalization to normalizations.- Parameters:
- normalization- the new normalization
- Returns:
- the Configuration builder
 
- 
nameSet the name.- Parameters:
- name- the name
- Returns:
- the Configuration builder
 
- 
descriptionSet the description.- Parameters:
- description- the description
- Returns:
- the Configuration builder
 
- 
conversionsSet the conversions.- Parameters:
- conversions- the conversions
- Returns:
- the Configuration builder
 
- 
enrichmentsSet the enrichments. Existing enrichments will be replaced.- Parameters:
- enrichments- the enrichments
- Returns:
- the Configuration builder
 
- 
normalizationsSet the normalizations. Existing normalizations will be replaced.- Parameters:
- normalizations- the normalizations
- Returns:
- the Configuration builder
 
- 
sourceSet the source.- Parameters:
- source- the source
- Returns:
- the Configuration builder
 
 
-