Class BingCustomSearchAPIImpl
- java.lang.Object
-
- com.microsoft.rest.ServiceClient
-
- com.microsoft.azure.AzureServiceClient
-
- com.microsoft.azure.cognitiveservices.search.customsearch.implementation.BingCustomSearchAPIImpl
-
- All Implemented Interfaces:
BingCustomSearchAPI
public class BingCustomSearchAPIImpl extends com.microsoft.azure.AzureServiceClient implements BingCustomSearchAPI
Initializes a new instance of the BingCustomSearchAPIImpl class.
-
-
Constructor Summary
Constructors Constructor Description BingCustomSearchAPIImpl(com.microsoft.rest.credentials.ServiceClientCredentials credentials)Initializes an instance of BingCustomSearchAPI client.BingCustomSearchAPIImpl(com.microsoft.rest.RestClient restClient)Initializes an instance of BingCustomSearchAPI client.BingCustomSearchAPIImpl(String baseUrl, com.microsoft.rest.credentials.ServiceClientCredentials credentials)Initializes an instance of BingCustomSearchAPI 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.BingCustomInstancesbingCustomInstances()Gets the BingCustomInstances 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()intlongRunningOperationRetryTimeout()Gets Gets or sets the retry timeout in seconds for Long Running Operations.StringuserAgent()Gets the User-Agent header for the client.BingCustomSearchAPIImplwithAcceptLanguage(String acceptLanguage)Sets Gets or sets the preferred language for the response.BingCustomSearchAPIImplwithGenerateClientRequestId(boolean generateClientRequestId)Sets When set to true a unique x-ms-client-request-id value is generated and included in each request.BingCustomSearchAPIImplwithLongRunningOperationRetryTimeout(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.search.customsearch.BingCustomSearchAPI
restClient
-
-
-
-
Constructor Detail
-
BingCustomSearchAPIImpl
public BingCustomSearchAPIImpl(com.microsoft.rest.credentials.ServiceClientCredentials credentials)
Initializes an instance of BingCustomSearchAPI client.- Parameters:
credentials- the management credentials for Azure
-
BingCustomSearchAPIImpl
public BingCustomSearchAPIImpl(String baseUrl, com.microsoft.rest.credentials.ServiceClientCredentials credentials)
Initializes an instance of BingCustomSearchAPI client.- Parameters:
baseUrl- the base URL of the hostcredentials- the management credentials for Azure
-
BingCustomSearchAPIImpl
public BingCustomSearchAPIImpl(com.microsoft.rest.RestClient restClient)
Initializes an instance of BingCustomSearchAPI 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 interfaceBingCustomSearchAPI- Returns:
- the azure client;
-
acceptLanguage
public String acceptLanguage()
Gets Gets or sets the preferred language for the response.- Specified by:
acceptLanguagein interfaceBingCustomSearchAPI- Returns:
- the acceptLanguage value.
-
withAcceptLanguage
public BingCustomSearchAPIImpl withAcceptLanguage(String acceptLanguage)
Sets Gets or sets the preferred language for the response.- Specified by:
withAcceptLanguagein interfaceBingCustomSearchAPI- 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 interfaceBingCustomSearchAPI- Returns:
- the longRunningOperationRetryTimeout value.
-
withLongRunningOperationRetryTimeout
public BingCustomSearchAPIImpl withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout)
Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.- Specified by:
withLongRunningOperationRetryTimeoutin interfaceBingCustomSearchAPI- 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 interfaceBingCustomSearchAPI- Returns:
- the generateClientRequestId value.
-
withGenerateClientRequestId
public BingCustomSearchAPIImpl 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 interfaceBingCustomSearchAPI- Parameters:
generateClientRequestId- the generateClientRequestId value.- Returns:
- the service client itself
-
bingCustomInstances
public BingCustomInstances bingCustomInstances()
Gets the BingCustomInstances object to access its operations.- Specified by:
bingCustomInstancesin interfaceBingCustomSearchAPI- Returns:
- the BingCustomInstances object.
-
initialize
protected void initialize()
-
userAgent
public String userAgent()
Gets the User-Agent header for the client.- Specified by:
userAgentin interfaceBingCustomSearchAPI- Overrides:
userAgentin classcom.microsoft.azure.AzureServiceClient- Returns:
- the user agent string.
-
-