public class CreateValueOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static class |
CreateValueOptions.Builder
Builder.
|
static interface |
CreateValueOptions.Type
Specifies the type of entity value.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
entity |
protected java.lang.Boolean |
includeAudit |
protected java.util.Map<java.lang.String,java.lang.Object> |
metadata |
protected java.util.List<java.lang.String> |
patterns |
protected java.util.List<java.lang.String> |
synonyms |
protected java.lang.String |
type |
protected java.lang.String |
value |
protected java.lang.String |
workspaceId |
Modifier | Constructor and Description |
---|---|
protected |
CreateValueOptions(CreateValueOptions.Builder builder) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
entity()
Gets the entity.
|
java.lang.Boolean |
includeAudit()
Gets the includeAudit.
|
java.util.Map<java.lang.String,java.lang.Object> |
metadata()
Gets the metadata.
|
CreateValueOptions.Builder |
newBuilder()
New builder.
|
java.util.List<java.lang.String> |
patterns()
Gets the patterns.
|
java.util.List<java.lang.String> |
synonyms()
Gets the synonyms.
|
java.lang.String |
type()
Gets the type.
|
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.util.Map<java.lang.String,java.lang.Object> metadata
protected java.lang.String type
protected java.util.List<java.lang.String> synonyms
protected java.util.List<java.lang.String> patterns
protected java.lang.Boolean includeAudit
protected CreateValueOptions(CreateValueOptions.Builder builder)
public CreateValueOptions.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. 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> metadata()
Any metadata related to the entity value.
public java.lang.String type()
Specifies the type of entity value.
public java.util.List<java.lang.String> 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.
public java.util.List<java.lang.String> 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).
public java.lang.Boolean includeAudit()
Whether to include the audit properties (`created` and `updated` timestamps) in the response.