Interface AzureConfigurable<T extends AzureConfigurable<T>>
- Type Parameters:
T- the actual type of the interface extending this interface
- All Known Subinterfaces:
ResourceManager.Configurable
public interface AzureConfigurable<T extends AzureConfigurable<T>>
The base interface for allowing configurations to be made on the HTTP client.
-
Method Summary
Modifier and TypeMethodDescriptionwithAuxiliaryCredential(com.azure.core.credential.TokenCredential token) Set the cross-tenant auxiliary credentials for Azure which can hold up to three.withAuxiliaryCredentials(List<com.azure.core.credential.TokenCredential> tokens) Set the cross-tenant auxiliary credentials for Azure which can hold up to three.withConfiguration(com.azure.core.util.Configuration configuration) Sets the configuration.withHttpClient(com.azure.core.http.HttpClient httpClient) Sets the HTTP client.withLogLevel(com.azure.core.http.policy.HttpLogDetailLevel logLevel) Sets the logging detail level on the HTTP client.withLogOptions(com.azure.core.http.policy.HttpLogOptions logOptions) Set the logging options on the HTTP client.withPolicy(com.azure.core.http.policy.HttpPipelinePolicy policy) Plug in a policy into the HTTP pipeline.withRetryOptions(com.azure.core.http.policy.RetryOptions retryOptions) Sets the retry options for the HTTP pipeline retry policy.withRetryPolicy(com.azure.core.http.policy.RetryPolicy retryPolicy) Sets the retry policy used in HTTP pipeline.Sets the credential scope.withScopes(List<String> scopes) Sets the credential scopes.
-
Method Details
-
withLogOptions
Set the logging options on the HTTP client.- Parameters:
logOptions- the HttpLogDetailLevel logging options- Returns:
- the configurable object itself
-
withLogLevel
Sets the logging detail level on the HTTP client. If set, this configure will overrideHttpLogOptions.setLogLevel(HttpLogDetailLevel)configure ofwithLogOptions(HttpLogOptions).- Parameters:
logLevel- the logging level- Returns:
- the configurable object itself
-
withPolicy
Plug in a policy into the HTTP pipeline.- Parameters:
policy- the policy to plug in- Returns:
- the configurable object itself
-
withAuxiliaryCredential
Set the cross-tenant auxiliary credentials for Azure which can hold up to three.- Parameters:
token- the auxiliary credential- Returns:
- the configurable object itself
-
withAuxiliaryCredentials
Set the cross-tenant auxiliary credentials for Azure which can hold up to three.- Parameters:
tokens- the auxiliary credentials- Returns:
- the configurable object itself
-
withRetryPolicy
Sets the retry policy used in HTTP pipeline.- Parameters:
retryPolicy- the retry policy- Returns:
- the configurable object itself for chaining
-
withScope
Sets the credential scope.- Parameters:
scope- the credential scope- Returns:
- the configurable object itself for chaining
-
withScopes
Sets the credential scopes.- Parameters:
scopes- the credential scope- Returns:
- the configurable object itself for chaining
-
withHttpClient
Sets the HTTP client.- Parameters:
httpClient- the HTTP client- Returns:
- the configurable object itself for chaining
-
withConfiguration
Sets the configuration.- Parameters:
configuration- the proxy to use- Returns:
- the configurable object itself for chaining
-
withRetryOptions
Sets the retry options for the HTTP pipeline retry policy.This setting has no effect, if retry policy is set via
withRetryPolicy(RetryPolicy).- Parameters:
retryOptions- the retry options for the HTTP pipeline retry policy.- Returns:
- the configurable object itself.
-