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