public class UpdateValueOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static class |
UpdateValueOptions.Builder
Builder.
|
static interface |
UpdateValueOptions.NewType
Specifies the type of entity value.
|
Modifier and Type | Method and Description |
---|---|
Boolean |
append()
Gets the append.
|
String |
entity()
Gets the entity.
|
Boolean |
includeAudit()
Gets the includeAudit.
|
UpdateValueOptions.Builder |
newBuilder()
New builder.
|
Map<String,Object> |
newMetadata()
Gets the newMetadata.
|
List<String> |
newPatterns()
Gets the newPatterns.
|
List<String> |
newSynonyms()
Gets the newSynonyms.
|
String |
newType()
Gets the newType.
|
String |
newValue()
Gets the newValue.
|
String |
value()
Gets the value.
|
String |
workspaceId()
Gets the workspaceId.
|
public UpdateValueOptions.Builder newBuilder()
public String workspaceId()
Unique identifier of the workspace.
public String entity()
The name of the entity.
public String value()
The text of the entity value.
public String newValue()
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.
public Map<String,Object> newMetadata()
Any metadata related to the entity value.
public String newType()
Specifies the type of entity value.
public List<String> newSynonyms()
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.
public List<String> newPatterns()
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).
public Boolean append()
Whether the new data is to be appended to the existing data in the entity value. If **append**=`false`, elements included in the new data completely replace the corresponding existing elements, including all subelements. For example, if the new data for the entity value includes **synonyms** and **append**=`false`, all existing synonyms for the entity value are discarded and replaced with the new synonyms.
If **append**=`true`, existing elements are preserved, and the new elements are added. If any elements in the new data collide with existing elements, the update request fails.
public Boolean includeAudit()
Whether to include the audit properties (`created` and `updated` timestamps) in the response.
Copyright © 2024 IBM Cloud. All rights reserved.