Compartilhar via


DeviceManagementClientBuilder Class

  • java.lang.Object
    • com.azure.iot.deviceupdate.DeviceManagementClientBuilder

Implements

public final class DeviceManagementClientBuilder
implements HttpTrait<DeviceManagementClientBuilder>, ConfigurationTrait<DeviceManagementClientBuilder>, TokenCredentialTrait<DeviceManagementClientBuilder>, EndpointTrait<DeviceManagementClientBuilder>

A builder for creating a new instance of the DeviceManagementClient type.

Constructor Summary

Constructor Description
DeviceManagementClientBuilder()

Create an instance of the DeviceManagementClientBuilder.

Method Summary

Modifier and Type Method and Description
DeviceManagementClientBuilder addPolicy(HttpPipelinePolicy customPolicy)

.

DeviceManagementAsyncClient buildAsyncClient()

Builds an instance of DeviceManagementAsyncClient class.

DeviceManagementClient buildClient()

Builds an instance of DeviceManagementClient class.

DeviceManagementClientBuilder clientOptions(ClientOptions clientOptions)

.

DeviceManagementClientBuilder configuration(Configuration configuration)

.

DeviceManagementClientBuilder credential(TokenCredential tokenCredential)

.

DeviceManagementClientBuilder endpoint(String endpoint)

.

DeviceManagementClientBuilder httpClient(HttpClient httpClient)

.

DeviceManagementClientBuilder httpLogOptions(HttpLogOptions httpLogOptions)

.

DeviceManagementClientBuilder instanceId(String instanceId)

Sets The Device Update for IoT Hub account instance identifier.

DeviceManagementClientBuilder pipeline(HttpPipeline pipeline)

.

DeviceManagementClientBuilder retryOptions(RetryOptions retryOptions)

.

DeviceManagementClientBuilder retryPolicy(RetryPolicy retryPolicy)

Sets The retry policy that will attempt to retry failed requests, if applicable.

DeviceManagementClientBuilder serviceVersion(DeviceUpdateServiceVersion serviceVersion)

Sets Service version.

Methods inherited from java.lang.Object

Constructor Details

DeviceManagementClientBuilder

public DeviceManagementClientBuilder()

Create an instance of the DeviceManagementClientBuilder.

Method Details

addPolicy

public DeviceManagementClientBuilder addPolicy(HttpPipelinePolicy customPolicy)

.

Parameters:

customPolicy

buildAsyncClient

public DeviceManagementAsyncClient buildAsyncClient()

Builds an instance of DeviceManagementAsyncClient class.

Returns:

an instance of DeviceManagementAsyncClient.

buildClient

public DeviceManagementClient buildClient()

Builds an instance of DeviceManagementClient class.

Returns:

an instance of DeviceManagementClient.

clientOptions

public DeviceManagementClientBuilder clientOptions(ClientOptions clientOptions)

.

Parameters:

clientOptions

configuration

public DeviceManagementClientBuilder configuration(Configuration configuration)

.

Parameters:

configuration

credential

public DeviceManagementClientBuilder credential(TokenCredential tokenCredential)

.

Parameters:

tokenCredential

endpoint

public DeviceManagementClientBuilder endpoint(String endpoint)

.

Parameters:

endpoint

httpClient

public DeviceManagementClientBuilder httpClient(HttpClient httpClient)

.

Parameters:

httpClient

httpLogOptions

public DeviceManagementClientBuilder httpLogOptions(HttpLogOptions httpLogOptions)

.

Parameters:

httpLogOptions

instanceId

public DeviceManagementClientBuilder instanceId(String instanceId)

Sets The Device Update for IoT Hub account instance identifier.

Parameters:

instanceId - the instanceId value.

Returns:

the DeviceManagementClientBuilder.

pipeline

public DeviceManagementClientBuilder pipeline(HttpPipeline pipeline)

.

Parameters:

pipeline

retryOptions

public DeviceManagementClientBuilder retryOptions(RetryOptions retryOptions)

.

Parameters:

retryOptions

retryPolicy

public DeviceManagementClientBuilder retryPolicy(RetryPolicy retryPolicy)

Sets The retry policy that will attempt to retry failed requests, if applicable.

Parameters:

retryPolicy - the retryPolicy value.

Returns:

the DeviceManagementClientBuilder.

serviceVersion

public DeviceManagementClientBuilder serviceVersion(DeviceUpdateServiceVersion serviceVersion)

Sets Service version.

Parameters:

serviceVersion - the serviceVersion value.

Returns:

the DeviceManagementClientBuilder.

Applies to