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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TwithAuxiliaryCredential(com.azure.core.credential.TokenCredential token)Set the cross-tenant auxiliary credentials for Azure which can hold up to three.TwithAuxiliaryCredentials(List<com.azure.core.credential.TokenCredential> tokens)Set the cross-tenant auxiliary credentials for Azure which can hold up to three.TwithConfiguration(com.azure.core.util.Configuration configuration)Sets the configuration.TwithHttpClient(com.azure.core.http.HttpClient httpClient)Sets the HTTP client.TwithLogLevel(com.azure.core.http.policy.HttpLogDetailLevel logLevel)Sets the logging detail level on the HTTP client.TwithLogOptions(com.azure.core.http.policy.HttpLogOptions logOptions)Set the logging options on the HTTP client.TwithPolicy(com.azure.core.http.policy.HttpPipelinePolicy policy)Plug in a policy into the HTTP pipeline.TwithRetryOptions(com.azure.core.http.policy.RetryOptions retryOptions)Sets the retry options for the HTTP pipeline retry policy.TwithRetryPolicy(com.azure.core.http.policy.RetryPolicy retryPolicy)Sets the retry policy used in HTTP pipeline.TwithScope(String scope)Sets the credential scope.TwithScopes(List<String> scopes)Sets the credential scopes.
-
-
-
Method Detail
-
withLogOptions
T withLogOptions(com.azure.core.http.policy.HttpLogOptions logOptions)
Set the logging options on the HTTP client.- Parameters:
logOptions- the HttpLogDetailLevel logging options- Returns:
- the configurable object itself
-
withLogLevel
T withLogLevel(com.azure.core.http.policy.HttpLogDetailLevel logLevel)
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
T withPolicy(com.azure.core.http.policy.HttpPipelinePolicy policy)
Plug in a policy into the HTTP pipeline.- Parameters:
policy- the policy to plug in- Returns:
- the configurable object itself
-
withAuxiliaryCredential
T withAuxiliaryCredential(com.azure.core.credential.TokenCredential token)
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
T withAuxiliaryCredentials(List<com.azure.core.credential.TokenCredential> tokens)
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
T withRetryPolicy(com.azure.core.http.policy.RetryPolicy retryPolicy)
Sets the retry policy used in HTTP pipeline.- Parameters:
retryPolicy- the retry policy- Returns:
- the configurable object itself for chaining
-
withScope
T withScope(String scope)
Sets the credential scope.- Parameters:
scope- the credential scope- Returns:
- the configurable object itself for chaining
-
withScopes
T withScopes(List<String> scopes)
Sets the credential scopes.- Parameters:
scopes- the credential scope- Returns:
- the configurable object itself for chaining
-
withHttpClient
T withHttpClient(com.azure.core.http.HttpClient httpClient)
Sets the HTTP client.- Parameters:
httpClient- the HTTP client- Returns:
- the configurable object itself for chaining
-
withConfiguration
T withConfiguration(com.azure.core.util.Configuration configuration)
Sets the configuration.- Parameters:
configuration- the proxy to use- Returns:
- the configurable object itself for chaining
-
withRetryOptions
T withRetryOptions(com.azure.core.http.policy.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).- Parameters:
retryOptions- the retry options for the HTTP pipeline retry policy.- Returns:
- the configurable object itself.
-
-