public static class CreateValueOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
CreateValueOptions.Builder()
Instantiates a new builder.
|
CreateValueOptions.Builder(java.lang.String workspaceId,
java.lang.String entity,
java.lang.String value)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
CreateValueOptions.Builder |
addPattern(java.lang.String pattern)
Adds an pattern to patterns.
|
CreateValueOptions.Builder |
addSynonym(java.lang.String synonym)
Adds an synonym to synonyms.
|
CreateValueOptions |
build()
Builds a CreateValueOptions.
|
CreateValueOptions.Builder |
entity(java.lang.String entity)
Set the entity.
|
CreateValueOptions.Builder |
metadata(java.util.Map metadata)
Set the metadata.
|
CreateValueOptions.Builder |
patterns(java.util.List<java.lang.String> patterns)
Set the patterns.
|
CreateValueOptions.Builder |
synonyms(java.util.List<java.lang.String> synonyms)
Set the synonyms.
|
CreateValueOptions.Builder |
value(java.lang.String value)
Set the value.
|
CreateValueOptions.Builder |
valueType(java.lang.String valueType)
Set the valueType.
|
CreateValueOptions.Builder |
workspaceId(java.lang.String workspaceId)
Set the workspaceId.
|
public CreateValueOptions.Builder()
public CreateValueOptions.Builder(java.lang.String workspaceId, java.lang.String entity, java.lang.String value)
workspaceId
- the workspaceIdentity
- the entityvalue
- the valuepublic CreateValueOptions build()
public CreateValueOptions.Builder addSynonym(java.lang.String synonym)
synonym
- the new synonympublic CreateValueOptions.Builder addPattern(java.lang.String pattern)
pattern
- the new patternpublic CreateValueOptions.Builder workspaceId(java.lang.String workspaceId)
workspaceId
- the workspaceIdpublic CreateValueOptions.Builder entity(java.lang.String entity)
entity
- the entitypublic CreateValueOptions.Builder value(java.lang.String value)
value
- the valuepublic CreateValueOptions.Builder metadata(java.util.Map metadata)
metadata
- the metadatapublic CreateValueOptions.Builder synonyms(java.util.List<java.lang.String> synonyms)
synonyms
- the synonymspublic CreateValueOptions.Builder patterns(java.util.List<java.lang.String> patterns)
patterns
- the patternspublic CreateValueOptions.Builder valueType(java.lang.String valueType)
valueType
- the valueType