Class CreateEntityOptions.Builder

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

public static class CreateEntityOptions.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 CreateEntityOptions build()
      Builds a CreateEntityOptions.
      Returns:
      the new CreateEntityOptions instance
    • addValues

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

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

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

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

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

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

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

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