Class LUISAuthoringClientImpl
- java.lang.Object
-
- com.microsoft.rest.ServiceClient
-
- com.microsoft.azure.AzureServiceClient
-
- com.microsoft.azure.cognitiveservices.language.luis.authoring.implementation.LUISAuthoringClientImpl
-
- All Implemented Interfaces:
LUISAuthoringClient
public class LUISAuthoringClientImpl extends com.microsoft.azure.AzureServiceClient implements LUISAuthoringClient
Initializes a new instance of the LUISAuthoringClientImpl class.
-
-
Constructor Summary
Constructors Constructor Description LUISAuthoringClientImpl(com.microsoft.rest.credentials.ServiceClientCredentials credentials)
Initializes an instance of LUISAuthoringClient client.LUISAuthoringClientImpl(com.microsoft.rest.RestClient restClient)
Initializes an instance of LUISAuthoringClient client.LUISAuthoringClientImpl(String baseUrl, com.microsoft.rest.credentials.ServiceClientCredentials credentials)
Initializes an instance of LUISAuthoringClient 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.Apps
apps()
Gets the Apps object to access its operations.AzureAccounts
azureAccounts()
Gets the AzureAccounts object to access its operations.String
endpoint()
Gets Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com).Examples
examples()
Gets the Examples object to access its operations.Features
features()
Gets the Features 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()
int
longRunningOperationRetryTimeout()
Gets Gets or sets the retry timeout in seconds for Long Running Operations.Models
models()
Gets the Models object to access its operations.Patterns
patterns()
Gets the Patterns object to access its operations.Settings
settings()
Gets the Settings object to access its operations.Trains
trains()
Gets the Trains object to access its operations.String
userAgent()
Gets the User-Agent header for the client.Versions
versions()
Gets the Versions object to access its operations.LUISAuthoringClientImpl
withAcceptLanguage(String acceptLanguage)
Sets Gets or sets the preferred language for the response.LUISAuthoringClientImpl
withEndpoint(String endpoint)
Sets Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com).LUISAuthoringClientImpl
withGenerateClientRequestId(boolean generateClientRequestId)
Sets When set to true a unique x-ms-client-request-id value is generated and included in each request.LUISAuthoringClientImpl
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.language.luis.authoring.LUISAuthoringClient
restClient
-
-
-
-
Constructor Detail
-
LUISAuthoringClientImpl
public LUISAuthoringClientImpl(com.microsoft.rest.credentials.ServiceClientCredentials credentials)
Initializes an instance of LUISAuthoringClient client.- Parameters:
credentials
- the management credentials for Azure
-
LUISAuthoringClientImpl
public LUISAuthoringClientImpl(String baseUrl, com.microsoft.rest.credentials.ServiceClientCredentials credentials)
Initializes an instance of LUISAuthoringClient client.- Parameters:
baseUrl
- the base URL of the hostcredentials
- the management credentials for Azure
-
LUISAuthoringClientImpl
public LUISAuthoringClientImpl(com.microsoft.rest.RestClient restClient)
Initializes an instance of LUISAuthoringClient 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 interfaceLUISAuthoringClient
- Returns:
- the azure client;
-
endpoint
public String endpoint()
Gets Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com).- Specified by:
endpoint
in interfaceLUISAuthoringClient
- Returns:
- the endpoint value.
-
withEndpoint
public LUISAuthoringClientImpl withEndpoint(String endpoint)
Sets Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com).- Specified by:
withEndpoint
in interfaceLUISAuthoringClient
- 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 interfaceLUISAuthoringClient
- Returns:
- the acceptLanguage value.
-
withAcceptLanguage
public LUISAuthoringClientImpl withAcceptLanguage(String acceptLanguage)
Sets Gets or sets the preferred language for the response.- Specified by:
withAcceptLanguage
in interfaceLUISAuthoringClient
- 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 interfaceLUISAuthoringClient
- Returns:
- the longRunningOperationRetryTimeout value.
-
withLongRunningOperationRetryTimeout
public LUISAuthoringClientImpl withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout)
Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.- Specified by:
withLongRunningOperationRetryTimeout
in interfaceLUISAuthoringClient
- 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 interfaceLUISAuthoringClient
- Returns:
- the generateClientRequestId value.
-
withGenerateClientRequestId
public LUISAuthoringClientImpl 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 interfaceLUISAuthoringClient
- Parameters:
generateClientRequestId
- the generateClientRequestId value.- Returns:
- the service client itself
-
features
public Features features()
Gets the Features object to access its operations.- Specified by:
features
in interfaceLUISAuthoringClient
- Returns:
- the Features object.
-
examples
public Examples examples()
Gets the Examples object to access its operations.- Specified by:
examples
in interfaceLUISAuthoringClient
- Returns:
- the Examples object.
-
models
public Models models()
Gets the Models object to access its operations.- Specified by:
models
in interfaceLUISAuthoringClient
- Returns:
- the Models object.
-
apps
public Apps apps()
Gets the Apps object to access its operations.- Specified by:
apps
in interfaceLUISAuthoringClient
- Returns:
- the Apps object.
-
versions
public Versions versions()
Gets the Versions object to access its operations.- Specified by:
versions
in interfaceLUISAuthoringClient
- Returns:
- the Versions object.
-
trains
public Trains trains()
Gets the Trains object to access its operations.- Specified by:
trains
in interfaceLUISAuthoringClient
- Returns:
- the Trains object.
-
patterns
public Patterns patterns()
Gets the Patterns object to access its operations.- Specified by:
patterns
in interfaceLUISAuthoringClient
- Returns:
- the Patterns object.
-
settings
public Settings settings()
Gets the Settings object to access its operations.- Specified by:
settings
in interfaceLUISAuthoringClient
- Returns:
- the Settings object.
-
azureAccounts
public AzureAccounts azureAccounts()
Gets the AzureAccounts object to access its operations.- Specified by:
azureAccounts
in interfaceLUISAuthoringClient
- Returns:
- the AzureAccounts object.
-
initialize
protected void initialize()
-
userAgent
public String userAgent()
Gets the User-Agent header for the client.- Specified by:
userAgent
in interfaceLUISAuthoringClient
- Overrides:
userAgent
in classcom.microsoft.azure.AzureServiceClient
- Returns:
- the user agent string.
-
-