Class CreateValueOptions.Builder

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

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

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

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

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

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

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

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

      public CreateValueOptions.Builder type​(String type)
      Set the type.
      Parameters:
      type - the type
      Returns:
      the CreateValueOptions builder
    • synonyms

      public CreateValueOptions.Builder synonyms​(List<String> synonyms)
      Set the synonyms. Existing synonyms will be replaced.
      Parameters:
      synonyms - the synonyms
      Returns:
      the CreateValueOptions builder
    • patterns

      public CreateValueOptions.Builder patterns​(List<String> patterns)
      Set the patterns. Existing patterns will be replaced.
      Parameters:
      patterns - the patterns
      Returns:
      the CreateValueOptions builder
    • includeAudit

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