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 |
created(java.util.Date created)
Set the created.
|
CreateValue.Builder |
metadata(java.util.Map<java.lang.String,java.lang.Object> 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 |
type(java.lang.String type)
Set the type.
|
CreateValue.Builder |
updated(java.util.Date updated)
Set the updated.
|
CreateValue.Builder |
value(java.lang.String value)
Set the value.
|
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<java.lang.String,java.lang.Object> metadata)
metadata
- the metadatapublic CreateValue.Builder type(java.lang.String type)
type
- the typepublic 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 created(java.util.Date created)
created
- the createdpublic CreateValue.Builder updated(java.util.Date updated)
updated
- the updated