Class ClassifyCollectionOptions.Builder
java.lang.Object
com.ibm.watson.natural_language_classifier.v1.model.ClassifyCollectionOptions.Builder
- Enclosing class:
- ClassifyCollectionOptions
public static class ClassifyCollectionOptions.Builder extends Object
Builder.
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.Builder(String classifierId, List<ClassifyInput> collection)
Instantiates a new builder with required properties. -
Method Summary
Modifier and Type Method Description ClassifyCollectionOptions.Builder
addClassifyInput(ClassifyInput classifyInput)
Adds an classifyInput to collection.ClassifyCollectionOptions
build()
Builds a ClassifyCollectionOptions.ClassifyCollectionOptions.Builder
classifierId(String classifierId)
Set the classifierId.ClassifyCollectionOptions.Builder
collection(List<ClassifyInput> collection)
Set the collection.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
classifierId
- the classifierIdcollection
- the collection
-
-
Method Details
-
build
Builds a ClassifyCollectionOptions.- Returns:
- the new ClassifyCollectionOptions instance
-
addClassifyInput
Adds an classifyInput to collection.- Parameters:
classifyInput
- the new classifyInput- Returns:
- the ClassifyCollectionOptions builder
-
classifierId
Set the classifierId.- Parameters:
classifierId
- the classifierId- Returns:
- the ClassifyCollectionOptions builder
-
collection
Set the collection. Existing collection will be replaced.- Parameters:
collection
- the collection- Returns:
- the ClassifyCollectionOptions builder
-