Class QnAMakerClientImpl
- java.lang.Object
-
- com.microsoft.rest.ServiceClient
-
- com.microsoft.azure.AzureServiceClient
-
- com.microsoft.azure.cognitiveservices.knowledge.qnamaker.implementation.QnAMakerClientImpl
-
- All Implemented Interfaces:
QnAMakerClient
public class QnAMakerClientImpl extends com.microsoft.azure.AzureServiceClient implements QnAMakerClient
Initializes a new instance of the QnAMakerClientImpl class.
-
-
Constructor Summary
Constructors Constructor Description QnAMakerClientImpl(com.microsoft.rest.credentials.ServiceClientCredentials credentials)
Initializes an instance of QnAMakerClient client.QnAMakerClientImpl(com.microsoft.rest.RestClient restClient)
Initializes an instance of QnAMakerClient client.QnAMakerClientImpl(String baseUrl, com.microsoft.rest.credentials.ServiceClientCredentials credentials)
Initializes an instance of QnAMakerClient client.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
acceptLanguage()
Gets Gets or sets the preferred language for the response.Alterations
alterations()
Gets the Alterations object to access its operations.String
endpoint()
Gets Supported Cognitive Services endpoint (e.g., https://< qnamaker-resource-name >.api.cognitiveservices.azure.com).EndpointKeys
endpointKeys()
Gets the EndpointKeys object to access its operations.EndpointSettings
endpointSettings()
Gets the EndpointSettings object to access its operations.boolean
generateClientRequestId()
Gets When set to true a unique x-ms-client-request-id value is generated and included in each request.com.microsoft.azure.AzureClient
getAzureClient()
Gets theAzureClient
used for long running operations.protected void
initialize()
Knowledgebases
knowledgebases()
Gets the Knowledgebases object to access its operations.int
longRunningOperationRetryTimeout()
Gets Gets or sets the retry timeout in seconds for Long Running Operations.Operations
operations()
Gets the Operations object to access its operations.String
userAgent()
Gets the User-Agent header for the client.QnAMakerClientImpl
withAcceptLanguage(String acceptLanguage)
Sets Gets or sets the preferred language for the response.QnAMakerClientImpl
withEndpoint(String endpoint)
Sets Supported Cognitive Services endpoint (e.g., https://< qnamaker-resource-name >.api.cognitiveservices.azure.com).QnAMakerClientImpl
withGenerateClientRequestId(boolean generateClientRequestId)
Sets When set to true a unique x-ms-client-request-id value is generated and included in each request.QnAMakerClientImpl
withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout)
Sets Gets or sets the retry timeout in seconds for Long Running Operations.-
Methods inherited from class com.microsoft.rest.ServiceClient
httpClient, restClient, retrofit, serializerAdapter
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.microsoft.azure.cognitiveservices.knowledge.qnamaker.QnAMakerClient
restClient
-
-
-
-
Constructor Detail
-
QnAMakerClientImpl
public QnAMakerClientImpl(com.microsoft.rest.credentials.ServiceClientCredentials credentials)
Initializes an instance of QnAMakerClient client.- Parameters:
credentials
- the management credentials for Azure
-
QnAMakerClientImpl
public QnAMakerClientImpl(String baseUrl, com.microsoft.rest.credentials.ServiceClientCredentials credentials)
Initializes an instance of QnAMakerClient client.- Parameters:
baseUrl
- the base URL of the hostcredentials
- the management credentials for Azure
-
QnAMakerClientImpl
public QnAMakerClientImpl(com.microsoft.rest.RestClient restClient)
Initializes an instance of QnAMakerClient client.- Parameters:
restClient
- the REST client to connect to Azure.
-
-
Method Detail
-
getAzureClient
public com.microsoft.azure.AzureClient getAzureClient()
Gets theAzureClient
used for long running operations.- Specified by:
getAzureClient
in interfaceQnAMakerClient
- Returns:
- the azure client;
-
endpoint
public String endpoint()
Gets Supported Cognitive Services endpoint (e.g., https://< qnamaker-resource-name >.api.cognitiveservices.azure.com).- Specified by:
endpoint
in interfaceQnAMakerClient
- Returns:
- the endpoint value.
-
withEndpoint
public QnAMakerClientImpl withEndpoint(String endpoint)
Sets Supported Cognitive Services endpoint (e.g., https://< qnamaker-resource-name >.api.cognitiveservices.azure.com).- Specified by:
withEndpoint
in interfaceQnAMakerClient
- Parameters:
endpoint
- the endpoint value.- Returns:
- the service client itself
-
acceptLanguage
public String acceptLanguage()
Gets Gets or sets the preferred language for the response.- Specified by:
acceptLanguage
in interfaceQnAMakerClient
- Returns:
- the acceptLanguage value.
-
withAcceptLanguage
public QnAMakerClientImpl withAcceptLanguage(String acceptLanguage)
Sets Gets or sets the preferred language for the response.- Specified by:
withAcceptLanguage
in interfaceQnAMakerClient
- Parameters:
acceptLanguage
- the acceptLanguage value.- Returns:
- the service client itself
-
longRunningOperationRetryTimeout
public int longRunningOperationRetryTimeout()
Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.- Specified by:
longRunningOperationRetryTimeout
in interfaceQnAMakerClient
- Returns:
- the longRunningOperationRetryTimeout value.
-
withLongRunningOperationRetryTimeout
public QnAMakerClientImpl withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout)
Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.- Specified by:
withLongRunningOperationRetryTimeout
in interfaceQnAMakerClient
- Parameters:
longRunningOperationRetryTimeout
- the longRunningOperationRetryTimeout value.- Returns:
- the service client itself
-
generateClientRequestId
public boolean generateClientRequestId()
Gets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.- Specified by:
generateClientRequestId
in interfaceQnAMakerClient
- Returns:
- the generateClientRequestId value.
-
withGenerateClientRequestId
public QnAMakerClientImpl withGenerateClientRequestId(boolean generateClientRequestId)
Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.- Specified by:
withGenerateClientRequestId
in interfaceQnAMakerClient
- Parameters:
generateClientRequestId
- the generateClientRequestId value.- Returns:
- the service client itself
-
endpointSettings
public EndpointSettings endpointSettings()
Gets the EndpointSettings object to access its operations.- Specified by:
endpointSettings
in interfaceQnAMakerClient
- Returns:
- the EndpointSettings object.
-
endpointKeys
public EndpointKeys endpointKeys()
Gets the EndpointKeys object to access its operations.- Specified by:
endpointKeys
in interfaceQnAMakerClient
- Returns:
- the EndpointKeys object.
-
alterations
public Alterations alterations()
Gets the Alterations object to access its operations.- Specified by:
alterations
in interfaceQnAMakerClient
- Returns:
- the Alterations object.
-
knowledgebases
public Knowledgebases knowledgebases()
Gets the Knowledgebases object to access its operations.- Specified by:
knowledgebases
in interfaceQnAMakerClient
- Returns:
- the Knowledgebases object.
-
operations
public Operations operations()
Gets the Operations object to access its operations.- Specified by:
operations
in interfaceQnAMakerClient
- Returns:
- the Operations object.
-
initialize
protected void initialize()
-
userAgent
public String userAgent()
Gets the User-Agent header for the client.- Specified by:
userAgent
in interfaceQnAMakerClient
- Overrides:
userAgent
in classcom.microsoft.azure.AzureServiceClient
- Returns:
- the user agent string.
-
-