public class ToneAnalyzer
extends com.ibm.cloud.sdk.core.service.BaseService
| Constructor and Description |
|---|
ToneAnalyzer(java.lang.String versionDate)
Constructs a new `ToneAnalyzer` client using the DEFAULT_SERVICE_NAME.
|
ToneAnalyzer(java.lang.String versionDate,
com.ibm.cloud.sdk.core.security.Authenticator authenticator)
Constructs a new `ToneAnalyzer` client with the DEFAULT_SERVICE_NAME
and the specified Authenticator.
|
ToneAnalyzer(java.lang.String versionDate,
java.lang.String serviceName)
Constructs a new `ToneAnalyzer` client with the specified serviceName.
|
ToneAnalyzer(java.lang.String versionDate,
java.lang.String serviceName,
com.ibm.cloud.sdk.core.security.Authenticator authenticator)
Constructs a new `ToneAnalyzer` client with the specified Authenticator
and serviceName.
|
| Modifier and Type | Method and Description |
|---|---|
com.ibm.cloud.sdk.core.http.ServiceCall<ToneAnalysis> |
tone(ToneOptions toneOptions)
Analyze general tone.
|
com.ibm.cloud.sdk.core.http.ServiceCall<UtteranceAnalyses> |
toneChat(ToneChatOptions toneChatOptions)
Analyze customer-engagement tone.
|
configureClient, configureHttpClient, configureService, createServiceCall, getAuthenticator, getClient, getEndPoint, getName, getServiceUrl, isJsonMimeType, isJsonPatchMimeType, processServiceCall, setAuthentication, setClient, setDefaultHeaders, setDefaultHeaders, setEndPoint, setServiceUrl, toStringpublic 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,
com.ibm.cloud.sdk.core.security.Authenticator authenticator)
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.authenticator - the Authenticator instance to be configured for this servicepublic ToneAnalyzer(java.lang.String versionDate,
java.lang.String serviceName)
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.serviceName - The name of the service to configure.public ToneAnalyzer(java.lang.String versionDate,
java.lang.String serviceName,
com.ibm.cloud.sdk.core.security.Authenticator authenticator)
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.serviceName - The name of the service to configure.authenticator - the Authenticator instance to be configured for this servicepublic com.ibm.cloud.sdk.core.http.ServiceCall<ToneAnalysis> tone(ToneOptions toneOptions)
toneOptions - the ToneOptions containing the options for the callServiceCall with a response type of ToneAnalysispublic com.ibm.cloud.sdk.core.http.ServiceCall<UtteranceAnalyses> toneChat(ToneChatOptions toneChatOptions)
toneChatOptions - the ToneChatOptions containing the options for the callServiceCall with a response type of UtteranceAnalyses