Class Synonym.Builder

java.lang.Object
com.ibm.watson.assistant.v1.model.Synonym.Builder
Enclosing class:
Synonym

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

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

      public Builder​(String synonym)
      Instantiates a new builder with required properties.
      Parameters:
      synonym - the synonym
  • Method Details

    • build

      public Synonym build()
      Builds a Synonym.
      Returns:
      the new Synonym instance
    • synonym

      public Synonym.Builder synonym​(String synonym)
      Set the synonym.
      Parameters:
      synonym - the synonym
      Returns:
      the Synonym builder