Class Example.Builder
java.lang.Object
com.ibm.watson.assistant.v1.model.Example.Builder
- Enclosing class:
- Example
public static class Example.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description Example.BuilderaddMentions(Mention mentions)Adds an mentions to mentions.Examplebuild()Builds a Example.Example.Buildermentions(List<Mention> mentions)Set the mentions.Example.Buildertext(String text)Set the text.
-
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 Example.- Returns:
- the new Example instance
-
addMentions
Adds an mentions to mentions.- Parameters:
mentions- the new mentions- Returns:
- the Example builder
-
text
Set the text.- Parameters:
text- the text- Returns:
- the Example builder
-
mentions
Set the mentions. Existing mentions will be replaced.- Parameters:
mentions- the mentions- Returns:
- the Example builder
-