Class BingVideoSearchAPIImpl
- java.lang.Object
-
- com.microsoft.rest.ServiceClient
-
- com.microsoft.azure.AzureServiceClient
-
- com.microsoft.azure.cognitiveservices.search.videosearch.implementation.BingVideoSearchAPIImpl
-
- All Implemented Interfaces:
BingVideoSearchAPI
public class BingVideoSearchAPIImpl extends com.microsoft.azure.AzureServiceClient implements BingVideoSearchAPI
Initializes a new instance of the BingVideoSearchAPIImpl class.
-
-
Constructor Summary
Constructors Constructor Description BingVideoSearchAPIImpl(com.microsoft.rest.credentials.ServiceClientCredentials credentials)Initializes an instance of BingVideoSearchAPI client.BingVideoSearchAPIImpl(com.microsoft.rest.RestClient restClient)Initializes an instance of BingVideoSearchAPI client.BingVideoSearchAPIImpl(String baseUrl, com.microsoft.rest.credentials.ServiceClientCredentials credentials)Initializes an instance of BingVideoSearchAPI 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.BingVideosbingVideos()Gets the BingVideos 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.BingVideoSearchAPIImplwithAcceptLanguage(String acceptLanguage)Sets Gets or sets the preferred language for the response.BingVideoSearchAPIImplwithGenerateClientRequestId(boolean generateClientRequestId)Sets When set to true a unique x-ms-client-request-id value is generated and included in each request.BingVideoSearchAPIImplwithLongRunningOperationRetryTimeout(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.videosearch.BingVideoSearchAPI
restClient
-
-
-
-
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 hostcredentials- 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 theAzureClientused for long running operations.- Specified by:
getAzureClientin interfaceBingVideoSearchAPI- Returns:
- the azure client;
-
acceptLanguage
public String acceptLanguage()
Gets Gets or sets the preferred language for the response.- Specified by:
acceptLanguagein interfaceBingVideoSearchAPI- Returns:
- the acceptLanguage value.
-
withAcceptLanguage
public BingVideoSearchAPIImpl withAcceptLanguage(String acceptLanguage)
Sets Gets or sets the preferred language for the response.- Specified by:
withAcceptLanguagein interfaceBingVideoSearchAPI- 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 interfaceBingVideoSearchAPI- 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:
withLongRunningOperationRetryTimeoutin interfaceBingVideoSearchAPI- 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 interfaceBingVideoSearchAPI- 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:
withGenerateClientRequestIdin interfaceBingVideoSearchAPI- Parameters:
generateClientRequestId- the generateClientRequestId value.- Returns:
- the service client itself
-
bingVideos
public BingVideos bingVideos()
Gets the BingVideos object to access its operations.- Specified by:
bingVideosin interfaceBingVideoSearchAPI- Returns:
- the BingVideos object.
-
initialize
protected void initialize()
-
userAgent
public String userAgent()
Gets the User-Agent header for the client.- Specified by:
userAgentin interfaceBingVideoSearchAPI- Overrides:
userAgentin classcom.microsoft.azure.AzureServiceClient- Returns:
- the user agent string.
-
-