Class BingVideoSearchAPIImpl

  • All Implemented Interfaces:
    BingVideoSearchAPI

    public class BingVideoSearchAPIImpl
    extends com.microsoft.azure.AzureServiceClient
    implements BingVideoSearchAPI
    Initializes a new instance of the BingVideoSearchAPIImpl class.
    • Constructor Detail

      • BingVideoSearchAPIImpl

        public BingVideoSearchAPIImpl​(com.microsoft.rest.credentials.ServiceClientCredentials credentials)
        Initializes an instance of BingVideoSearchAPI client.
        Parameters:
        credentials - the management credentials for Azure
      • BingVideoSearchAPIImpl

        public BingVideoSearchAPIImpl​(String baseUrl,
                                      com.microsoft.rest.credentials.ServiceClientCredentials credentials)
        Initializes an instance of BingVideoSearchAPI client.
        Parameters:
        baseUrl - the base URL of the host
        credentials - the management credentials for Azure
      • BingVideoSearchAPIImpl

        public BingVideoSearchAPIImpl​(com.microsoft.rest.RestClient restClient)
        Initializes an instance of BingVideoSearchAPI 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 BingVideoSearchAPI
        Returns:
        the azure client;
      • acceptLanguage

        public String acceptLanguage()
        Gets Gets or sets the preferred language for the response.
        Specified by:
        acceptLanguage in interface BingVideoSearchAPI
        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 BingVideoSearchAPI
        Returns:
        the longRunningOperationRetryTimeout value.
      • withLongRunningOperationRetryTimeout

        public BingVideoSearchAPIImpl 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 BingVideoSearchAPI
        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 BingVideoSearchAPI
        Returns:
        the generateClientRequestId value.
      • withGenerateClientRequestId

        public BingVideoSearchAPIImpl 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 BingVideoSearchAPI
        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 BingVideoSearchAPI
        Overrides:
        userAgent in class com.microsoft.azure.AzureServiceClient
        Returns:
        the user agent string.