Class CreateExampleOptions.Builder

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

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

      public CreateExampleOptions.Builder addMentions​(Mention mentions)
      Adds an mentions to mentions.
      Parameters:
      mentions - the new mentions
      Returns:
      the CreateExampleOptions builder
    • workspaceId

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

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

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

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

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

      public CreateExampleOptions.Builder example​(Example example)
      Set the example.
      Parameters:
      example - the example
      Returns:
      the CreateExampleOptions builder