Interface SocialMessagingAsyncClient

All Superinterfaces:
AutoCloseable, AwsClient, SdkAutoCloseable, SdkClient

@Generated("software.amazon.awssdk:codegen") @ThreadSafe public interface SocialMessagingAsyncClient extends AwsClient
Service client for accessing AWS End User Messaging Social asynchronously. This can be created using the static builder() method.The asynchronous client performs non-blocking I/O when configured with any SdkAsyncHttpClient supported in the SDK. However, full non-blocking is not guaranteed as the async client may perform blocking calls in some cases such as credentials retrieval and endpoint discovery as part of the async API call.

Amazon Web Services End User Messaging Social, also referred to as Social messaging, is a messaging service that enables application developers to incorporate WhatsApp into their existing workflows. The Amazon Web Services End User Messaging Social API provides information about the Amazon Web Services End User Messaging Social API resources, including supported HTTP methods, parameters, and schemas.

The Amazon Web Services End User Messaging Social API provides programmatic access to options that are unique to the WhatsApp Business Platform.

If you're new to the Amazon Web Services End User Messaging Social API, it's also helpful to review What is Amazon Web Services End User Messaging Social in the Amazon Web Services End User Messaging Social User Guide. The Amazon Web Services End User Messaging Social User Guide provides tutorials, code samples, and procedures that demonstrate how to use Amazon Web Services End User Messaging Social API features programmatically and how to integrate functionality into applications. The guide also provides key information, such as integration with other Amazon Web Services services, and the quotas that apply to use of the service.

Regional availability

The Amazon Web Services End User Messaging Social API is available across several Amazon Web Services Regions and it provides a dedicated endpoint for each of these Regions. For a list of all the Regions and endpoints where the API is currently available, see Amazon Web Services Service Endpoints and Amazon Web Services End User Messaging endpoints and quotas in the Amazon Web Services General Reference. To learn more about Amazon Web Services Regions, see Managing Amazon Web Services Regions in the Amazon Web Services General Reference.

