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