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