Class Conversions.Builder

java.lang.Object
com.ibm.watson.discovery.v1.model.Conversions.Builder
Enclosing class:
Conversions

public static class Conversions.Builder
extends Object
Builder.
  • Constructor Details

    • Builder

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

    • build

      public Conversions build()
      Builds a Conversions.
      Returns:
      the new Conversions instance
    • addNormalization

      public Conversions.Builder addNormalization​(NormalizationOperation normalization)
      Adds an normalization to jsonNormalizations.
      Parameters:
      normalization - the new normalization
      Returns:
      the Conversions builder
    • pdf

      public Conversions.Builder pdf​(PdfSettings pdf)
      Set the pdf.
      Parameters:
      pdf - the pdf
      Returns:
      the Conversions builder
    • word

      public Conversions.Builder word​(WordSettings word)
      Set the word.
      Parameters:
      word - the word
      Returns:
      the Conversions builder
    • html

      public Conversions.Builder html​(HtmlSettings html)
      Set the html.
      Parameters:
      html - the html
      Returns:
      the Conversions builder
    • segment

      public Conversions.Builder segment​(SegmentSettings segment)
      Set the segment.
      Parameters:
      segment - the segment
      Returns:
      the Conversions builder
    • jsonNormalizations

      public Conversions.Builder jsonNormalizations​(List<NormalizationOperation> jsonNormalizations)
      Set the jsonNormalizations. Existing jsonNormalizations will be replaced.
      Parameters:
      jsonNormalizations - the jsonNormalizations
      Returns:
      the Conversions builder
    • imageTextRecognition

      public Conversions.Builder imageTextRecognition​(Boolean imageTextRecognition)
      Set the imageTextRecognition.
      Parameters:
      imageTextRecognition - the imageTextRecognition
      Returns:
      the Conversions builder