public static class CreateValue.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
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 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 |
updated(java.util.Date updated)
Set the updated.
|
CreateValue.Builder |
value(java.lang.String value)
Set the value.
|
CreateValue.Builder |
valueType(java.lang.String valueType)
Set the valueType.
|
public Builder()
public 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 valueType(java.lang.String valueType)
valueType
- the valueTypepublic 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