public class ToneAnalyzer extends WatsonService
defaultHeaders, MESSAGE_CODE, MESSAGE_ERROR, skipAuthentication, VERSION
Constructor and Description |
---|
ToneAnalyzer(java.lang.String versionDate)
Instantiates a new `ToneAnalyzer`.
|
ToneAnalyzer(java.lang.String versionDate,
IamOptions iamOptions)
Instantiates a new `ToneAnalyzer` with IAM.
|
ToneAnalyzer(java.lang.String versionDate,
java.lang.String username,
java.lang.String password)
Instantiates a new `ToneAnalyzer` with username and password.
|
Modifier and Type | Method and Description |
---|---|
ServiceCall<ToneAnalysis> |
tone(ToneOptions toneOptions)
Analyze general tone.
|
ServiceCall<UtteranceAnalyses> |
toneChat(ToneChatOptions toneChatOptions)
Analyze customer engagement tone.
|
configureHttpClient, createServiceCall, getApiKey, getEndPoint, getName, getPassword, getToken, getUsername, isTokenManagerSet, processServiceCall, setApiKey, setAuthentication, setDefaultHeaders, setDefaultHeaders, setEndPoint, setIamCredentials, setSkipAuthentication, setUsernameAndPassword, toString
public ToneAnalyzer(java.lang.String versionDate)
versionDate
- The version date (yyyy-MM-dd) of the REST API to use. Specifying this value will keep your API
calls from failing when the service introduces breaking changes.public ToneAnalyzer(java.lang.String versionDate, java.lang.String username, java.lang.String password)
versionDate
- The version date (yyyy-MM-dd) of the REST API to use. Specifying this value will keep your API
calls from failing when the service introduces breaking changes.username
- the usernamepassword
- the passwordpublic ToneAnalyzer(java.lang.String versionDate, IamOptions iamOptions)
versionDate
- The version date (yyyy-MM-dd) of the REST API to use. Specifying this value will keep your API
calls from failing when the service introduces breaking changes.iamOptions
- the options for authenticating through IAMpublic ServiceCall<ToneAnalysis> tone(ToneOptions toneOptions)
toneOptions
- the ToneOptions
containing the options for the callServiceCall
with a response type of ToneAnalysis
public ServiceCall<UtteranceAnalyses> toneChat(ToneChatOptions toneChatOptions)
toneChatOptions
- the ToneChatOptions
containing the options for the callServiceCall
with a response type of UtteranceAnalyses