Class CollectionDetails.Builder
java.lang.Object
com.ibm.watson.discovery.v2.model.CollectionDetails.Builder
- Enclosing class:
- CollectionDetails
public static class CollectionDetails.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description CollectionDetails.BuilderaddEnrichments(CollectionEnrichment enrichments)Adds an enrichments to enrichments.CollectionDetailsbuild()Builds a CollectionDetails.CollectionDetails.Builderdescription(String description)Set the description.CollectionDetails.Builderenrichments(List<CollectionEnrichment> enrichments)Set the enrichments.CollectionDetails.Builderlanguage(String language)Set the language.CollectionDetails.Buildername(String name)Set the name.
-
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 CollectionDetails.- Returns:
- the new CollectionDetails instance
-
addEnrichments
Adds an enrichments to enrichments.- Parameters:
enrichments- the new enrichments- Returns:
- the CollectionDetails builder
-
name
Set the name.- Parameters:
name- the name- Returns:
- the CollectionDetails builder
-
description
Set the description.- Parameters:
description- the description- Returns:
- the CollectionDetails builder
-
language
Set the language.- Parameters:
language- the language- Returns:
- the CollectionDetails builder
-
enrichments
Set the enrichments. Existing enrichments will be replaced.- Parameters:
enrichments- the enrichments- Returns:
- the CollectionDetails builder
-