Class RemoteRenderingClientBuilder
java.lang.Object
com.azure.mixedreality.remoterendering.RemoteRenderingClientBuilder
A builder for creating instances of RemoteRenderingClient and RemoteRenderingAsyncClient.
-
Constructor Summary
ConstructorDescriptionConstructs a new RemoteRenderingClientBuilder instance. -
Method Summary
Modifier and TypeMethodDescriptionaccessToken
(AccessToken accessToken) Use aAccessToken
for authentication.accountDomain
(String accountDomain) Sets the accountDomain.Sets the accountId.addPolicy
(HttpPipelinePolicy customPolicy) Adds a custom Http pipeline policy.Builds and returns a RemoteRenderingAsyncClient instance from the provided parameters.Builds and returns a RemoteRenderingClient instance from the provided parameters.clientOptions
(ClientOptions clientOptions) Sets theClientOptions
which enables various options to be set on the client.configuration
(Configuration configuration) Sets The configuration store that is used during construction of the service client.credential
(AzureKeyCredential accountKeyCredential) Sets the accountKeyCredential to use for authentication.credential
(TokenCredential tokenCredential) Use aTokenCredential
for authentication.Sets the Remote Rendering service endpoint.httpClient
(HttpClient httpClient) Sets The HTTP client used to send the request.httpLogOptions
(HttpLogOptions httpLogOptions) Sets The logging configuration for HTTP requests and responses.pipeline
(HttpPipeline pipeline) Sets The HTTP pipeline to send requests through.retryPolicy
(RetryPolicy retryPolicy) Sets The retry policy that will attempt to retry failed requests, if applicable.Sets theRemoteRenderingServiceVersion
that is used when making API requests.
-
Constructor Details
-
RemoteRenderingClientBuilder
public RemoteRenderingClientBuilder()Constructs a new RemoteRenderingClientBuilder instance.
-
-
Method Details
-
buildClient
Builds and returns a RemoteRenderingClient instance from the provided parameters.- Returns:
- the RemoteRenderingClient instance.
-
buildAsyncClient
Builds and returns a RemoteRenderingAsyncClient instance from the provided parameters.- Returns:
- the RemoteRenderingAsyncClient instance.
-
accountId
Sets the accountId.- Parameters:
accountId
- the accountId value.- Returns:
- the RemoteRenderingClientBuilder.
-
accountDomain
Sets the accountDomain.- Parameters:
accountDomain
- the accountDomain value.- Returns:
- the RemoteRenderingClientBuilder.
-
credential
Sets the accountKeyCredential to use for authentication.- Parameters:
accountKeyCredential
- the accountKeyCredential value.- Returns:
- the RemoteRenderingClientBuilder.
-
credential
Use aTokenCredential
for authentication.- Parameters:
tokenCredential
- TheTokenCredential
used to authenticate HTTP requests.- Returns:
- the RemoteRenderingClientBuilder.
- Throws:
NullPointerException
- IftokenCredential
is null.
-
accessToken
Use aAccessToken
for authentication.- Parameters:
accessToken
- An access token used to access the specified Azure Remote Rendering account- Returns:
- the RemoteRenderingClientBuilder.
-
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
Sets The HTTP client used to send the request.- Parameters:
httpClient
- the httpClient value.- Returns:
- the RemoteRenderingClientBuilder.
-
httpLogOptions
Sets The logging configuration for HTTP requests and responses.- Parameters:
httpLogOptions
- the httpLogOptions value.- Returns:
- the RemoteRenderingClientBuilder.
-
pipeline
Sets The HTTP pipeline to send requests through.- Parameters:
pipeline
- the pipeline value.- Returns:
- the RemoteRenderingClientBuilder.
-
retryPolicy
Sets The retry policy that will attempt to retry failed requests, if applicable.- Parameters:
retryPolicy
- the retryPolicy value.- Returns:
- the RemoteRenderingClientBuilder.
-
configuration
Sets The configuration store that is used during construction of the service client.- Parameters:
configuration
- the configuration value.- Returns:
- the RemoteRenderingClientBuilder.
-
addPolicy
Adds a custom Http pipeline policy.- Parameters:
customPolicy
- The custom Http pipeline policy to add.- Returns:
- the RemoteRenderingClientBuilder.
-
serviceVersion
Sets theRemoteRenderingServiceVersion
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
Sets theClientOptions
which enables various options to be set on the client.- Parameters:
clientOptions
- theClientOptions
to be set on the client.- Returns:
- The RemoteRenderingClientBuilder.
-