Class CreateWorkspaceOptions.Builder

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

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

    • Builder

      public Builder()
      Instantiates a new builder.
  • Method Details

    • build

      public CreateWorkspaceOptions build()
      Builds a CreateWorkspaceOptions.
      Returns:
      the new CreateWorkspaceOptions instance
    • addDialogNode

      public CreateWorkspaceOptions.Builder addDialogNode​(DialogNode dialogNode)
      Adds an dialogNode to dialogNodes.
      Parameters:
      dialogNode - the new dialogNode
      Returns:
      the CreateWorkspaceOptions builder
    • addCounterexample

      public CreateWorkspaceOptions.Builder addCounterexample​(Counterexample counterexample)
      Adds an counterexample to counterexamples.
      Parameters:
      counterexample - the new counterexample
      Returns:
      the CreateWorkspaceOptions builder
    • addWebhooks

      public CreateWorkspaceOptions.Builder addWebhooks​(Webhook webhooks)
      Adds an webhooks to webhooks.
      Parameters:
      webhooks - the new webhooks
      Returns:
      the CreateWorkspaceOptions builder
    • addIntent

      public CreateWorkspaceOptions.Builder addIntent​(CreateIntent intent)
      Adds an intent to intents.
      Parameters:
      intent - the new intent
      Returns:
      the CreateWorkspaceOptions builder
    • addEntity

      public CreateWorkspaceOptions.Builder addEntity​(CreateEntity entity)
      Adds an entity to entities.
      Parameters:
      entity - the new entity
      Returns:
      the CreateWorkspaceOptions builder
    • name

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

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

      public CreateWorkspaceOptions.Builder language​(String language)
      Set the language.
      Parameters:
      language - the language
      Returns:
      the CreateWorkspaceOptions builder
    • dialogNodes

      public CreateWorkspaceOptions.Builder dialogNodes​(List<DialogNode> dialogNodes)
      Set the dialogNodes. Existing dialogNodes will be replaced.
      Parameters:
      dialogNodes - the dialogNodes
      Returns:
      the CreateWorkspaceOptions builder
    • counterexamples

      public CreateWorkspaceOptions.Builder counterexamples​(List<Counterexample> counterexamples)
      Set the counterexamples. Existing counterexamples will be replaced.
      Parameters:
      counterexamples - the counterexamples
      Returns:
      the CreateWorkspaceOptions builder
    • metadata

      public CreateWorkspaceOptions.Builder metadata​(Map<String,​Object> metadata)
      Set the metadata.
      Parameters:
      metadata - the metadata
      Returns:
      the CreateWorkspaceOptions builder
    • learningOptOut

      public CreateWorkspaceOptions.Builder learningOptOut​(Boolean learningOptOut)
      Set the learningOptOut.
      Parameters:
      learningOptOut - the learningOptOut
      Returns:
      the CreateWorkspaceOptions builder
    • systemSettings

      public CreateWorkspaceOptions.Builder systemSettings​(WorkspaceSystemSettings systemSettings)
      Set the systemSettings.
      Parameters:
      systemSettings - the systemSettings
      Returns:
      the CreateWorkspaceOptions builder
    • webhooks

      public CreateWorkspaceOptions.Builder webhooks​(List<Webhook> webhooks)
      Set the webhooks. Existing webhooks will be replaced.
      Parameters:
      webhooks - the webhooks
      Returns:
      the CreateWorkspaceOptions builder
    • intents

      public CreateWorkspaceOptions.Builder intents​(List<CreateIntent> intents)
      Set the intents. Existing intents will be replaced.
      Parameters:
      intents - the intents
      Returns:
      the CreateWorkspaceOptions builder
    • entities

      public CreateWorkspaceOptions.Builder entities​(List<CreateEntity> entities)
      Set the entities. Existing entities will be replaced.
      Parameters:
      entities - the entities
      Returns:
      the CreateWorkspaceOptions builder
    • includeAudit

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