Class CreateEntity.Builder

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

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

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

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

    • build

      public CreateEntity build()
      Builds a CreateEntity.
      Returns:
      the new CreateEntity instance
    • addValues

      public CreateEntity.Builder addValues​(CreateValue values)
      Adds an values to values.
      Parameters:
      values - the new values
      Returns:
      the CreateEntity builder
    • entity

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

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

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

      public CreateEntity.Builder fuzzyMatch​(Boolean fuzzyMatch)
      Set the fuzzyMatch.
      Parameters:
      fuzzyMatch - the fuzzyMatch
      Returns:
      the CreateEntity builder
    • values

      public CreateEntity.Builder values​(List<CreateValue> values)
      Set the values. Existing values will be replaced.
      Parameters:
      values - the values
      Returns:
      the CreateEntity builder