public class ToneOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static interface |
ToneOptions.AcceptLanguage
The desired language of the response.
|
static class |
ToneOptions.Builder
Builder.
|
static interface |
ToneOptions.ContentLanguage
The language of the input text for the request: English or French.
|
static interface |
ToneOptions.Tone |
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
acceptLanguage |
protected java.lang.String |
body |
protected java.lang.String |
contentLanguage |
protected java.lang.String |
contentType |
protected java.lang.Boolean |
sentences |
protected ToneInput |
toneInput |
protected java.util.List<java.lang.String> |
tones |
Modifier | Constructor and Description |
---|---|
protected |
ToneOptions(ToneOptions.Builder builder) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
acceptLanguage()
Gets the acceptLanguage.
|
java.lang.String |
body()
Gets the body.
|
java.lang.String |
contentLanguage()
Gets the contentLanguage.
|
java.lang.String |
contentType()
Gets the contentType.
|
ToneOptions.Builder |
newBuilder()
New builder.
|
java.lang.Boolean |
sentences()
Gets the sentences.
|
ToneInput |
toneInput()
Gets the toneInput.
|
java.util.List<java.lang.String> |
tones()
Gets the tones.
|
protected ToneInput toneInput
protected java.lang.String body
protected java.lang.String contentType
protected java.lang.Boolean sentences
protected java.util.List<java.lang.String> tones
protected java.lang.String contentLanguage
protected java.lang.String acceptLanguage
protected ToneOptions(ToneOptions.Builder builder)
public ToneOptions.Builder newBuilder()
public ToneInput toneInput()
public java.lang.String body()
public java.lang.String contentType()
public java.lang.Boolean sentences()
public java.util.List<java.lang.String> tones()
public java.lang.String contentLanguage()
public java.lang.String acceptLanguage()