NotificationMessagesClientBuilder Class
- java.
lang. Object - com.
azure. communication. messages. NotificationMessagesClientBuilder
- com.
Implements
public final class NotificationMessagesClientBuilder
implements HttpTrait<NotificationMessagesClientBuilder>, ConfigurationTrait<NotificationMessagesClientBuilder>, TokenCredentialTrait<NotificationMessagesClientBuilder>, KeyCredentialTrait<NotificationMessagesClientBuilder>, EndpointTrait<NotificationMessagesClientBuilder>, ConnectionStringTrait<NotificationMessagesClientBuilder>
A builder for creating a new instance of the NotificationMessagesClient type.
Constructor Summary
Constructor | Description |
---|---|
NotificationMessagesClientBuilder() |
Create an instance of the Notification |
Method Summary
Methods inherited from java.lang.Object
Constructor Details
NotificationMessagesClientBuilder
public NotificationMessagesClientBuilder()
Create an instance of the NotificationMessagesClientBuilder.
Method Details
addPolicy
public NotificationMessagesClientBuilder addPolicy(HttpPipelinePolicy customPolicy)
.
Parameters:
buildAsyncClient
public NotificationMessagesAsyncClient buildAsyncClient()
Builds an instance of NotificationMessagesAsyncClient class.
Returns:
buildClient
public NotificationMessagesClient buildClient()
Builds an instance of NotificationMessagesClient class.
Returns:
clientOptions
public NotificationMessagesClientBuilder clientOptions(ClientOptions clientOptions)
.
Parameters:
configuration
public NotificationMessagesClientBuilder configuration(Configuration configuration)
.
Parameters:
connectionString
public NotificationMessagesClientBuilder connectionString(String connectionString)
Set a connection string for authorization.
Parameters:
Returns:
credential
public NotificationMessagesClientBuilder credential(KeyCredential keyCredential)
.
Parameters:
credential
public NotificationMessagesClientBuilder credential(TokenCredential tokenCredential)
.
Parameters:
endpoint
public NotificationMessagesClientBuilder endpoint(String endpoint)
.
Parameters:
httpClient
public NotificationMessagesClientBuilder httpClient(HttpClient httpClient)
.
Parameters:
httpLogOptions
public NotificationMessagesClientBuilder httpLogOptions(HttpLogOptions httpLogOptions)
.
Parameters:
pipeline
public NotificationMessagesClientBuilder pipeline(HttpPipeline pipeline)
.
Parameters:
retryOptions
public NotificationMessagesClientBuilder retryOptions(RetryOptions retryOptions)
.
Parameters:
retryPolicy
public NotificationMessagesClientBuilder retryPolicy(RetryPolicy retryPolicy)
Sets The retry policy that will attempt to retry failed requests, if applicable.
Parameters:
Returns:
serviceVersion
public NotificationMessagesClientBuilder serviceVersion(MessagesServiceVersion serviceVersion)
Sets Service version.
Parameters:
Returns:
Applies to
Azure SDK for Java