Class Value.Builder
java.lang.Object
com.ibm.watson.assistant.v1.model.Value.Builder
- Enclosing class:
- Value
public static class Value.Builder extends Object
Builder.
- 
Constructor Summary
- 
Method SummaryModifier and Type Method Description Value.BuilderaddPattern(String pattern)Adds an pattern to patterns.Value.BuilderaddSynonym(String synonym)Adds an synonym to synonyms.Valuebuild()Builds a Value.Value.Buildermetadata(Map<String,Object> metadata)Set the metadata.Value.Builderpatterns(List<String> patterns)Set the patterns.Value.Buildersynonyms(List<String> synonyms)Set the synonyms.Value.Buildertype(String type)Set the type.Value.Buildervalue(String value)Set the value.
- 
Constructor Details- 
Builderpublic Builder()Instantiates a new builder.
- 
BuilderInstantiates a new builder with required properties.- Parameters:
- value- the value
- type- the type
 
 
- 
- 
Method Details- 
buildBuilds a Value.- Returns:
- the new Value instance
 
- 
addSynonymAdds an synonym to synonyms.- Parameters:
- synonym- the new synonym
- Returns:
- the Value builder
 
- 
addPatternAdds an pattern to patterns.- Parameters:
- pattern- the new pattern
- Returns:
- the Value builder
 
- 
valueSet the value.- Parameters:
- value- the value
- Returns:
- the Value builder
 
- 
metadataSet the metadata.- Parameters:
- metadata- the metadata
- Returns:
- the Value builder
 
- 
typeSet the type.- Parameters:
- type- the type
- Returns:
- the Value builder
 
- 
synonymsSet the synonyms. Existing synonyms will be replaced.- Parameters:
- synonyms- the synonyms
- Returns:
- the Value builder
 
- 
patternsSet the patterns. Existing patterns will be replaced.- Parameters:
- patterns- the patterns
- Returns:
- the Value builder
 
 
-