CommunicationIdentityClientBuilder Class
- java.
lang. Object - com.
azure. communication. administration. CommunicationIdentityClientBuilder
- com.
public final class CommunicationIdentityClientBuilder
CommunicationIdentityClientBuilder that creates CommunicationIdentityAsyncClient and CommunicationIdentityClient.
Constructor Summary
| Constructor | Description | |
|---|---|---|
| CommunicationIdentityClientBuilder() | ||
Method Summary
Methods inherited from java.lang.Object
Constructor Details
CommunicationIdentityClientBuilder
public CommunicationIdentityClientBuilder()
Method Details
accessKey
public CommunicationIdentityClientBuilder accessKey(String accessKey)
Set credential to use
Parameters:
Returns:
addPolicy
public CommunicationIdentityClientBuilder addPolicy(HttpPipelinePolicy customPolicy)
Apply additional HttpPipelinePolicy
Parameters:
Returns:
buildAsyncClient
public CommunicationIdentityAsyncClient buildAsyncClient()
Create asynchronous client applying HMACAuthenticationPolicy, UserAgentPolicy, RetryPolicy, and CookiePolicy. Additional HttpPolicies specified by additionalPolicies will be applied after them
Returns:
buildClient
public CommunicationIdentityClient buildClient()
Create synchronous client applying HmacAuthenticationPolicy, UserAgentPolicy, RetryPolicy, and CookiePolicy. Additional HttpPolicies specified by additionalPolicies will be applied after them
Returns:
configuration
public CommunicationIdentityClientBuilder configuration(Configuration configuration)
Sets the configuration object used to retrieve environment configuration values during building of the client.
Parameters:
Returns:
connectionString
public CommunicationIdentityClientBuilder connectionString(String connectionString)
Set endpoint and credential to use
Parameters:
Returns:
endpoint
public CommunicationIdentityClientBuilder endpoint(String endpoint)
Set endpoint of the service
Parameters:
Returns:
httpClient
public CommunicationIdentityClientBuilder httpClient(HttpClient httpClient)
Set httpClient to use
Parameters:
Returns:
httpLogOptions
public CommunicationIdentityClientBuilder httpLogOptions(HttpLogOptions logOptions)
Sets the HttpLogOptions for service requests.
Parameters:
Returns:
pipeline
public CommunicationIdentityClientBuilder pipeline(HttpPipeline pipeline)
Set endpoint of the service
Parameters:
Returns:
serviceVersion
public CommunicationIdentityClientBuilder serviceVersion(CommunicationIdentityServiceVersion version)
Sets the CommunicationIdentityServiceVersion 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 of the client library will have the result of potentially moving to a newer service version.
Targeting a specific service version may also mean that the service will return an error for newer APIs.
Parameters:
Returns: