Class CreateIntent.Builder

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

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

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

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

    • build

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

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

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

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

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