Compartilhar via


DeviceUpdateClientBuilder Class

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

Implements

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

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

Constructor Summary

Constructor Description
DeviceUpdateClientBuilder()

Create an instance of the DeviceUpdateClientBuilder.

Method Summary

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

.

DeviceUpdateAsyncClient buildAsyncClient()

Builds an instance of DeviceUpdateAsyncClient class.

DeviceUpdateClient buildClient()

Builds an instance of DeviceUpdateClient class.

DeviceUpdateClientBuilder clientOptions(ClientOptions clientOptions)

.

DeviceUpdateClientBuilder configuration(Configuration configuration)

.

DeviceUpdateClientBuilder credential(TokenCredential tokenCredential)

.

DeviceUpdateClientBuilder endpoint(String endpoint)

.

DeviceUpdateClientBuilder httpClient(HttpClient httpClient)

.

DeviceUpdateClientBuilder httpLogOptions(HttpLogOptions httpLogOptions)

.

DeviceUpdateClientBuilder instanceId(String instanceId)

Sets The Device Update for IoT Hub account instance identifier.

DeviceUpdateClientBuilder pipeline(HttpPipeline pipeline)

.

DeviceUpdateClientBuilder retryOptions(RetryOptions retryOptions)

.

DeviceUpdateClientBuilder retryPolicy(RetryPolicy retryPolicy)

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

DeviceUpdateClientBuilder serviceVersion(DeviceUpdateServiceVersion serviceVersion)

Sets Service version.

Methods inherited from java.lang.Object

Constructor Details

DeviceUpdateClientBuilder

public DeviceUpdateClientBuilder()

Create an instance of the DeviceUpdateClientBuilder.

Method Details

addPolicy

public DeviceUpdateClientBuilder addPolicy(HttpPipelinePolicy customPolicy)

.

Parameters:

customPolicy

buildAsyncClient

public DeviceUpdateAsyncClient buildAsyncClient()

Builds an instance of DeviceUpdateAsyncClient class.

Returns:

an instance of DeviceUpdateAsyncClient.

buildClient

public DeviceUpdateClient buildClient()

Builds an instance of DeviceUpdateClient class.

Returns:

an instance of DeviceUpdateClient.

clientOptions

public DeviceUpdateClientBuilder clientOptions(ClientOptions clientOptions)

.

Parameters:

clientOptions

configuration

public DeviceUpdateClientBuilder configuration(Configuration configuration)

.

Parameters:

configuration

credential

public DeviceUpdateClientBuilder credential(TokenCredential tokenCredential)

.

Parameters:

tokenCredential

endpoint

public DeviceUpdateClientBuilder endpoint(String endpoint)

.

Parameters:

endpoint

httpClient

public DeviceUpdateClientBuilder httpClient(HttpClient httpClient)

.

Parameters:

httpClient

httpLogOptions

public DeviceUpdateClientBuilder httpLogOptions(HttpLogOptions httpLogOptions)

.

Parameters:

httpLogOptions

instanceId

public DeviceUpdateClientBuilder instanceId(String instanceId)

Sets The Device Update for IoT Hub account instance identifier.

Parameters:

instanceId - the instanceId value.

Returns:

the DeviceUpdateClientBuilder.

pipeline

public DeviceUpdateClientBuilder pipeline(HttpPipeline pipeline)

.

Parameters:

pipeline

retryOptions

public DeviceUpdateClientBuilder retryOptions(RetryOptions retryOptions)

.

Parameters:

retryOptions

retryPolicy

public DeviceUpdateClientBuilder retryPolicy(RetryPolicy retryPolicy)

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

Parameters:

retryPolicy - the retryPolicy value.

Returns:

the DeviceUpdateClientBuilder.

serviceVersion

public DeviceUpdateClientBuilder serviceVersion(DeviceUpdateServiceVersion serviceVersion)

Sets Service version.

Parameters:

serviceVersion - the serviceVersion value.

Returns:

the DeviceUpdateClientBuilder.

Applies to