MaintenanceManager.Configurable Class
- java.
lang. Object - com.
azure. resourcemanager. maintenance. MaintenanceManager. Configurable
- com.
public static final class MaintenanceManager.Configurable
The Configurable allowing configurations to be set.
Method Summary
Modifier and Type | Method and Description |
---|---|
Maintenance |
authenticate(TokenCredential credential, AzureProfile profile)
Creates an instance of Maintenance service API entry point. |
Configurable |
withDefaultPollInterval(Duration defaultPollInterval)
Sets the default poll interval, used when service does not provide "Retry-After" header. |
Configurable |
withHttpClient(HttpClient httpClient)
Sets the http client. |
Configurable |
withLogOptions(HttpLogOptions httpLogOptions)
Sets the logging options to the HTTP pipeline. |
Configurable |
withPolicy(HttpPipelinePolicy policy)
Adds the pipeline policy to the HTTP pipeline. |
Configurable |
withRetryOptions(RetryOptions retryOptions)
Sets the retry options for the HTTP pipeline retry policy. |
Configurable |
withRetryPolicy(RetryPolicy retryPolicy)
Sets the retry policy to the HTTP pipeline. |
Configurable |
withScope(String scope)
Adds the scope to permission sets. |
Methods inherited from java.lang.Object
Method Details
authenticate
public MaintenanceManager authenticate(TokenCredential credential, AzureProfile profile)
Creates an instance of Maintenance service API entry point.
Parameters:
Returns:
withDefaultPollInterval
public MaintenanceManager.Configurable withDefaultPollInterval(Duration defaultPollInterval)
Sets the default poll interval, used when service does not provide "Retry-After" header.
Parameters:
Returns:
withHttpClient
public MaintenanceManager.Configurable withHttpClient(HttpClient httpClient)
Sets the http client.
Parameters:
Returns:
withLogOptions
public MaintenanceManager.Configurable withLogOptions(HttpLogOptions httpLogOptions)
Sets the logging options to the HTTP pipeline.
Parameters:
Returns:
withPolicy
public MaintenanceManager.Configurable withPolicy(HttpPipelinePolicy policy)
Adds the pipeline policy to the HTTP pipeline.
Parameters:
Returns:
withRetryOptions
public MaintenanceManager.Configurable 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 MaintenanceManager.Configurable withRetryPolicy(RetryPolicy retryPolicy)
Sets the retry policy to the HTTP pipeline.
Parameters:
Returns:
withScope
public MaintenanceManager.Configurable withScope(String scope)
Adds the scope to permission sets.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for