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.Builder
addEnrichment(Enrichment enrichment)
Adds an enrichment to enrichments.Configuration.Builder
addNormalization(NormalizationOperation normalization)
Adds an normalization to normalizations.Configuration
build()
Builds a Configuration.Configuration.Builder
conversions(Conversions conversions)
Set the conversions.Configuration.Builder
description(String description)
Set the description.Configuration.Builder
enrichments(List<Enrichment> enrichments)
Set the enrichments.Configuration.Builder
name(String name)
Set the name.Configuration.Builder
normalizations(List<NormalizationOperation> normalizations)
Set the normalizations.Configuration.Builder
source(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
-