Package com.azure.resourcemanager.mysql
Class MySqlManager.Configurable
- java.lang.Object
-
- com.azure.resourcemanager.mysql.MySqlManager.Configurable
-
- Enclosing class:
- MySqlManager
public static final class MySqlManager.Configurable extends Object
The Configurable allowing configurations to be set.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MySqlManagerauthenticate(com.azure.core.credential.TokenCredential credential, com.azure.core.management.profile.AzureProfile profile)Creates an instance of MySql service API entry point.MySqlManager.ConfigurablewithDefaultPollInterval(Duration defaultPollInterval)Sets the default poll interval, used when service does not provide "Retry-After" header.MySqlManager.ConfigurablewithHttpClient(com.azure.core.http.HttpClient httpClient)Sets the http client.MySqlManager.ConfigurablewithLogOptions(com.azure.core.http.policy.HttpLogOptions httpLogOptions)Sets the logging options to the HTTP pipeline.MySqlManager.ConfigurablewithPolicy(com.azure.core.http.policy.HttpPipelinePolicy policy)Adds the pipeline policy to the HTTP pipeline.MySqlManager.ConfigurablewithRetryPolicy(com.azure.core.http.policy.RetryPolicy retryPolicy)Sets the retry policy to the HTTP pipeline.MySqlManager.ConfigurablewithScope(String scope)Adds the scope to permission sets.
-
-
-
Method Detail
-
withHttpClient
public MySqlManager.Configurable withHttpClient(com.azure.core.http.HttpClient httpClient)
Sets the http client.- Parameters:
httpClient- the HTTP client.- Returns:
- the configurable object itself.
-
withLogOptions
public MySqlManager.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 MySqlManager.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.
-
withScope
public MySqlManager.Configurable withScope(String scope)
Adds the scope to permission sets.- Parameters:
scope- the scope.- Returns:
- the configurable object itself.
-
withRetryPolicy
public MySqlManager.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 MySqlManager.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 MySqlManager authenticate(com.azure.core.credential.TokenCredential credential, com.azure.core.management.profile.AzureProfile profile)
Creates an instance of MySql service API entry point.- Parameters:
credential- the credential to use.profile- the Azure profile for client.- Returns:
- the MySql service API instance.
-
-