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 ClassifyOptions
build()
Builds a ClassifyOptions.ClassifyOptions.Builder
classifierId(String classifierId)
Set the classifierId.ClassifyOptions.Builder
text(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
-