Class WordStyle.Builder

java.lang.Object
com.ibm.watson.discovery.v1.model.WordStyle.Builder
Enclosing class:
WordStyle

public static class WordStyle.Builder
extends Object
Builder.
  • Constructor Details

    • Builder

      public Builder()
      Instantiates a new builder.
  • Method Details

    • build

      public WordStyle build()
      Builds a WordStyle.
      Returns:
      the new WordStyle instance
    • addNames

      public WordStyle.Builder addNames​(String names)
      Adds an names to names.
      Parameters:
      names - the new names
      Returns:
      the WordStyle builder
    • level

      public WordStyle.Builder level​(long level)
      Set the level.
      Parameters:
      level - the level
      Returns:
      the WordStyle builder
    • names

      public WordStyle.Builder names​(List<String> names)
      Set the names. Existing names will be replaced.
      Parameters:
      names - the names
      Returns:
      the WordStyle builder