Class ToneInput.Builder

java.lang.Object
com.ibm.watson.tone_analyzer.v3.model.ToneInput.Builder
Enclosing class:
ToneInput

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

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

      public Builder​(String text)
      Instantiates a new builder with required properties.
      Parameters:
      text - the text
  • Method Details

    • build

      public ToneInput build()
      Builds a ToneInput.
      Returns:
      the new ToneInput instance
    • text

      public ToneInput.Builder text​(String text)
      Set the text.
      Parameters:
      text - the text
      Returns:
      the ToneInput builder