Class UpdateWorkspaceOptions.Builder

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

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

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

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

    • build

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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