Class ClassifyOptions.Builder
java.lang.Object
com.ibm.watson.natural_language_classifier.v1.model.ClassifyOptions.Builder
- Enclosing class:
- ClassifyOptions
public static class ClassifyOptions.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description ClassifyOptionsbuild()Builds a ClassifyOptions.ClassifyOptions.BuilderclassifierId(String classifierId)Set the classifierId.ClassifyOptions.Buildertext(String text)Set the text.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
classifierId- the classifierIdtext- the text
-
-
Method Details
-
build
Builds a ClassifyOptions.- Returns:
- the new ClassifyOptions instance
-
classifierId
Set the classifierId.- Parameters:
classifierId- the classifierId- Returns:
- the ClassifyOptions builder
-
text
Set the text.- Parameters:
text- the text- Returns:
- the ClassifyOptions builder
-