Class BingCustomSearchAPIImpl

  • All Implemented Interfaces:
    BingCustomSearchAPI

    public class BingCustomSearchAPIImpl
    extends com.microsoft.azure.AzureServiceClient
    implements BingCustomSearchAPI
    Initializes a new instance of the BingCustomSearchAPIImpl class.
    • 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 host
        credentials - 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 the AzureClient used for long running operations.
        Specified by:
        getAzureClient in interface BingCustomSearchAPI
        Returns:
        the azure client;
      • acceptLanguage

        public String acceptLanguage()
        Gets Gets or sets the preferred language for the response.
        Specified by:
        acceptLanguage in interface BingCustomSearchAPI
        Returns:
        the acceptLanguage value.
      • 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 interface BingCustomSearchAPI
        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:
        withLongRunningOperationRetryTimeout in interface BingCustomSearchAPI
        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 interface BingCustomSearchAPI
        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:
        withGenerateClientRequestId in interface BingCustomSearchAPI
        Parameters:
        generateClientRequestId - the generateClientRequestId value.
        Returns:
        the service client itself
      • initialize

        protected void initialize()
      • userAgent

        public String userAgent()
        Gets the User-Agent header for the client.
        Specified by:
        userAgent in interface BingCustomSearchAPI
        Overrides:
        userAgent in class com.microsoft.azure.AzureServiceClient
        Returns:
        the user agent string.