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 Details

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

      public Builder​(String entity, List<Long> location)
      Instantiates a new builder with required properties.
      Parameters:
      entity - the entity
      location - the location
  • Method Details

    • build

      public Mention build()
      Builds a Mention.
      Returns:
      the new Mention instance
    • addLocation

      public Mention.Builder addLocation​(Long location)
      Adds an location to location.
      Parameters:
      location - the new location
      Returns:
      the Mention builder
    • entity

      public Mention.Builder entity​(String entity)
      Set the entity.
      Parameters:
      entity - the entity
      Returns:
      the Mention builder
    • location

      public Mention.Builder location​(List<Long> location)
      Set the location. Existing location will be replaced.
      Parameters:
      location - the location
      Returns:
      the Mention builder