Class CreateIntentOptions.Builder

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

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

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

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

    • build

      public CreateIntentOptions build()
      Builds a CreateIntentOptions.
      Returns:
      the new CreateIntentOptions instance
    • addExample

      public CreateIntentOptions.Builder addExample​(Example example)
      Adds an example to examples.
      Parameters:
      example - the new example
      Returns:
      the CreateIntentOptions builder
    • workspaceId

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

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

      public CreateIntentOptions.Builder description​(String description)
      Set the description.
      Parameters:
      description - the description
      Returns:
      the CreateIntentOptions builder
    • examples

      public CreateIntentOptions.Builder examples​(List<Example> examples)
      Set the examples. Existing examples will be replaced.
      Parameters:
      examples - the examples
      Returns:
      the CreateIntentOptions builder
    • includeAudit

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