Class StreamAnalyticsManager.Configurable

  • Enclosing class:
    StreamAnalyticsManager

    public static final class StreamAnalyticsManager.Configurable
    extends Object
    The Configurable allowing configurations to be set.
    • Method Detail

      • withHttpClient

        public StreamAnalyticsManager.Configurable withHttpClient​(com.azure.core.http.HttpClient httpClient)
        Sets the http client.
        Parameters:
        httpClient - the HTTP client.
        Returns:
        the configurable object itself.
      • withLogOptions

        public StreamAnalyticsManager.Configurable withLogOptions​(com.azure.core.http.policy.HttpLogOptions httpLogOptions)
        Sets the logging options to the HTTP pipeline.
        Parameters:
        httpLogOptions - the HTTP log options.
        Returns:
        the configurable object itself.
      • withPolicy

        public StreamAnalyticsManager.Configurable withPolicy​(com.azure.core.http.policy.HttpPipelinePolicy policy)
        Adds the pipeline policy to the HTTP pipeline.
        Parameters:
        policy - the HTTP pipeline policy.
        Returns:
        the configurable object itself.
      • withRetryPolicy

        public StreamAnalyticsManager.Configurable withRetryPolicy​(com.azure.core.http.policy.RetryPolicy retryPolicy)
        Sets the retry policy to the HTTP pipeline.
        Parameters:
        retryPolicy - the HTTP pipeline retry policy.
        Returns:
        the configurable object itself.
      • withDefaultPollInterval

        public StreamAnalyticsManager.Configurable withDefaultPollInterval​(Duration defaultPollInterval)
        Sets the default poll interval, used when service does not provide "Retry-After" header.
        Parameters:
        defaultPollInterval - the default poll interval.
        Returns:
        the configurable object itself.
      • authenticate

        public StreamAnalyticsManager authenticate​(com.azure.core.credential.TokenCredential credential,
                                                   com.azure.core.management.profile.AzureProfile profile)
        Creates an instance of StreamAnalytics service API entry point.
        Parameters:
        credential - the credential to use.
        profile - the Azure profile for client.
        Returns:
        the StreamAnalytics service API instance.