VoiceLiveClientBuilder Class

  • java.lang.Object
    • com.azure.ai.voicelive.VoiceLiveClientBuilder

Implements

public final class VoiceLiveClientBuilder
implements TokenCredentialTrait<VoiceLiveClientBuilder>, KeyCredentialTrait<VoiceLiveClientBuilder>, EndpointTrait<VoiceLiveClientBuilder>

Builder for creating instances of VoiceLiveAsyncClient.

Constructor Summary

Constructor Description
VoiceLiveClientBuilder()

Creates a new instance of VoiceLiveClientBuilder.

Method Summary

Modifier and Type Method and Description
VoiceLiveAsyncClient buildAsyncClient()

Builds a VoiceLiveAsyncClient instance with the configured options.

VoiceLiveClientBuilder clientOptions(ClientOptions clientOptions)

Sets the client options such as application ID and custom headers to set on a request.

VoiceLiveClientBuilder credential(KeyCredential keyCredential)

Sets the KeyCredential used for authentication.

VoiceLiveClientBuilder credential(TokenCredential tokenCredential)

Sets the TokenCredential used for authentication.

VoiceLiveClientBuilder endpoint(String endpoint)

Sets the service endpoint.

VoiceLiveClientBuilder serviceVersion(VoiceLiveServiceVersion serviceVersion)

Sets the service version.

Methods inherited from java.lang.Object

Constructor Details

VoiceLiveClientBuilder

public VoiceLiveClientBuilder()

Creates a new instance of VoiceLiveClientBuilder.

Method Details

buildAsyncClient

public VoiceLiveAsyncClient buildAsyncClient()

Builds a VoiceLiveAsyncClient instance with the configured options.

Returns:

A new VoiceLiveAsyncClient instance.

clientOptions

public VoiceLiveClientBuilder clientOptions(ClientOptions clientOptions)

Sets the client options such as application ID and custom headers to set on a request.

Parameters:

clientOptions - The client options.

Returns:

The updated VoiceLiveClientBuilder instance.

credential

public VoiceLiveClientBuilder credential(KeyCredential keyCredential)

Sets the KeyCredential used for authentication.

Parameters:

keyCredential - The API key credential.

Returns:

The updated VoiceLiveClientBuilder instance.

credential

public VoiceLiveClientBuilder credential(TokenCredential tokenCredential)

Sets the TokenCredential used for authentication.

Parameters:

tokenCredential - The token credential.

Returns:

The updated VoiceLiveClientBuilder instance.

endpoint

public VoiceLiveClientBuilder endpoint(String endpoint)

Sets the service endpoint.

Parameters:

endpoint - The service endpoint URL.

Returns:

The updated VoiceLiveClientBuilder instance.

serviceVersion

public VoiceLiveClientBuilder serviceVersion(VoiceLiveServiceVersion serviceVersion)

Sets the service version.

Parameters:

serviceVersion - The service version.

Returns:

The updated VoiceLiveClientBuilder instance.

Applies to