Class UpdateEntityOptions.Builder

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

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

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

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

    • build

      public UpdateEntityOptions build()
      Builds a UpdateEntityOptions.
      Returns:
      the new UpdateEntityOptions instance
    • addValue

      public UpdateEntityOptions.Builder addValue​(CreateValue value)
      Adds an value to newValues.
      Parameters:
      value - the new value
      Returns:
      the UpdateEntityOptions builder
    • workspaceId

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

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

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

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

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

      public UpdateEntityOptions.Builder newFuzzyMatch​(Boolean newFuzzyMatch)
      Set the newFuzzyMatch.
      Parameters:
      newFuzzyMatch - the newFuzzyMatch
      Returns:
      the UpdateEntityOptions builder
    • newValues

      public UpdateEntityOptions.Builder newValues​(List<CreateValue> newValues)
      Set the newValues. Existing newValues will be replaced.
      Parameters:
      newValues - the newValues
      Returns:
      the UpdateEntityOptions builder
    • append

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

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