Class UpdateValueOptions.Builder

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

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

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

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

    • build

      public UpdateValueOptions build()
      Builds a UpdateValueOptions.
      Returns:
      the new UpdateValueOptions instance
    • addSynonym

      public UpdateValueOptions.Builder addSynonym​(String synonym)
      Adds an synonym to newSynonyms.
      Parameters:
      synonym - the new synonym
      Returns:
      the UpdateValueOptions builder
    • addPattern

      public UpdateValueOptions.Builder addPattern​(String pattern)
      Adds an pattern to newPatterns.
      Parameters:
      pattern - the new pattern
      Returns:
      the UpdateValueOptions builder
    • workspaceId

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

      public UpdateValueOptions.Builder entity​(String entity)
      Set the entity.
      Parameters:
      entity - the entity
      Returns:
      the UpdateValueOptions builder
    • value

      public UpdateValueOptions.Builder value​(String value)
      Set the value.
      Parameters:
      value - the value
      Returns:
      the UpdateValueOptions builder
    • newValue

      public UpdateValueOptions.Builder newValue​(String newValue)
      Set the newValue.
      Parameters:
      newValue - the newValue
      Returns:
      the UpdateValueOptions builder
    • newMetadata

      public UpdateValueOptions.Builder newMetadata​(Map<String,​Object> newMetadata)
      Set the newMetadata.
      Parameters:
      newMetadata - the newMetadata
      Returns:
      the UpdateValueOptions builder
    • newType

      public UpdateValueOptions.Builder newType​(String newType)
      Set the newType.
      Parameters:
      newType - the newType
      Returns:
      the UpdateValueOptions builder
    • newSynonyms

      public UpdateValueOptions.Builder newSynonyms​(List<String> newSynonyms)
      Set the newSynonyms. Existing newSynonyms will be replaced.
      Parameters:
      newSynonyms - the newSynonyms
      Returns:
      the UpdateValueOptions builder
    • newPatterns

      public UpdateValueOptions.Builder newPatterns​(List<String> newPatterns)
      Set the newPatterns. Existing newPatterns will be replaced.
      Parameters:
      newPatterns - the newPatterns
      Returns:
      the UpdateValueOptions builder
    • append

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

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