Class UpdateSynonymOptions.Builder

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

public static class UpdateSynonymOptions.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 UpdateSynonymOptions build()
      Builds a UpdateSynonymOptions.
      Returns:
      the new UpdateSynonymOptions instance
    • workspaceId

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

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

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

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

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

      public UpdateSynonymOptions.Builder includeAudit​(Boolean includeAudit)
      Set the includeAudit.
      Parameters:
      includeAudit - the includeAudit
      Returns:
      the UpdateSynonymOptions builder