Class DeviceUpdateClientBuilder

java.lang.Object
com.azure.iot.deviceupdate.DeviceUpdateClientBuilder
All Implemented Interfaces:
com.azure.core.client.traits.ConfigurationTrait<DeviceUpdateClientBuilder>, com.azure.core.client.traits.EndpointTrait<DeviceUpdateClientBuilder>, com.azure.core.client.traits.HttpTrait<DeviceUpdateClientBuilder>, com.azure.core.client.traits.TokenCredentialTrait<DeviceUpdateClientBuilder>

public final class DeviceUpdateClientBuilder extends Object implements com.azure.core.client.traits.HttpTrait<DeviceUpdateClientBuilder>, com.azure.core.client.traits.ConfigurationTrait<DeviceUpdateClientBuilder>, com.azure.core.client.traits.TokenCredentialTrait<DeviceUpdateClientBuilder>, com.azure.core.client.traits.EndpointTrait<DeviceUpdateClientBuilder>
A builder for creating a new instance of the DeviceUpdateClient type.
  • Constructor Details

    • DeviceUpdateClientBuilder

      public DeviceUpdateClientBuilder()
      Create an instance of the DeviceUpdateClientBuilder.
  • Method Details

    • pipeline

      public DeviceUpdateClientBuilder pipeline(com.azure.core.http.HttpPipeline pipeline)
      .
      Specified by:
      pipeline in interface com.azure.core.client.traits.HttpTrait<DeviceUpdateClientBuilder>
    • httpClient

      public DeviceUpdateClientBuilder httpClient(com.azure.core.http.HttpClient httpClient)
      .
      Specified by:
      httpClient in interface com.azure.core.client.traits.HttpTrait<DeviceUpdateClientBuilder>
    • httpLogOptions

      public DeviceUpdateClientBuilder httpLogOptions(com.azure.core.http.policy.HttpLogOptions httpLogOptions)
      .
      Specified by:
      httpLogOptions in interface com.azure.core.client.traits.HttpTrait<DeviceUpdateClientBuilder>
    • clientOptions

      public DeviceUpdateClientBuilder clientOptions(com.azure.core.util.ClientOptions clientOptions)
      .
      Specified by:
      clientOptions in interface com.azure.core.client.traits.HttpTrait<DeviceUpdateClientBuilder>
    • retryOptions

      public DeviceUpdateClientBuilder retryOptions(com.azure.core.http.policy.RetryOptions retryOptions)
      .
      Specified by:
      retryOptions in interface com.azure.core.client.traits.HttpTrait<DeviceUpdateClientBuilder>
    • addPolicy

      public DeviceUpdateClientBuilder addPolicy(com.azure.core.http.policy.HttpPipelinePolicy customPolicy)
      .
      Specified by:
      addPolicy in interface com.azure.core.client.traits.HttpTrait<DeviceUpdateClientBuilder>
    • configuration

      public DeviceUpdateClientBuilder configuration(com.azure.core.util.Configuration configuration)
      .
      Specified by:
      configuration in interface com.azure.core.client.traits.ConfigurationTrait<DeviceUpdateClientBuilder>
    • credential

      public DeviceUpdateClientBuilder credential(com.azure.core.credential.TokenCredential tokenCredential)
      .
      Specified by:
      credential in interface com.azure.core.client.traits.TokenCredentialTrait<DeviceUpdateClientBuilder>
    • endpoint

      public DeviceUpdateClientBuilder endpoint(String endpoint)
      .
      Specified by:
      endpoint in interface com.azure.core.client.traits.EndpointTrait<DeviceUpdateClientBuilder>
    • instanceId

      public DeviceUpdateClientBuilder instanceId(String instanceId)
      Sets The Device Update for IoT Hub account instance identifier.
      Parameters:
      instanceId - the instanceId value.
      Returns:
      the DeviceUpdateClientBuilder.
    • serviceVersion

      public DeviceUpdateClientBuilder serviceVersion(DeviceUpdateServiceVersion serviceVersion)
      Sets Service version.
      Parameters:
      serviceVersion - the serviceVersion value.
      Returns:
      the DeviceUpdateClientBuilder.
    • retryPolicy

      public DeviceUpdateClientBuilder retryPolicy(com.azure.core.http.policy.RetryPolicy retryPolicy)
      Sets The retry policy that will attempt to retry failed requests, if applicable.
      Parameters:
      retryPolicy - the retryPolicy value.
      Returns:
      the DeviceUpdateClientBuilder.
    • 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.