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