Class CreateSynonymOptions.Builder

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

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

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

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

    • build

      public CreateSynonymOptions build()
      Builds a CreateSynonymOptions.
      Returns:
      the new CreateSynonymOptions instance
    • workspaceId

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

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

      public CreateSynonymOptions.Builder value​(String value)
      Set the value.
      Parameters:
      value - the value
      Returns:
      the CreateSynonymOptions builder
    • synonym

      public CreateSynonymOptions.Builder synonym​(String synonym)
      Set the synonym.
      Parameters:
      synonym - the synonym
      Returns:
      the CreateSynonymOptions builder
    • includeAudit

      public CreateSynonymOptions.Builder includeAudit​(Boolean includeAudit)
      Set the includeAudit.
      Parameters:
      includeAudit - the includeAudit
      Returns:
      the CreateSynonymOptions builder
    • synonym

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