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 StringacceptLanguage()Gets Gets or sets the preferred language for the response.Alterationsalterations()Gets the Alterations object to access its operations.Stringendpoint()Gets Supported Cognitive Services endpoint (e.g., https://< qnamaker-resource-name >.api.cognitiveservices.azure.com).EndpointKeysendpointKeys()Gets the EndpointKeys object to access its operations.EndpointSettingsendpointSettings()Gets the EndpointSettings object to access its operations.booleangenerateClientRequestId()Gets When set to true a unique x-ms-client-request-id value is generated and included in each request.com.microsoft.azure.AzureClientgetAzureClient()Gets theAzureClientused for long running operations.protected voidinitialize()Knowledgebasesknowledgebases()Gets the Knowledgebases object to access its operations.intlongRunningOperationRetryTimeout()Gets Gets or sets the retry timeout in seconds for Long Running Operations.Operationsoperations()Gets the Operations object to access its operations.StringuserAgent()Gets the User-Agent header for the client.QnAMakerClientImplwithAcceptLanguage(String acceptLanguage)Sets Gets or sets the preferred language for the response.QnAMakerClientImplwithEndpoint(String endpoint)Sets Supported Cognitive Services endpoint (e.g., https://< qnamaker-resource-name >.api.cognitiveservices.azure.com).QnAMakerClientImplwithGenerateClientRequestId(boolean generateClientRequestId)Sets When set to true a unique x-ms-client-request-id value is generated and included in each request.QnAMakerClientImplwithLongRunningOperationRetryTimeout(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 theAzureClientused for long running operations.- Specified by:
getAzureClientin 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:
endpointin 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:
withEndpointin 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:
acceptLanguagein interfaceQnAMakerClient- Returns:
- the acceptLanguage value.
-
withAcceptLanguage
public QnAMakerClientImpl withAcceptLanguage(String acceptLanguage)
Sets Gets or sets the preferred language for the response.- Specified by:
withAcceptLanguagein 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:
longRunningOperationRetryTimeoutin 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:
withLongRunningOperationRetryTimeoutin 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:
generateClientRequestIdin 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:
withGenerateClientRequestIdin 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:
endpointSettingsin interfaceQnAMakerClient- Returns:
- the EndpointSettings object.
-
endpointKeys
public EndpointKeys endpointKeys()
Gets the EndpointKeys object to access its operations.- Specified by:
endpointKeysin interfaceQnAMakerClient- Returns:
- the EndpointKeys object.
-
alterations
public Alterations alterations()
Gets the Alterations object to access its operations.- Specified by:
alterationsin interfaceQnAMakerClient- Returns:
- the Alterations object.
-
knowledgebases
public Knowledgebases knowledgebases()
Gets the Knowledgebases object to access its operations.- Specified by:
knowledgebasesin interfaceQnAMakerClient- Returns:
- the Knowledgebases object.
-
operations
public Operations operations()
Gets the Operations object to access its operations.- Specified by:
operationsin interfaceQnAMakerClient- Returns:
- the Operations object.
-
initialize
protected void initialize()
-
userAgent
public String userAgent()
Gets the User-Agent header for the client.- Specified by:
userAgentin interfaceQnAMakerClient- Overrides:
userAgentin classcom.microsoft.azure.AzureServiceClient- Returns:
- the user agent string.
-
-