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.Builder
addEnrichments(CollectionEnrichment enrichments)
Adds an enrichments to enrichments.CollectionDetails
build()
Builds a CollectionDetails.CollectionDetails.Builder
description(String description)
Set the description.CollectionDetails.Builder
enrichments(List<CollectionEnrichment> enrichments)
Set the enrichments.CollectionDetails.Builder
language(String language)
Set the language.CollectionDetails.Builder
name(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
-