Class ToneChatOptions.Builder

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

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

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

      public Builder​(List<Utterance> utterances)
      Instantiates a new builder with required properties.
      Parameters:
      utterances - the utterances
  • Method Details

    • build

      public ToneChatOptions build()
      Builds a ToneChatOptions.
      Returns:
      the new ToneChatOptions instance
    • addUtterances

      public ToneChatOptions.Builder addUtterances​(Utterance utterances)
      Adds an utterances to utterances.
      Parameters:
      utterances - the new utterances
      Returns:
      the ToneChatOptions builder
    • utterances

      public ToneChatOptions.Builder utterances​(List<Utterance> utterances)
      Set the utterances. Existing utterances will be replaced.
      Parameters:
      utterances - the utterances
      Returns:
      the ToneChatOptions builder
    • contentLanguage

      public ToneChatOptions.Builder contentLanguage​(String contentLanguage)
      Set the contentLanguage.
      Parameters:
      contentLanguage - the contentLanguage
      Returns:
      the ToneChatOptions builder
    • acceptLanguage

      public ToneChatOptions.Builder acceptLanguage​(String acceptLanguage)
      Set the acceptLanguage.
      Parameters:
      acceptLanguage - the acceptLanguage
      Returns:
      the ToneChatOptions builder