public static class Value.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(java.lang.String value,
java.lang.String valueType)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
Value.Builder |
addPattern(java.lang.String pattern)
Adds an pattern to patterns.
|
Value.Builder |
addSynonym(java.lang.String synonym)
Adds an synonym to synonyms.
|
Value |
build()
Builds a Value.
|
Value.Builder |
created(java.util.Date created)
Set the created.
|
Value.Builder |
metadata(java.util.Map metadata)
Set the metadata.
|
Value.Builder |
patterns(java.util.List<java.lang.String> patterns)
Set the patterns.
|
Value.Builder |
synonyms(java.util.List<java.lang.String> synonyms)
Set the synonyms.
|
Value.Builder |
updated(java.util.Date updated)
Set the updated.
|
Value.Builder |
value(java.lang.String value)
Set the value.
|
Value.Builder |
valueType(java.lang.String valueType)
Set the valueType.
|
public Builder()
public Builder(java.lang.String value, java.lang.String valueType)
value
- the valuevalueType
- the valueTypepublic Value build()
public Value.Builder addSynonym(java.lang.String synonym)
synonym
- the new synonympublic Value.Builder addPattern(java.lang.String pattern)
pattern
- the new patternpublic Value.Builder value(java.lang.String value)
value
- the valuepublic Value.Builder metadata(java.util.Map metadata)
metadata
- the metadatapublic Value.Builder valueType(java.lang.String valueType)
valueType
- the valueTypepublic Value.Builder synonyms(java.util.List<java.lang.String> synonyms)
synonyms
- the synonymspublic Value.Builder patterns(java.util.List<java.lang.String> patterns)
patterns
- the patternspublic Value.Builder created(java.util.Date created)
created
- the createdpublic Value.Builder updated(java.util.Date updated)
updated
- the updated