Class RemoteRenderingClientBuilder

java.lang.Object
com.azure.mixedreality.remoterendering.RemoteRenderingClientBuilder

public final class RemoteRenderingClientBuilder extends Object
A builder for creating instances of RemoteRenderingClient and RemoteRenderingAsyncClient.
  • Constructor Details

    • RemoteRenderingClientBuilder

      public RemoteRenderingClientBuilder()
      Constructs a new RemoteRenderingClientBuilder instance.
  • Method Details

    • buildClient

      public RemoteRenderingClient buildClient()
      Builds and returns a RemoteRenderingClient instance from the provided parameters.
      Returns:
      the RemoteRenderingClient instance.
    • buildAsyncClient

      public RemoteRenderingAsyncClient buildAsyncClient()
      Builds and returns a RemoteRenderingAsyncClient instance from the provided parameters.
      Returns:
      the RemoteRenderingAsyncClient instance.
    • accountId

      public RemoteRenderingClientBuilder accountId(String accountId)
      Sets the accountId.
      Parameters:
      accountId - the accountId value.
      Returns:
      the RemoteRenderingClientBuilder.
    • accountDomain

      public RemoteRenderingClientBuilder accountDomain(String accountDomain)
      Sets the accountDomain.
      Parameters:
      accountDomain - the accountDomain value.
      Returns:
      the RemoteRenderingClientBuilder.
    • credential

      public RemoteRenderingClientBuilder credential(AzureKeyCredential accountKeyCredential)
      Sets the accountKeyCredential to use for authentication.
      Parameters:
      accountKeyCredential - the accountKeyCredential value.
      Returns:
      the RemoteRenderingClientBuilder.
    • credential

      public RemoteRenderingClientBuilder credential(TokenCredential tokenCredential)
      Use a TokenCredential for authentication.
      Parameters:
      tokenCredential - The TokenCredential used to authenticate HTTP requests.
      Returns:
      the RemoteRenderingClientBuilder.
      Throws:
      NullPointerException - If tokenCredential is null.
    • accessToken

      public RemoteRenderingClientBuilder accessToken(AccessToken accessToken)
      Use a AccessToken for authentication.
      Parameters:
      accessToken - An access token used to access the specified Azure Remote Rendering account
      Returns:
      the RemoteRenderingClientBuilder.
    • endpoint

      public RemoteRenderingClientBuilder endpoint(String endpoint)
      Sets the Remote Rendering service endpoint.

      For converting assets, it is preferable to pick a region close to the storage containing the assets. For rendering, it is strongly recommended that you pick the closest region to the devices using the service. The time taken to communicate with the server impacts the quality of the experience.

      Parameters:
      endpoint - the host value.
      Returns:
      the RemoteRenderingClientBuilder.
    • httpClient

      public RemoteRenderingClientBuilder httpClient(HttpClient httpClient)
      Sets The HTTP client used to send the request.
      Parameters:
      httpClient - the httpClient value.
      Returns:
      the RemoteRenderingClientBuilder.
    • httpLogOptions

      public RemoteRenderingClientBuilder httpLogOptions(HttpLogOptions httpLogOptions)
      Sets The logging configuration for HTTP requests and responses.
      Parameters:
      httpLogOptions - the httpLogOptions value.
      Returns:
      the RemoteRenderingClientBuilder.
    • pipeline

      public RemoteRenderingClientBuilder pipeline(HttpPipeline pipeline)
      Sets The HTTP pipeline to send requests through.
      Parameters:
      pipeline - the pipeline value.
      Returns:
      the RemoteRenderingClientBuilder.
    • retryPolicy

      public RemoteRenderingClientBuilder retryPolicy(RetryPolicy retryPolicy)
      Sets The retry policy that will attempt to retry failed requests, if applicable.
      Parameters:
      retryPolicy - the retryPolicy value.
      Returns:
      the RemoteRenderingClientBuilder.
    • configuration

      public RemoteRenderingClientBuilder configuration(Configuration configuration)
      Sets The configuration store that is used during construction of the service client.
      Parameters:
      configuration - the configuration value.
      Returns:
      the RemoteRenderingClientBuilder.
    • addPolicy

      public RemoteRenderingClientBuilder addPolicy(HttpPipelinePolicy customPolicy)
      Adds a custom Http pipeline policy.
      Parameters:
      customPolicy - The custom Http pipeline policy to add.
      Returns:
      the RemoteRenderingClientBuilder.
    • serviceVersion

      Sets the RemoteRenderingServiceVersion that is used when making API requests.

      If a service version is not provided, the service version that will be used will be the latest known service version based on the version of the client library being used. If no service version is specified, updating to a newer version the client library will have the result of potentially moving to a newer service version.

      Parameters:
      version - RemoteRenderingServiceVersion of the service to be used when making requests.
      Returns:
      The RemoteRenderingClientBuilder.
    • clientOptions

      public RemoteRenderingClientBuilder clientOptions(ClientOptions clientOptions)
      Sets the ClientOptions which enables various options to be set on the client.
      Parameters:
      clientOptions - the ClientOptions to be set on the client.
      Returns:
      The RemoteRenderingClientBuilder.