Share via


DesktopVirtualizationManager.Configurable Class

  • java.lang.Object
    • com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager.Configurable

public static final class DesktopVirtualizationManager.Configurable

The Configurable allowing configurations to be set.

Method Summary

Modifier and Type Method and Description
DesktopVirtualizationManager authenticate(TokenCredential credential, AzureProfile profile)

Creates an instance of DesktopVirtualization 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 DesktopVirtualizationManager authenticate(TokenCredential credential, AzureProfile profile)

Creates an instance of DesktopVirtualization service API entry point.

Parameters:

credential - the credential to use.
profile - the Azure profile for client.

Returns:

the DesktopVirtualization service API instance.

withDefaultPollInterval

public DesktopVirtualizationManager.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.

withHttpClient

public DesktopVirtualizationManager.Configurable withHttpClient(HttpClient httpClient)

Sets the http client.

Parameters:

httpClient - the HTTP client.

Returns:

the configurable object itself.

withLogOptions

public DesktopVirtualizationManager.Configurable withLogOptions(HttpLogOptions httpLogOptions)

Sets the logging options to the HTTP pipeline.

Parameters:

httpLogOptions - the HTTP log options.

Returns:

the configurable object itself.

withPolicy

public DesktopVirtualizationManager.Configurable withPolicy(HttpPipelinePolicy policy)

Adds the pipeline policy to the HTTP pipeline.

Parameters:

policy - the HTTP pipeline policy.

Returns:

the configurable object itself.

withRetryOptions

public DesktopVirtualizationManager.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:

retryOptions - the retry options for the HTTP pipeline retry policy.

Returns:

the configurable object itself.

withRetryPolicy

public DesktopVirtualizationManager.Configurable withRetryPolicy(RetryPolicy retryPolicy)

Sets the retry policy to the HTTP pipeline.

Parameters:

retryPolicy - the HTTP pipeline retry policy.

Returns:

the configurable object itself.

withScope

public DesktopVirtualizationManager.Configurable withScope(String scope)

Adds the scope to permission sets.

Parameters:

scope - the scope.

Returns:

the configurable object itself.

Applies to