Class RemoteRenderingClientBuilder
java.lang.Object
com.azure.mixedreality.remoterendering.RemoteRenderingClientBuilder
A builder for creating instances of RemoteRenderingClient and RemoteRenderingAsyncClient.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new RemoteRenderingClientBuilder instance. -
Method Summary
Modifier and TypeMethodDescriptionaccessToken(com.azure.core.credential.AccessToken accessToken) Use aAccessTokenfor authentication.accountDomain(String accountDomain) Sets the accountDomain.Sets the accountId.addPolicy(com.azure.core.http.policy.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(com.azure.core.util.ClientOptions clientOptions) Sets theClientOptionswhich enables various options to be set on the client.configuration(com.azure.core.util.Configuration configuration) Sets The configuration store that is used during construction of the service client.credential(com.azure.core.credential.AzureKeyCredential accountKeyCredential) Sets the accountKeyCredential to use for authentication.credential(com.azure.core.credential.TokenCredential tokenCredential) Use aTokenCredentialfor authentication.Sets the Remote Rendering service endpoint.httpClient(com.azure.core.http.HttpClient httpClient) Sets The HTTP client used to send the request.httpLogOptions(com.azure.core.http.policy.HttpLogOptions httpLogOptions) Sets The logging configuration for HTTP requests and responses.pipeline(com.azure.core.http.HttpPipeline pipeline) Sets The HTTP pipeline to send requests through.retryPolicy(com.azure.core.http.policy.RetryPolicy retryPolicy) Sets The retry policy that will attempt to retry failed requests, if applicable.Sets theRemoteRenderingServiceVersionthat 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
public RemoteRenderingClientBuilder credential(com.azure.core.credential.AzureKeyCredential accountKeyCredential) Sets the accountKeyCredential to use for authentication.- Parameters:
accountKeyCredential- the accountKeyCredential value.- Returns:
- the RemoteRenderingClientBuilder.
-
credential
public RemoteRenderingClientBuilder credential(com.azure.core.credential.TokenCredential tokenCredential) Use aTokenCredentialfor authentication.- Parameters:
tokenCredential- TheTokenCredentialused to authenticate HTTP requests.- Returns:
- the RemoteRenderingClientBuilder.
- Throws:
NullPointerException- IftokenCredentialis null.
-
accessToken
Use aAccessTokenfor 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
public RemoteRenderingClientBuilder httpLogOptions(com.azure.core.http.policy.HttpLogOptions 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
public RemoteRenderingClientBuilder addPolicy(com.azure.core.http.policy.HttpPipelinePolicy customPolicy) Adds a custom Http pipeline policy.- Parameters:
customPolicy- The custom Http pipeline policy to add.- Returns:
- the RemoteRenderingClientBuilder.
-
serviceVersion
Sets theRemoteRenderingServiceVersionthat 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-RemoteRenderingServiceVersionof the service to be used when making requests.- Returns:
- The RemoteRenderingClientBuilder.
-
clientOptions
Sets theClientOptionswhich enables various options to be set on the client.- Parameters:
clientOptions- theClientOptionsto be set on the client.- Returns:
- The RemoteRenderingClientBuilder.
-