Class UpdateCollectionOptions.Builder
java.lang.Object
com.ibm.watson.discovery.v2.model.UpdateCollectionOptions.Builder
- Enclosing class:
- UpdateCollectionOptions
public static class UpdateCollectionOptions.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description UpdateCollectionOptions.BuilderaddEnrichments(CollectionEnrichment enrichments)Adds an enrichments to enrichments.UpdateCollectionOptionsbuild()Builds a UpdateCollectionOptions.UpdateCollectionOptions.BuildercollectionId(String collectionId)Set the collectionId.UpdateCollectionOptions.Builderdescription(String description)Set the description.UpdateCollectionOptions.Builderenrichments(List<CollectionEnrichment> enrichments)Set the enrichments.UpdateCollectionOptions.Buildername(String name)Set the name.UpdateCollectionOptions.BuilderprojectId(String projectId)Set the projectId.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
projectId- the projectIdcollectionId- the collectionId
-
-
Method Details
-
build
Builds a UpdateCollectionOptions.- Returns:
- the new UpdateCollectionOptions instance
-
addEnrichments
Adds an enrichments to enrichments.- Parameters:
enrichments- the new enrichments- Returns:
- the UpdateCollectionOptions builder
-
projectId
Set the projectId.- Parameters:
projectId- the projectId- Returns:
- the UpdateCollectionOptions builder
-
collectionId
Set the collectionId.- Parameters:
collectionId- the collectionId- Returns:
- the UpdateCollectionOptions builder
-
name
Set the name.- Parameters:
name- the name- Returns:
- the UpdateCollectionOptions builder
-
description
Set the description.- Parameters:
description- the description- Returns:
- the UpdateCollectionOptions builder
-
enrichments
Set the enrichments. Existing enrichments will be replaced.- Parameters:
enrichments- the enrichments- Returns:
- the UpdateCollectionOptions builder
-