In each Region, Amazon Web Services maintains multiple Availability Zones. These Availability Zones are physically isolated from each other, but are united by private, low-latency, high-throughput, and highly redundant network connections. These Availability Zones enable us to provide very high levels of availability and redundancy, while also minimizing latency. To learn more about the number of Availability Zones that are available in each Region, see Amazon Web Services Global Infrastructure.

  • Field Details

  • Method Details

    • associateWhatsAppBusinessAccount

      default CompletableFuture<AssociateWhatsAppBusinessAccountResponse> associateWhatsAppBusinessAccount(AssociateWhatsAppBusinessAccountRequest associateWhatsAppBusinessAccountRequest)

      This is only used through the Amazon Web Services console during sign-up to associate your WhatsApp Business Account to your Amazon Web Services account.

      Parameters:
      associateWhatsAppBusinessAccountRequest -
      Returns:
      A Java Future containing the result of the AssociateWhatsAppBusinessAccount operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request contains an invalid parameter value.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • InvalidParametersException One or more parameters provided to the action are not valid.
      • ThrottledRequestException The request was denied due to request throttling.
      • DependencyException Thrown when performing an action because a dependency would be broken.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SocialMessagingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • associateWhatsAppBusinessAccount

      default CompletableFuture<AssociateWhatsAppBusinessAccountResponse> associateWhatsAppBusinessAccount(Consumer<AssociateWhatsAppBusinessAccountRequest.Builder> associateWhatsAppBusinessAccountRequest)

      This is only used through the Amazon Web Services console during sign-up to associate your WhatsApp Business Account to your Amazon Web Services account.


      This is a convenience which creates an instance of the AssociateWhatsAppBusinessAccountRequest.Builder avoiding the need to create one manually via AssociateWhatsAppBusinessAccountRequest.builder()

      Parameters:
      associateWhatsAppBusinessAccountRequest - A Consumer that will call methods on AssociateWhatsAppBusinessAccountRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the AssociateWhatsAppBusinessAccount operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request contains an invalid parameter value.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • InvalidParametersException One or more parameters provided to the action are not valid.
      • ThrottledRequestException The request was denied due to request throttling.
      • DependencyException Thrown when performing an action because a dependency would be broken.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SocialMessagingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteWhatsAppMessageMedia

      default CompletableFuture<DeleteWhatsAppMessageMediaResponse> deleteWhatsAppMessageMedia(DeleteWhatsAppMessageMediaRequest deleteWhatsAppMessageMediaRequest)

      Delete a media object from the WhatsApp service. If the object is still in an Amazon S3 bucket you should delete it from there too.

      Parameters:
      deleteWhatsAppMessageMediaRequest -
      Returns:
      A Java Future containing the result of the DeleteWhatsAppMessageMedia operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request contains an invalid parameter value.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The resource was not found.
      • InvalidParametersException One or more parameters provided to the action are not valid.
      • ThrottledRequestException The request was denied due to request throttling.
      • AccessDeniedByMetaException You do not have sufficient access to perform this action.
      • InternalServiceException The request processing has failed because of an unknown error, exception, or failure.
      • DependencyException Thrown when performing an action because a dependency would be broken.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SocialMessagingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteWhatsAppMessageMedia

      default CompletableFuture<DeleteWhatsAppMessageMediaResponse> deleteWhatsAppMessageMedia(Consumer<DeleteWhatsAppMessageMediaRequest.Builder> deleteWhatsAppMessageMediaRequest)

      Delete a media object from the WhatsApp service. If the object is still in an Amazon S3 bucket you should delete it from there too.


      This is a convenience which creates an instance of the DeleteWhatsAppMessageMediaRequest.Builder avoiding the need to create one manually via DeleteWhatsAppMessageMediaRequest.builder()

      Parameters:
      deleteWhatsAppMessageMediaRequest - A Consumer that will call methods on DeleteWhatsAppMessageMediaRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteWhatsAppMessageMedia operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request contains an invalid parameter value.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The resource was not found.
      • InvalidParametersException One or more parameters provided to the action are not valid.
      • ThrottledRequestException The request was denied due to request throttling.
      • AccessDeniedByMetaException You do not have sufficient access to perform this action.
      • InternalServiceException The request processing has failed because of an unknown error, exception, or failure.
      • DependencyException Thrown when performing an action because a dependency would be broken.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SocialMessagingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • disassociateWhatsAppBusinessAccount

      default CompletableFuture<DisassociateWhatsAppBusinessAccountResponse> disassociateWhatsAppBusinessAccount(DisassociateWhatsAppBusinessAccountRequest disassociateWhatsAppBusinessAccountRequest)

      Disassociate a WhatsApp Business Account (WABA) from your Amazon Web Services account.

      Parameters:
      disassociateWhatsAppBusinessAccountRequest -
      Returns:
      A Java Future containing the result of the DisassociateWhatsAppBusinessAccount operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request contains an invalid parameter value.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The resource was not found.
      • InvalidParametersException One or more parameters provided to the action are not valid.
      • ThrottledRequestException The request was denied due to request throttling.
      • DependencyException Thrown when performing an action because a dependency would be broken.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SocialMessagingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • disassociateWhatsAppBusinessAccount

      default CompletableFuture<DisassociateWhatsAppBusinessAccountResponse> disassociateWhatsAppBusinessAccount(Consumer<DisassociateWhatsAppBusinessAccountRequest.Builder> disassociateWhatsAppBusinessAccountRequest)

      Disassociate a WhatsApp Business Account (WABA) from your Amazon Web Services account.


      This is a convenience which creates an instance of the DisassociateWhatsAppBusinessAccountRequest.Builder avoiding the need to create one manually via DisassociateWhatsAppBusinessAccountRequest.builder()

      Parameters:
      disassociateWhatsAppBusinessAccountRequest - A Consumer that will call methods on DisassociateWhatsAppBusinessAccountRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DisassociateWhatsAppBusinessAccount operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request contains an invalid parameter value.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The resource was not found.
      • InvalidParametersException One or more parameters provided to the action are not valid.
      • ThrottledRequestException The request was denied due to request throttling.
      • DependencyException Thrown when performing an action because a dependency would be broken.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SocialMessagingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getLinkedWhatsAppBusinessAccount

      default CompletableFuture<GetLinkedWhatsAppBusinessAccountResponse> getLinkedWhatsAppBusinessAccount(GetLinkedWhatsAppBusinessAccountRequest getLinkedWhatsAppBusinessAccountRequest)

      Get the details of your linked WhatsApp Business Account.

      Parameters:
      getLinkedWhatsAppBusinessAccountRequest -
      Returns:
      A Java Future containing the result of the GetLinkedWhatsAppBusinessAccount operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request contains an invalid parameter value.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The resource was not found.
      • InvalidParametersException One or more parameters provided to the action are not valid.
      • ThrottledRequestException The request was denied due to request throttling.
      • InternalServiceException The request processing has failed because of an unknown error, exception, or failure.
      • DependencyException Thrown when performing an action because a dependency would be broken.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SocialMessagingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getLinkedWhatsAppBusinessAccount

      default CompletableFuture<GetLinkedWhatsAppBusinessAccountResponse> getLinkedWhatsAppBusinessAccount(Consumer<GetLinkedWhatsAppBusinessAccountRequest.Builder> getLinkedWhatsAppBusinessAccountRequest)

      Get the details of your linked WhatsApp Business Account.


      This is a convenience which creates an instance of the GetLinkedWhatsAppBusinessAccountRequest.Builder avoiding the need to create one manually via GetLinkedWhatsAppBusinessAccountRequest.builder()

      Parameters:
      getLinkedWhatsAppBusinessAccountRequest - A Consumer that will call methods on GetLinkedWhatsAppBusinessAccountRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetLinkedWhatsAppBusinessAccount operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request contains an invalid parameter value.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The resource was not found.
      • InvalidParametersException One or more parameters provided to the action are not valid.
      • ThrottledRequestException The request was denied due to request throttling.
      • InternalServiceException The request processing has failed because of an unknown error, exception, or failure.
      • DependencyException Thrown when performing an action because a dependency would be broken.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SocialMessagingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getLinkedWhatsAppBusinessAccountPhoneNumber

      default CompletableFuture<GetLinkedWhatsAppBusinessAccountPhoneNumberResponse> getLinkedWhatsAppBusinessAccountPhoneNumber(GetLinkedWhatsAppBusinessAccountPhoneNumberRequest getLinkedWhatsAppBusinessAccountPhoneNumberRequest)

      Use your WhatsApp phone number id to get the WABA account id and phone number details.

      Parameters:
      getLinkedWhatsAppBusinessAccountPhoneNumberRequest -
      Returns:
      A Java Future containing the result of the GetLinkedWhatsAppBusinessAccountPhoneNumber operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request contains an invalid parameter value.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The resource was not found.
      • InvalidParametersException One or more parameters provided to the action are not valid.
      • ThrottledRequestException The request was denied due to request throttling.
      • InternalServiceException The request processing has failed because of an unknown error, exception, or failure.
      • DependencyException Thrown when performing an action because a dependency would be broken.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SocialMessagingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getLinkedWhatsAppBusinessAccountPhoneNumber

      default CompletableFuture<GetLinkedWhatsAppBusinessAccountPhoneNumberResponse> getLinkedWhatsAppBusinessAccountPhoneNumber(Consumer<GetLinkedWhatsAppBusinessAccountPhoneNumberRequest.Builder> getLinkedWhatsAppBusinessAccountPhoneNumberRequest)

      Use your WhatsApp phone number id to get the WABA account id and phone number details.


      This is a convenience which creates an instance of the GetLinkedWhatsAppBusinessAccountPhoneNumberRequest.Builder avoiding the need to create one manually via GetLinkedWhatsAppBusinessAccountPhoneNumberRequest.builder()

      Parameters:
      getLinkedWhatsAppBusinessAccountPhoneNumberRequest - A Consumer that will call methods on GetLinkedWhatsAppBusinessAccountPhoneNumberRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetLinkedWhatsAppBusinessAccountPhoneNumber operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request contains an invalid parameter value.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The resource was not found.
      • InvalidParametersException One or more parameters provided to the action are not valid.
      • ThrottledRequestException The request was denied due to request throttling.
      • InternalServiceException The request processing has failed because of an unknown error, exception, or failure.
      • DependencyException Thrown when performing an action because a dependency would be broken.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SocialMessagingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getWhatsAppMessageMedia

      default CompletableFuture<GetWhatsAppMessageMediaResponse> getWhatsAppMessageMedia(GetWhatsAppMessageMediaRequest getWhatsAppMessageMediaRequest)

      Get a media file from the WhatsApp service. On successful completion the media file is retrieved from Meta and stored in the specified Amazon S3 bucket. Use either destinationS3File or destinationS3PresignedUrl for the destination. If both are used then an InvalidParameterException is returned.

      Parameters:
      getWhatsAppMessageMediaRequest -
      Returns:
      A Java Future containing the result of the GetWhatsAppMessageMedia operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request contains an invalid parameter value.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The resource was not found.
      • InvalidParametersException One or more parameters provided to the action are not valid.
      • ThrottledRequestException The request was denied due to request throttling.
      • AccessDeniedByMetaException You do not have sufficient access to perform this action.
      • InternalServiceException The request processing has failed because of an unknown error, exception, or failure.
      • DependencyException Thrown when performing an action because a dependency would be broken.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SocialMessagingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getWhatsAppMessageMedia

      default CompletableFuture<GetWhatsAppMessageMediaResponse> getWhatsAppMessageMedia(Consumer<GetWhatsAppMessageMediaRequest.Builder> getWhatsAppMessageMediaRequest)

      Get a media file from the WhatsApp service. On successful completion the media file is retrieved from Meta and stored in the specified Amazon S3 bucket. Use either destinationS3File or destinationS3PresignedUrl for the destination. If both are used then an InvalidParameterException is returned.


      This is a convenience which creates an instance of the GetWhatsAppMessageMediaRequest.Builder avoiding the need to create one manually via GetWhatsAppMessageMediaRequest.builder()

      Parameters:
      getWhatsAppMessageMediaRequest - A Consumer that will call methods on GetWhatsAppMessageMediaRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetWhatsAppMessageMedia operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request contains an invalid parameter value.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The resource was not found.
      • InvalidParametersException One or more parameters provided to the action are not valid.
      • ThrottledRequestException The request was denied due to request throttling.
      • AccessDeniedByMetaException You do not have sufficient access to perform this action.
      • InternalServiceException The request processing has failed because of an unknown error, exception, or failure.
      • DependencyException Thrown when performing an action because a dependency would be broken.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SocialMessagingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listLinkedWhatsAppBusinessAccounts

      default CompletableFuture<ListLinkedWhatsAppBusinessAccountsResponse> listLinkedWhatsAppBusinessAccounts(ListLinkedWhatsAppBusinessAccountsRequest listLinkedWhatsAppBusinessAccountsRequest)

      List all WhatsApp Business Accounts linked to your Amazon Web Services account.

      Parameters:
      listLinkedWhatsAppBusinessAccountsRequest -
      Returns:
      A Java Future containing the result of the ListLinkedWhatsAppBusinessAccounts operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request contains an invalid parameter value.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The resource was not found.
      • InvalidParametersException One or more parameters provided to the action are not valid.
      • ThrottledRequestException The request was denied due to request throttling.
      • InternalServiceException The request processing has failed because of an unknown error, exception, or failure.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SocialMessagingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listLinkedWhatsAppBusinessAccounts

      default CompletableFuture<ListLinkedWhatsAppBusinessAccountsResponse> listLinkedWhatsAppBusinessAccounts(Consumer<ListLinkedWhatsAppBusinessAccountsRequest.Builder> listLinkedWhatsAppBusinessAccountsRequest)

      List all WhatsApp Business Accounts linked to your Amazon Web Services account.


      This is a convenience which creates an instance of the ListLinkedWhatsAppBusinessAccountsRequest.Builder avoiding the need to create one manually via ListLinkedWhatsAppBusinessAccountsRequest.builder()

      Parameters:
      listLinkedWhatsAppBusinessAccountsRequest - A Consumer that will call methods on ListLinkedWhatsAppBusinessAccountsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListLinkedWhatsAppBusinessAccounts operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request contains an invalid parameter value.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The resource was not found.
      • InvalidParametersException One or more parameters provided to the action are not valid.
      • ThrottledRequestException The request was denied due to request throttling.
      • InternalServiceException The request processing has failed because of an unknown error, exception, or failure.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SocialMessagingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listLinkedWhatsAppBusinessAccountsPaginator

      default ListLinkedWhatsAppBusinessAccountsPublisher listLinkedWhatsAppBusinessAccountsPaginator(ListLinkedWhatsAppBusinessAccountsRequest listLinkedWhatsAppBusinessAccountsRequest)

      This is a variant of listLinkedWhatsAppBusinessAccounts(software.amazon.awssdk.services.socialmessaging.model.ListLinkedWhatsAppBusinessAccountsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.socialmessaging.paginators.ListLinkedWhatsAppBusinessAccountsPublisher publisher = client.listLinkedWhatsAppBusinessAccountsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.socialmessaging.paginators.ListLinkedWhatsAppBusinessAccountsPublisher publisher = client.listLinkedWhatsAppBusinessAccountsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.socialmessaging.model.ListLinkedWhatsAppBusinessAccountsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.socialmessaging.model.ListLinkedWhatsAppBusinessAccountsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listLinkedWhatsAppBusinessAccounts(software.amazon.awssdk.services.socialmessaging.model.ListLinkedWhatsAppBusinessAccountsRequest) operation.

      Parameters:
      listLinkedWhatsAppBusinessAccountsRequest -
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request contains an invalid parameter value.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The resource was not found.
      • InvalidParametersException One or more parameters provided to the action are not valid.
      • ThrottledRequestException The request was denied due to request throttling.
      • InternalServiceException The request processing has failed because of an unknown error, exception, or failure.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SocialMessagingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listLinkedWhatsAppBusinessAccountsPaginator

      default ListLinkedWhatsAppBusinessAccountsPublisher listLinkedWhatsAppBusinessAccountsPaginator(Consumer<ListLinkedWhatsAppBusinessAccountsRequest.Builder> listLinkedWhatsAppBusinessAccountsRequest)

      This is a variant of listLinkedWhatsAppBusinessAccounts(software.amazon.awssdk.services.socialmessaging.model.ListLinkedWhatsAppBusinessAccountsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.socialmessaging.paginators.ListLinkedWhatsAppBusinessAccountsPublisher publisher = client.listLinkedWhatsAppBusinessAccountsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.socialmessaging.paginators.ListLinkedWhatsAppBusinessAccountsPublisher publisher = client.listLinkedWhatsAppBusinessAccountsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.socialmessaging.model.ListLinkedWhatsAppBusinessAccountsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.socialmessaging.model.ListLinkedWhatsAppBusinessAccountsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listLinkedWhatsAppBusinessAccounts(software.amazon.awssdk.services.socialmessaging.model.ListLinkedWhatsAppBusinessAccountsRequest) operation.


      This is a convenience which creates an instance of the ListLinkedWhatsAppBusinessAccountsRequest.Builder avoiding the need to create one manually via ListLinkedWhatsAppBusinessAccountsRequest.builder()

      Parameters:
      listLinkedWhatsAppBusinessAccountsRequest - A Consumer that will call methods on ListLinkedWhatsAppBusinessAccountsRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request contains an invalid parameter value.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The resource was not found.
      • InvalidParametersException One or more parameters provided to the action are not valid.
      • ThrottledRequestException The request was denied due to request throttling.
      • InternalServiceException The request processing has failed because of an unknown error, exception, or failure.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SocialMessagingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listTagsForResource

      default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)

      List all tags associated with a resource, such as a phone number or WABA.

      Parameters:
      listTagsForResourceRequest -
      Returns:
      A Java Future containing the result of the ListTagsForResource operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request contains an invalid parameter value.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • InvalidParametersException One or more parameters provided to the action are not valid.
      • ThrottledRequestException The request was denied due to request throttling.
      • InternalServiceException The request processing has failed because of an unknown error, exception, or failure.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SocialMessagingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listTagsForResource

      default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)

      List all tags associated with a resource, such as a phone number or WABA.


      This is a convenience which creates an instance of the ListTagsForResourceRequest.Builder avoiding the need to create one manually via ListTagsForResourceRequest.builder()

      Parameters:
      listTagsForResourceRequest - A Consumer that will call methods on ListTagsForResourceRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListTagsForResource operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request contains an invalid parameter value.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • InvalidParametersException One or more parameters provided to the action are not valid.
      • ThrottledRequestException The request was denied due to request throttling.
      • InternalServiceException The request processing has failed because of an unknown error, exception, or failure.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SocialMessagingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • postWhatsAppMessageMedia

      default CompletableFuture<PostWhatsAppMessageMediaResponse> postWhatsAppMessageMedia(PostWhatsAppMessageMediaRequest postWhatsAppMessageMediaRequest)

      Upload a media file to the WhatsApp service. Only the specified originationPhoneNumberId has the permissions to send the media file when using SendWhatsAppMessage. You must use either sourceS3File or sourceS3PresignedUrl for the source. If both or neither are specified then an InvalidParameterException is returned.

      Parameters:
      postWhatsAppMessageMediaRequest -
      Returns:
      A Java Future containing the result of the PostWhatsAppMessageMedia operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request contains an invalid parameter value.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The resource was not found.
      • InvalidParametersException One or more parameters provided to the action are not valid.
      • ThrottledRequestException The request was denied due to request throttling.
      • AccessDeniedByMetaException You do not have sufficient access to perform this action.
      • InternalServiceException The request processing has failed because of an unknown error, exception, or failure.
      • DependencyException Thrown when performing an action because a dependency would be broken.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SocialMessagingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • postWhatsAppMessageMedia

      default CompletableFuture<PostWhatsAppMessageMediaResponse> postWhatsAppMessageMedia(Consumer<PostWhatsAppMessageMediaRequest.Builder> postWhatsAppMessageMediaRequest)

      Upload a media file to the WhatsApp service. Only the specified originationPhoneNumberId has the permissions to send the media file when using SendWhatsAppMessage. You must use either sourceS3File or sourceS3PresignedUrl for the source. If both or neither are specified then an InvalidParameterException is returned.


      This is a convenience which creates an instance of the PostWhatsAppMessageMediaRequest.Builder avoiding the need to create one manually via PostWhatsAppMessageMediaRequest.builder()

      Parameters:
      postWhatsAppMessageMediaRequest - A Consumer that will call methods on PostWhatsAppMessageMediaRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the PostWhatsAppMessageMedia operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request contains an invalid parameter value.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The resource was not found.
      • InvalidParametersException One or more parameters provided to the action are not valid.
      • ThrottledRequestException The request was denied due to request throttling.
      • AccessDeniedByMetaException You do not have sufficient access to perform this action.
      • InternalServiceException The request processing has failed because of an unknown error, exception, or failure.
      • DependencyException Thrown when performing an action because a dependency would be broken.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SocialMessagingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • putWhatsAppBusinessAccountEventDestinations

      default CompletableFuture<PutWhatsAppBusinessAccountEventDestinationsResponse> putWhatsAppBusinessAccountEventDestinations(PutWhatsAppBusinessAccountEventDestinationsRequest putWhatsAppBusinessAccountEventDestinationsRequest)

      Add an event destination to log event data from WhatsApp for a WhatsApp Business Account (WABA). A WABA can only have one event destination at a time. All resources associated with the WABA use the same event destination.

      Parameters:
      putWhatsAppBusinessAccountEventDestinationsRequest -
      Returns:
      A Java Future containing the result of the PutWhatsAppBusinessAccountEventDestinations operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request contains an invalid parameter value.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • InvalidParametersException One or more parameters provided to the action are not valid.
      • ThrottledRequestException The request was denied due to request throttling.
      • InternalServiceException The request processing has failed because of an unknown error, exception, or failure.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SocialMessagingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • putWhatsAppBusinessAccountEventDestinations

      default CompletableFuture<PutWhatsAppBusinessAccountEventDestinationsResponse> putWhatsAppBusinessAccountEventDestinations(Consumer<PutWhatsAppBusinessAccountEventDestinationsRequest.Builder> putWhatsAppBusinessAccountEventDestinationsRequest)

      Add an event destination to log event data from WhatsApp for a WhatsApp Business Account (WABA). A WABA can only have one event destination at a time. All resources associated with the WABA use the same event destination.


      This is a convenience which creates an instance of the PutWhatsAppBusinessAccountEventDestinationsRequest.Builder avoiding the need to create one manually via PutWhatsAppBusinessAccountEventDestinationsRequest.builder()

      Parameters:
      putWhatsAppBusinessAccountEventDestinationsRequest - A Consumer that will call methods on PutWhatsAppBusinessAccountEventDestinationsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the PutWhatsAppBusinessAccountEventDestinations operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request contains an invalid parameter value.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • InvalidParametersException One or more parameters provided to the action are not valid.
      • ThrottledRequestException The request was denied due to request throttling.
      • InternalServiceException The request processing has failed because of an unknown error, exception, or failure.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SocialMessagingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • sendWhatsAppMessage

      default CompletableFuture<SendWhatsAppMessageResponse> sendWhatsAppMessage(SendWhatsAppMessageRequest sendWhatsAppMessageRequest)

      Send a WhatsApp message. For examples of sending a message using the Amazon Web Services CLI, see Sending messages in the Amazon Web Services End User Messaging Social User Guide .

      Parameters:
      sendWhatsAppMessageRequest -
      Returns:
      A Java Future containing the result of the SendWhatsAppMessage operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request contains an invalid parameter value.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The resource was not found.
      • InvalidParametersException One or more parameters provided to the action are not valid.
      • ThrottledRequestException The request was denied due to request throttling.
      • InternalServiceException The request processing has failed because of an unknown error, exception, or failure.
      • DependencyException Thrown when performing an action because a dependency would be broken.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SocialMessagingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • sendWhatsAppMessage

      default CompletableFuture<SendWhatsAppMessageResponse> sendWhatsAppMessage(Consumer<SendWhatsAppMessageRequest.Builder> sendWhatsAppMessageRequest)

      Send a WhatsApp message. For examples of sending a message using the Amazon Web Services CLI, see Sending messages in the Amazon Web Services End User Messaging Social User Guide .


      This is a convenience which creates an instance of the SendWhatsAppMessageRequest.Builder avoiding the need to create one manually via SendWhatsAppMessageRequest.builder()

      Parameters:
      sendWhatsAppMessageRequest - A Consumer that will call methods on SendWhatsAppMessageRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the SendWhatsAppMessage operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request contains an invalid parameter value.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ResourceNotFoundException The resource was not found.
      • InvalidParametersException One or more parameters provided to the action are not valid.
      • ThrottledRequestException The request was denied due to request throttling.
      • InternalServiceException The request processing has failed because of an unknown error, exception, or failure.
      • DependencyException Thrown when performing an action because a dependency would be broken.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SocialMessagingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • tagResource

      default CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest)

      Adds or overwrites only the specified tags for the specified resource. When you specify an existing tag key, the value is overwritten with the new value.

      Parameters:
      tagResourceRequest -
      Returns:
      A Java Future containing the result of the TagResource operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request contains an invalid parameter value.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • InvalidParametersException One or more parameters provided to the action are not valid.
      • ThrottledRequestException The request was denied due to request throttling.
      • InternalServiceException The request processing has failed because of an unknown error, exception, or failure.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SocialMessagingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • tagResource

      default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)

      Adds or overwrites only the specified tags for the specified resource. When you specify an existing tag key, the value is overwritten with the new value.


      This is a convenience which creates an instance of the TagResourceRequest.Builder avoiding the need to create one manually via TagResourceRequest.builder()

      Parameters:
      tagResourceRequest - A Consumer that will call methods on TagResourceRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the TagResource operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request contains an invalid parameter value.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • InvalidParametersException One or more parameters provided to the action are not valid.
      • ThrottledRequestException The request was denied due to request throttling.
      • InternalServiceException The request processing has failed because of an unknown error, exception, or failure.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SocialMessagingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • untagResource

      default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest)

      Removes the specified tags from a resource.

      Parameters:
      untagResourceRequest -
      Returns:
      A Java Future containing the result of the UntagResource operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request contains an invalid parameter value.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • InvalidParametersException One or more parameters provided to the action are not valid.
      • ThrottledRequestException The request was denied due to request throttling.
      • InternalServiceException The request processing has failed because of an unknown error, exception, or failure.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SocialMessagingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • untagResource

      default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)

      Removes the specified tags from a resource.


      This is a convenience which creates an instance of the UntagResourceRequest.Builder avoiding the need to create one manually via UntagResourceRequest.builder()

      Parameters:
      untagResourceRequest - A Consumer that will call methods on UntagResourceRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UntagResource operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ValidationException The request contains an invalid parameter value.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • InvalidParametersException One or more parameters provided to the action are not valid.
      • ThrottledRequestException The request was denied due to request throttling.
      • InternalServiceException The request processing has failed because of an unknown error, exception, or failure.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SocialMessagingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • serviceClientConfiguration

      default SocialMessagingServiceClientConfiguration serviceClientConfiguration()
      Description copied from interface: SdkClient
      The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration
      Specified by:
      serviceClientConfiguration in interface AwsClient
      Specified by:
      serviceClientConfiguration in interface SdkClient
      Returns:
      SdkServiceClientConfiguration
    • create

      static SocialMessagingAsyncClient create()
      Create a SocialMessagingAsyncClient with the region loaded from the DefaultAwsRegionProviderChain and credentials loaded from the DefaultCredentialsProvider.
    • builder

      Create a builder that can be used to configure and create a SocialMessagingAsyncClient.