public static class CreateValueOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
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 |
createValue(CreateValue createValue)
Set the createValue.
|
CreateValueOptions.Builder |
entity(java.lang.String entity)
Set the entity.
|
CreateValueOptions.Builder |
metadata(java.util.Map<java.lang.String,java.lang.Object> 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 Builder()
public 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<java.lang.String,java.lang.Object> metadata)
metadata
- the metadatapublic CreateValueOptions.Builder valueType(java.lang.String valueType)
valueType
- the valueTypepublic 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 createValue(CreateValue createValue)
createValue
- the createValue