public class ToneChatOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
| Modifier and Type | Class and Description | 
|---|---|
static interface  | 
ToneChatOptions.AcceptLanguage
The desired language of the response. 
 | 
static class  | 
ToneChatOptions.Builder
Builder. 
 | 
static interface  | 
ToneChatOptions.ContentLanguage
The language of the input text for the request: English or French. 
 | 
| Modifier and Type | Field and Description | 
|---|---|
protected java.lang.String | 
acceptLanguage  | 
protected java.lang.String | 
contentLanguage  | 
protected java.util.List<Utterance> | 
utterances  | 
| Modifier | Constructor and Description | 
|---|---|
protected  | 
ToneChatOptions(ToneChatOptions.Builder builder)  | 
| Modifier and Type | Method and Description | 
|---|---|
java.lang.String | 
acceptLanguage()
Gets the acceptLanguage. 
 | 
java.lang.String | 
contentLanguage()
Gets the contentLanguage. 
 | 
ToneChatOptions.Builder | 
newBuilder()
New builder. 
 | 
java.util.List<Utterance> | 
utterances()
Gets the utterances. 
 | 
protected java.util.List<Utterance> utterances
protected java.lang.String contentLanguage
protected java.lang.String acceptLanguage
protected ToneChatOptions(ToneChatOptions.Builder builder)
public ToneChatOptions.Builder newBuilder()
public java.util.List<Utterance> utterances()
An array of `Utterance` objects that provides the input content that the service is to analyze.
public java.lang.String contentLanguage()
The language of the input text for the request: English or French. Regional variants are treated as their parent language; for example, `en-US` is interpreted as `en`. The input content must match the specified language. Do not submit content that contains both languages. You can use different languages for **Content-Language** and **Accept-Language**. * **`2017-09-21`:** Accepts `en` or `fr`. * **`2016-05-19`:** Accepts only `en`.
public java.lang.String acceptLanguage()
The desired language of the response. For two-character arguments, regional variants are treated as their parent language; for example, `en-US` is interpreted as `en`. You can use different languages for **Content-Language** and **Accept-Language**.