共用方式為


IotDpsManager.Configurable Class

  • java.lang.Object
    • com.azure.resourcemanager.deviceprovisioningservices.IotDpsManager.Configurable

public static final class IotDpsManager.Configurable

The Configurable allowing configurations to be set.

Method Summary

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

Creates an instance of IotDps 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 withRetryPolicy(RetryPolicy retryPolicy)

Sets the retry policy to the HTTP pipeline.

Methods inherited from java.lang.Object

Method Details

authenticate

public IotDpsManager authenticate(TokenCredential credential, AzureProfile profile)

Creates an instance of IotDps service API entry point.

Parameters:

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

Returns:

the IotDps service API instance.

withDefaultPollInterval

public IotDpsManager.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 IotDpsManager.Configurable withHttpClient(HttpClient httpClient)

Sets the http client.

Parameters:

httpClient - the HTTP client.

Returns:

the configurable object itself.

withLogOptions

public IotDpsManager.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 IotDpsManager.Configurable withPolicy(HttpPipelinePolicy policy)

Adds the pipeline policy to the HTTP pipeline.

Parameters:

policy - the HTTP pipeline policy.

Returns:

the configurable object itself.

withRetryPolicy

public IotDpsManager.Configurable withRetryPolicy(RetryPolicy retryPolicy)

Sets the retry policy to the HTTP pipeline.

Parameters:

retryPolicy - the HTTP pipeline retry policy.

Returns:

the configurable object itself.

Applies to