Class UpdateExampleOptions.Builder

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

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

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

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

    • build

      public UpdateExampleOptions build()
      Builds a UpdateExampleOptions.
      Returns:
      the new UpdateExampleOptions instance
    • addNewMentions

      public UpdateExampleOptions.Builder addNewMentions​(Mention newMentions)
      Adds an newMentions to newMentions.
      Parameters:
      newMentions - the new newMentions
      Returns:
      the UpdateExampleOptions builder
    • workspaceId

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

      public UpdateExampleOptions.Builder intent​(String intent)
      Set the intent.
      Parameters:
      intent - the intent
      Returns:
      the UpdateExampleOptions builder
    • text

      public UpdateExampleOptions.Builder text​(String text)
      Set the text.
      Parameters:
      text - the text
      Returns:
      the UpdateExampleOptions builder
    • newText

      public UpdateExampleOptions.Builder newText​(String newText)
      Set the newText.
      Parameters:
      newText - the newText
      Returns:
      the UpdateExampleOptions builder
    • newMentions

      public UpdateExampleOptions.Builder newMentions​(List<Mention> newMentions)
      Set the newMentions. Existing newMentions will be replaced.
      Parameters:
      newMentions - the newMentions
      Returns:
      the UpdateExampleOptions builder
    • includeAudit

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