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 | Field and Description |
---|---|
protected java.lang.Boolean |
append |
protected java.lang.String |
entity |
protected java.lang.Boolean |
includeAudit |
protected java.util.Map<java.lang.String,java.lang.Object> |
newMetadata |
protected java.util.List<java.lang.String> |
newPatterns |
protected java.util.List<java.lang.String> |
newSynonyms |
protected java.lang.String |
newType |
protected java.lang.String |
newValue |
protected java.lang.String |
value |
protected java.lang.String |
workspaceId |
Modifier | Constructor and Description |
---|---|
protected |
UpdateValueOptions(UpdateValueOptions.Builder builder) |
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
append()
Gets the append.
|
java.lang.String |
entity()
Gets the entity.
|
java.lang.Boolean |
includeAudit()
Gets the includeAudit.
|
UpdateValueOptions.Builder |
newBuilder()
New builder.
|
java.util.Map<java.lang.String,java.lang.Object> |
newMetadata()
Gets the newMetadata.
|
java.util.List<java.lang.String> |
newPatterns()
Gets the newPatterns.
|
java.util.List<java.lang.String> |
newSynonyms()
Gets the newSynonyms.
|
java.lang.String |
newType()
Gets the newType.
|
java.lang.String |
newValue()
Gets the newValue.
|
java.lang.String |
value()
Gets the value.
|
java.lang.String |
workspaceId()
Gets the workspaceId.
|
protected java.lang.String workspaceId
protected java.lang.String entity
protected java.lang.String value
protected java.lang.String newValue
protected java.util.Map<java.lang.String,java.lang.Object> newMetadata
protected java.lang.String newType
protected java.util.List<java.lang.String> newSynonyms
protected java.util.List<java.lang.String> newPatterns
protected java.lang.Boolean append
protected java.lang.Boolean includeAudit
protected UpdateValueOptions(UpdateValueOptions.Builder builder)
public UpdateValueOptions.Builder newBuilder()
public java.lang.String workspaceId()
Unique identifier of the workspace.
public java.lang.String entity()
The name of the entity.
public java.lang.String value()
The text of the entity value.
public java.lang.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 java.util.Map<java.lang.String,java.lang.Object> newMetadata()
Any metadata related to the entity value.
public java.lang.String newType()
Specifies the type of entity value.
public java.util.List<java.lang.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 java.util.List<java.lang.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 java.lang.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 java.lang.Boolean includeAudit()
Whether to include the audit properties (`created` and `updated` timestamps) in the response.