Class CreateValueOptions

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.assistant.v1.model.CreateValueOptions
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

public class CreateValueOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
The createValue options.
  • Method Details

    • newBuilder

      public CreateValueOptions.Builder newBuilder()
      New builder.
      Returns:
      a CreateValueOptions builder
    • workspaceId

      public String workspaceId()
      Gets the workspaceId.

      Unique identifier of the workspace.

      Returns:
      the workspaceId
    • entity

      public String entity()
      Gets the entity.

      The name of the entity.

      Returns:
      the entity
    • value

      public String value()
      Gets the value.

      The text of the entity value. This string must conform to the following restrictions: - It cannot contain carriage return, newline, or tab characters. - It cannot consist of only whitespace characters.

      Returns:
      the value
    • metadata

      public Map<String,​Object> metadata()
      Gets the metadata.

      Any metadata related to the entity value.

      Returns:
      the metadata
    • type

      public String type()
      Gets the type.

      Specifies the type of entity value.

      Returns:
      the type
    • synonyms

      public List<String> synonyms()
      Gets the synonyms.

      An array of synonyms for the entity value. A value can specify either synonyms or patterns (depending on the value type), but not both. A synonym must conform to the following resrictions: - It cannot contain carriage return, newline, or tab characters. - It cannot consist of only whitespace characters.

      Returns:
      the synonyms
    • patterns

      public List<String> patterns()
      Gets the patterns.

      An array of patterns for the entity value. A value can specify either synonyms or patterns (depending on the value type), but not both. A pattern is a regular expression; for more information about how to specify a pattern, see the [documentation](https://cloud.ibm.com/docs/assistant?topic=assistant-entities#entities-create-dictionary-based).

      Returns:
      the patterns
    • includeAudit

      public Boolean includeAudit()
      Gets the includeAudit.

      Whether to include the audit properties (`created` and `updated` timestamps) in the response.

      Returns:
      the includeAudit