AzureConfigurable<T> Interface
Type Parameters
- T
the actual type of the interface extending this interface
public interface AzureConfigurable
The base interface for allowing configurations to be made on the HTTP client.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract T |
withAuxiliaryCredential(TokenCredential token)
Set the cross-tenant auxiliary credentials for Azure which can hold up to three. |
abstract T |
withAuxiliaryCredentials(List<TokenCredential> tokens)
Set the cross-tenant auxiliary credentials for Azure which can hold up to three. |
abstract T |
withConfiguration(Configuration configuration)
Sets the configuration. |
abstract T |
withHttpClient(HttpClient httpClient)
Sets the HTTP client. |
abstract T |
withLogLevel(HttpLogDetailLevel logLevel)
Sets the logging detail level on the HTTP client. |
abstract T |
withLogOptions(HttpLogOptions logOptions)
Set the logging options on the HTTP client. |
abstract T |
withPolicy(HttpPipelinePolicy policy)
Plug in a policy into the HTTP pipeline. |
abstract T |
withRetryOptions(RetryOptions retryOptions)
Sets the retry options for the HTTP pipeline retry policy. |
abstract T |
withRetryPolicy(RetryPolicy retryPolicy)
Sets the retry policy used in HTTP pipeline. |
abstract T |
withScope(String scope)
Sets the credential scope. |
abstract T |
withScopes(List<String> scopes)
Sets the credential scopes. |
Method Details
withAuxiliaryCredential
public abstract T withAuxiliaryCredential(TokenCredential token)
Set the cross-tenant auxiliary credentials for Azure which can hold up to three.
Parameters:
Returns:
withAuxiliaryCredentials
public abstract T withAuxiliaryCredentials(List
Set the cross-tenant auxiliary credentials for Azure which can hold up to three.
Parameters:
Returns:
withConfiguration
public abstract T withConfiguration(Configuration configuration)
Sets the configuration.
Parameters:
Returns:
withHttpClient
public abstract T withHttpClient(HttpClient httpClient)
Sets the HTTP client.
Parameters:
Returns:
withLogLevel
public abstract T withLogLevel(HttpLogDetailLevel logLevel)
Sets the logging detail level on the HTTP client. If set, this configure will override HttpLogOptions#setLogLevel(HttpLogDetailLevel) configure of withLogOptions(HttpLogOptions logOptions).
Parameters:
Returns:
withLogOptions
public abstract T withLogOptions(HttpLogOptions logOptions)
Set the logging options on the HTTP client.
Parameters:
Returns:
withPolicy
public abstract T withPolicy(HttpPipelinePolicy policy)
Plug in a policy into the HTTP pipeline.
Parameters:
Returns:
withRetryOptions
public abstract T withRetryOptions(RetryOptions retryOptions)
Sets the retry options for the HTTP pipeline retry policy.
This setting has no effect, if retry policy is set via withRetryPolicy(RetryPolicy retryPolicy).
Parameters:
Returns:
withRetryPolicy
public abstract T withRetryPolicy(RetryPolicy retryPolicy)
Sets the retry policy used in HTTP pipeline.
Parameters:
Returns:
withScope
public abstract T withScope(String scope)
Sets the credential scope.
Parameters:
Returns:
withScopes
public abstract T withScopes(List
Sets the credential scopes.
Parameters:
Returns:
Applies to
Azure SDK for Java