Class Utterance.Builder
java.lang.Object
com.ibm.watson.tone_analyzer.v3.model.Utterance.Builder
- Enclosing class:
- Utterance
public static class Utterance.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description Utterance
build()
Builds a Utterance.Utterance.Builder
text(String text)
Set the text.Utterance.Builder
user(String user)
Set the user.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
text
- the text
-
-
Method Details
-
build
Builds a Utterance.- Returns:
- the new Utterance instance
-
text
Set the text.- Parameters:
text
- the text- Returns:
- the Utterance builder
-
user
Set the user.- Parameters:
user
- the user- Returns:
- the Utterance builder
-