Class GetSynonymOptions.Builder

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

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

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

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

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

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

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