Class WordStyle.Builder
java.lang.Object
com.ibm.watson.discovery.v1.model.WordStyle.Builder
- Enclosing class:
- WordStyle
public static class WordStyle.Builder extends Object
Builder.
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder. -
Method Summary
Modifier and Type Method Description WordStyle.Builder
addNames(String names)
Adds an names to names.WordStyle
build()
Builds a WordStyle.WordStyle.Builder
level(long level)
Set the level.WordStyle.Builder
names(List<String> names)
Set the names.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder.
-
-
Method Details
-
build
Builds a WordStyle.- Returns:
- the new WordStyle instance
-
addNames
Adds an names to names.- Parameters:
names
- the new names- Returns:
- the WordStyle builder
-
level
Set the level.- Parameters:
level
- the level- Returns:
- the WordStyle builder
-
names
Set the names. Existing names will be replaced.- Parameters:
names
- the names- Returns:
- the WordStyle builder
-