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 Details

    • Builder

      public Builder()
      Instantiates a new builder.
  • Method Details

    • build

      public WordHeadingDetection build()
      Builds a WordHeadingDetection.
      Returns:
      the new WordHeadingDetection instance
    • addFontSetting

      public WordHeadingDetection.Builder addFontSetting​(FontSetting fontSetting)
      Adds an fontSetting to fonts.
      Parameters:
      fontSetting - the new fontSetting
      Returns:
      the WordHeadingDetection builder
    • addWordStyle

      public WordHeadingDetection.Builder addWordStyle​(WordStyle wordStyle)
      Adds an wordStyle to styles.
      Parameters:
      wordStyle - the new wordStyle
      Returns:
      the WordHeadingDetection builder
    • fonts

      public WordHeadingDetection.Builder fonts​(List<FontSetting> fonts)
      Set the fonts. Existing fonts will be replaced.
      Parameters:
      fonts - the fonts
      Returns:
      the WordHeadingDetection builder
    • styles

      public WordHeadingDetection.Builder styles​(List<WordStyle> styles)
      Set the styles. Existing styles will be replaced.
      Parameters:
      styles - the styles
      Returns:
      the WordHeadingDetection builder