Class Mention.Builder
java.lang.Object
com.ibm.watson.assistant.v1.model.Mention.Builder
- Enclosing class:
- Mention
public static class Mention.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description Mention.Builder
addLocation(Long location)
Adds an location to location.Mention
build()
Builds a Mention.Mention.Builder
entity(String entity)
Set the entity.Mention.Builder
location(List<Long> location)
Set the location.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
entity
- the entitylocation
- the location
-
-
Method Details
-
build
Builds a Mention.- Returns:
- the new Mention instance
-
addLocation
Adds an location to location.- Parameters:
location
- the new location- Returns:
- the Mention builder
-
entity
Set the entity.- Parameters:
entity
- the entity- Returns:
- the Mention builder
-
location
Set the location. Existing location will be replaced.- Parameters:
location
- the location- Returns:
- the Mention builder
-