Class UpdateIntentOptions.Builder

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

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

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

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

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

      public UpdateIntentOptions.Builder newIntent​(String newIntent)
      Set the newIntent.
      Parameters:
      newIntent - the newIntent
      Returns:
      the UpdateIntentOptions builder
    • newDescription

      public UpdateIntentOptions.Builder newDescription​(String newDescription)
      Set the newDescription.
      Parameters:
      newDescription - the newDescription
      Returns:
      the UpdateIntentOptions builder
    • newExamples

      public UpdateIntentOptions.Builder newExamples​(List<Example> newExamples)
      Set the newExamples. Existing newExamples will be replaced.
      Parameters:
      newExamples - the newExamples
      Returns:
      the UpdateIntentOptions builder
    • append

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

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