NotificationMessagesClientBuilder Class

  • java.lang.Object
    • com.azure.communication.messages.NotificationMessagesClientBuilder

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 NotificationMessagesClientBuilder.

Method Summary

Modifier and Type Method and Description
NotificationMessagesClientBuilder addPolicy(HttpPipelinePolicy customPolicy)

.

NotificationMessagesAsyncClient buildAsyncClient()

Builds an instance of NotificationMessagesAsyncClient class.

NotificationMessagesClient buildClient()

Builds an instance of NotificationMessagesClient class.

NotificationMessagesClientBuilder clientOptions(ClientOptions clientOptions)

.

NotificationMessagesClientBuilder configuration(Configuration configuration)

.

NotificationMessagesClientBuilder connectionString(String connectionString)

Set a connection string for authorization.

NotificationMessagesClientBuilder credential(KeyCredential keyCredential)

.

NotificationMessagesClientBuilder credential(TokenCredential tokenCredential)

.

NotificationMessagesClientBuilder endpoint(String endpoint)

.

NotificationMessagesClientBuilder httpClient(HttpClient httpClient)

.

NotificationMessagesClientBuilder httpLogOptions(HttpLogOptions httpLogOptions)

.

NotificationMessagesClientBuilder pipeline(HttpPipeline pipeline)

.

NotificationMessagesClientBuilder retryOptions(RetryOptions retryOptions)

.

NotificationMessagesClientBuilder retryPolicy(RetryPolicy retryPolicy)

Sets The retry policy that will attempt to retry failed requests, if applicable.

NotificationMessagesClientBuilder serviceVersion(MessagesServiceVersion serviceVersion)

Sets Service version.

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:

customPolicy

buildAsyncClient

public NotificationMessagesAsyncClient buildAsyncClient()

Builds an instance of NotificationMessagesAsyncClient class.

Returns:

an instance of NotificationMessagesAsyncClient.

buildClient

public NotificationMessagesClient buildClient()

Builds an instance of NotificationMessagesClient class.

Returns:

an instance of NotificationMessagesClient.

clientOptions

public NotificationMessagesClientBuilder clientOptions(ClientOptions clientOptions)

.

Parameters:

clientOptions

configuration

public NotificationMessagesClientBuilder configuration(Configuration configuration)

.

Parameters:

configuration

connectionString

public NotificationMessagesClientBuilder connectionString(String connectionString)

Set a connection string for authorization.

Parameters:

connectionString - valid connectionString as a string.

Returns:

the updated NotificationMessagesClientBuilder object.

credential

public NotificationMessagesClientBuilder credential(KeyCredential keyCredential)

.

Parameters:

keyCredential

credential

public NotificationMessagesClientBuilder credential(TokenCredential tokenCredential)

.

Parameters:

tokenCredential

endpoint

public NotificationMessagesClientBuilder endpoint(String endpoint)

.

Parameters:

endpoint

httpClient

public NotificationMessagesClientBuilder httpClient(HttpClient httpClient)

.

Parameters:

httpClient

httpLogOptions

public NotificationMessagesClientBuilder httpLogOptions(HttpLogOptions httpLogOptions)

.

Parameters:

httpLogOptions

pipeline

public NotificationMessagesClientBuilder pipeline(HttpPipeline pipeline)

.

Parameters:

pipeline

retryOptions

public NotificationMessagesClientBuilder retryOptions(RetryOptions retryOptions)

.

Parameters:

retryOptions

retryPolicy

public NotificationMessagesClientBuilder retryPolicy(RetryPolicy retryPolicy)

Sets The retry policy that will attempt to retry failed requests, if applicable.

Parameters:

retryPolicy - the retryPolicy value.

Returns:

the NotificationMessagesClientBuilder.

serviceVersion

public NotificationMessagesClientBuilder serviceVersion(MessagesServiceVersion serviceVersion)

Sets Service version.

Parameters:

serviceVersion - the serviceVersion value.

Returns:

the NotificationMessagesClientBuilder.

Applies to