Class ToneOptions.Builder
java.lang.Object
com.ibm.watson.tone_analyzer.v3.model.ToneOptions.Builder
- Enclosing class:
- ToneOptions
public static class ToneOptions.Builder extends Object
Builder.
- 
Constructor SummaryConstructors Constructor Description Builder()Instantiates a new builder.
- 
Method SummaryModifier and Type Method Description ToneOptions.BuilderacceptLanguage(String acceptLanguage)Set the acceptLanguage.ToneOptions.BuilderaddTone(String tone)Adds an tone to tones.ToneOptionsbuild()Builds a ToneOptions.ToneOptions.BuildercontentLanguage(String contentLanguage)Set the contentLanguage.ToneOptions.Builderhtml(String html)Set the html.ToneOptions.Buildersentences(Boolean sentences)Set the sentences.ToneOptions.Buildertext(String text)Set the text.ToneOptions.BuildertoneInput(ToneInput toneInput)Set the toneInput.ToneOptions.Buildertones(List<String> tones)Set the tones.
- 
Constructor Details- 
Builderpublic Builder()Instantiates a new builder.
 
- 
- 
Method Details- 
buildBuilds a ToneOptions.- Returns:
- the new ToneOptions instance
 
- 
addToneAdds an tone to tones.- Parameters:
- tone- the new tone
- Returns:
- the ToneOptions builder
 
- 
sentencesSet the sentences.- Parameters:
- sentences- the sentences
- Returns:
- the ToneOptions builder
 
- 
tonesSet the tones. Existing tones will be replaced.- Parameters:
- tones- the tones
- Returns:
- the ToneOptions builder
 
- 
contentLanguageSet the contentLanguage.- Parameters:
- contentLanguage- the contentLanguage
- Returns:
- the ToneOptions builder
 
- 
acceptLanguageSet the acceptLanguage.- Parameters:
- acceptLanguage- the acceptLanguage
- Returns:
- the ToneOptions builder
 
- 
toneInputSet the toneInput.- Parameters:
- toneInput- the toneInput
- Returns:
- the ToneOptions builder
 
- 
textSet the text.- Parameters:
- text- the text
- Returns:
- the ToneOptions builder
 
- 
htmlSet the html.- Parameters:
- html- the html
- Returns:
- the ToneOptions builder
 
 
-