VoiceLiveClientBuilder Class
- java.
lang. Object - com.
azure. ai. voicelive. VoiceLiveClientBuilder
- com.
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 Voice |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Voice |
buildAsyncClient()
Builds a VoiceLiveAsyncClient instance with the configured options. |
|
Voice |
clientOptions(ClientOptions clientOptions)
Sets the client options such as application ID and custom headers to set on a request. |
|
Voice |
credential(KeyCredential keyCredential)
Sets the KeyCredential used for authentication. |
|
Voice |
credential(TokenCredential tokenCredential)
Sets the TokenCredential used for authentication. |
|
Voice |
endpoint(String endpoint)
Sets the service endpoint. |
|
Voice |
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:
clientOptions
public VoiceLiveClientBuilder clientOptions(ClientOptions clientOptions)
Sets the client options such as application ID and custom headers to set on a request.
Parameters:
Returns:
credential
public VoiceLiveClientBuilder credential(KeyCredential keyCredential)
Sets the KeyCredential used for authentication.
Parameters:
Returns:
credential
public VoiceLiveClientBuilder credential(TokenCredential tokenCredential)
Sets the TokenCredential used for authentication.
Parameters:
Returns:
endpoint
public VoiceLiveClientBuilder endpoint(String endpoint)
Sets the service endpoint.
Parameters:
Returns:
serviceVersion
public VoiceLiveClientBuilder serviceVersion(VoiceLiveServiceVersion serviceVersion)
Sets the service version.
Parameters:
Returns: