All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awssdk.services.pinpointsmsvoice.PinpointSmsVoiceAsyncClient Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Pinpoint SMS Voice module holds the client classes that are used for communicating with Pinpoint SMS Voice.

There is a newer version: 2.28.4
Show newest version
/*
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */

package software.amazon.awssdk.services.pinpointsmsvoice;

import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.annotations.SdkPublicApi;
import software.amazon.awssdk.annotations.ThreadSafe;
import software.amazon.awssdk.awscore.AwsClient;
import software.amazon.awssdk.services.pinpointsmsvoice.model.CreateConfigurationSetEventDestinationRequest;
import software.amazon.awssdk.services.pinpointsmsvoice.model.CreateConfigurationSetEventDestinationResponse;
import software.amazon.awssdk.services.pinpointsmsvoice.model.CreateConfigurationSetRequest;
import software.amazon.awssdk.services.pinpointsmsvoice.model.CreateConfigurationSetResponse;
import software.amazon.awssdk.services.pinpointsmsvoice.model.DeleteConfigurationSetEventDestinationRequest;
import software.amazon.awssdk.services.pinpointsmsvoice.model.DeleteConfigurationSetEventDestinationResponse;
import software.amazon.awssdk.services.pinpointsmsvoice.model.DeleteConfigurationSetRequest;
import software.amazon.awssdk.services.pinpointsmsvoice.model.DeleteConfigurationSetResponse;
import software.amazon.awssdk.services.pinpointsmsvoice.model.GetConfigurationSetEventDestinationsRequest;
import software.amazon.awssdk.services.pinpointsmsvoice.model.GetConfigurationSetEventDestinationsResponse;
import software.amazon.awssdk.services.pinpointsmsvoice.model.ListConfigurationSetsRequest;
import software.amazon.awssdk.services.pinpointsmsvoice.model.ListConfigurationSetsResponse;
import software.amazon.awssdk.services.pinpointsmsvoice.model.SendVoiceMessageRequest;
import software.amazon.awssdk.services.pinpointsmsvoice.model.SendVoiceMessageResponse;
import software.amazon.awssdk.services.pinpointsmsvoice.model.UpdateConfigurationSetEventDestinationRequest;
import software.amazon.awssdk.services.pinpointsmsvoice.model.UpdateConfigurationSetEventDestinationResponse;

/**
 * Service client for accessing Pinpoint SMS Voice asynchronously. This can be created using the static
 * {@link #builder()} method.The asynchronous client performs non-blocking I/O when configured with any
 * {@code 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.
 *
 * Pinpoint SMS and Voice Messaging public facing APIs
 */
@Generated("software.amazon.awssdk:codegen")
@SdkPublicApi
@ThreadSafe
public interface PinpointSmsVoiceAsyncClient extends AwsClient {
    String SERVICE_NAME = "sms-voice";

    /**
     * Value for looking up the service's metadata from the
     * {@link software.amazon.awssdk.regions.ServiceMetadataProvider}.
     */
    String SERVICE_METADATA_ID = "sms-voice.pinpoint";

    /**
     * Create a new configuration set. After you create the configuration set, you can add one or more event
     * destinations to it.
     *
     * @param createConfigurationSetRequest
     *        A request to create a new configuration set.
     * @return A Java Future containing the result of the CreateConfigurationSet 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 * {@link Throwable#getCause} to retrieve the underlying exception. *
    *
  • TooManyRequestsException TooManyRequestsException
  • *
  • BadRequestException BadRequestException
  • *
  • LimitExceededException LimitExceededException
  • *
  • InternalServiceErrorException InternalServiceErrorException
  • *
  • AlreadyExistsException AlreadyExistsException
  • *
  • 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.
  • *
  • PinpointSmsVoiceException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample PinpointSmsVoiceAsyncClient.CreateConfigurationSet * @see AWS API Documentation */ default CompletableFuture createConfigurationSet( CreateConfigurationSetRequest createConfigurationSetRequest) { throw new UnsupportedOperationException(); } /** * Create a new configuration set. After you create the configuration set, you can add one or more event * destinations to it.
*

* This is a convenience which creates an instance of the {@link CreateConfigurationSetRequest.Builder} avoiding the * need to create one manually via {@link CreateConfigurationSetRequest#builder()} *

* * @param createConfigurationSetRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.pinpointsmsvoice.model.CreateConfigurationSetRequest.Builder} to * create a request. A request to create a new configuration set. * @return A Java Future containing the result of the CreateConfigurationSet 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 * {@link Throwable#getCause} to retrieve the underlying exception. *
    *
  • TooManyRequestsException TooManyRequestsException
  • *
  • BadRequestException BadRequestException
  • *
  • LimitExceededException LimitExceededException
  • *
  • InternalServiceErrorException InternalServiceErrorException
  • *
  • AlreadyExistsException AlreadyExistsException
  • *
  • 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.
  • *
  • PinpointSmsVoiceException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample PinpointSmsVoiceAsyncClient.CreateConfigurationSet * @see AWS API Documentation */ default CompletableFuture createConfigurationSet( Consumer createConfigurationSetRequest) { return createConfigurationSet(CreateConfigurationSetRequest.builder().applyMutation(createConfigurationSetRequest) .build()); } /** * Create a new event destination in a configuration set. * * @param createConfigurationSetEventDestinationRequest * Create a new event destination in a configuration set. * @return A Java Future containing the result of the CreateConfigurationSetEventDestination 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 * {@link Throwable#getCause} to retrieve the underlying exception. *
    *
  • BadRequestException BadRequestException
  • *
  • LimitExceededException LimitExceededException
  • *
  • InternalServiceErrorException InternalServiceErrorException
  • *
  • NotFoundException NotFoundException
  • *
  • TooManyRequestsException TooManyRequestsException
  • *
  • AlreadyExistsException AlreadyExistsException
  • *
  • 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.
  • *
  • PinpointSmsVoiceException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample PinpointSmsVoiceAsyncClient.CreateConfigurationSetEventDestination * @see AWS API Documentation */ default CompletableFuture createConfigurationSetEventDestination( CreateConfigurationSetEventDestinationRequest createConfigurationSetEventDestinationRequest) { throw new UnsupportedOperationException(); } /** * Create a new event destination in a configuration set.
*

* This is a convenience which creates an instance of the * {@link CreateConfigurationSetEventDestinationRequest.Builder} avoiding the need to create one manually via * {@link CreateConfigurationSetEventDestinationRequest#builder()} *

* * @param createConfigurationSetEventDestinationRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.pinpointsmsvoice.model.CreateConfigurationSetEventDestinationRequest.Builder} * to create a request. Create a new event destination in a configuration set. * @return A Java Future containing the result of the CreateConfigurationSetEventDestination 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 * {@link Throwable#getCause} to retrieve the underlying exception. *
    *
  • BadRequestException BadRequestException
  • *
  • LimitExceededException LimitExceededException
  • *
  • InternalServiceErrorException InternalServiceErrorException
  • *
  • NotFoundException NotFoundException
  • *
  • TooManyRequestsException TooManyRequestsException
  • *
  • AlreadyExistsException AlreadyExistsException
  • *
  • 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.
  • *
  • PinpointSmsVoiceException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample PinpointSmsVoiceAsyncClient.CreateConfigurationSetEventDestination * @see AWS API Documentation */ default CompletableFuture createConfigurationSetEventDestination( Consumer createConfigurationSetEventDestinationRequest) { return createConfigurationSetEventDestination(CreateConfigurationSetEventDestinationRequest.builder() .applyMutation(createConfigurationSetEventDestinationRequest).build()); } /** * Deletes an existing configuration set. * * @param deleteConfigurationSetRequest * @return A Java Future containing the result of the DeleteConfigurationSet 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 * {@link Throwable#getCause} to retrieve the underlying exception. *
    *
  • NotFoundException NotFoundException
  • *
  • TooManyRequestsException TooManyRequestsException
  • *
  • BadRequestException BadRequestException
  • *
  • InternalServiceErrorException InternalServiceErrorException
  • *
  • 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.
  • *
  • PinpointSmsVoiceException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample PinpointSmsVoiceAsyncClient.DeleteConfigurationSet * @see AWS API Documentation */ default CompletableFuture deleteConfigurationSet( DeleteConfigurationSetRequest deleteConfigurationSetRequest) { throw new UnsupportedOperationException(); } /** * Deletes an existing configuration set.
*

* This is a convenience which creates an instance of the {@link DeleteConfigurationSetRequest.Builder} avoiding the * need to create one manually via {@link DeleteConfigurationSetRequest#builder()} *

* * @param deleteConfigurationSetRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.pinpointsmsvoice.model.DeleteConfigurationSetRequest.Builder} to * create a request. * @return A Java Future containing the result of the DeleteConfigurationSet 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 * {@link Throwable#getCause} to retrieve the underlying exception. *
    *
  • NotFoundException NotFoundException
  • *
  • TooManyRequestsException TooManyRequestsException
  • *
  • BadRequestException BadRequestException
  • *
  • InternalServiceErrorException InternalServiceErrorException
  • *
  • 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.
  • *
  • PinpointSmsVoiceException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample PinpointSmsVoiceAsyncClient.DeleteConfigurationSet * @see AWS API Documentation */ default CompletableFuture deleteConfigurationSet( Consumer deleteConfigurationSetRequest) { return deleteConfigurationSet(DeleteConfigurationSetRequest.builder().applyMutation(deleteConfigurationSetRequest) .build()); } /** * Deletes an event destination in a configuration set. * * @param deleteConfigurationSetEventDestinationRequest * @return A Java Future containing the result of the DeleteConfigurationSetEventDestination 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 * {@link Throwable#getCause} to retrieve the underlying exception. *
    *
  • NotFoundException NotFoundException
  • *
  • TooManyRequestsException TooManyRequestsException
  • *
  • BadRequestException BadRequestException
  • *
  • InternalServiceErrorException InternalServiceErrorException
  • *
  • 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.
  • *
  • PinpointSmsVoiceException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample PinpointSmsVoiceAsyncClient.DeleteConfigurationSetEventDestination * @see AWS API Documentation */ default CompletableFuture deleteConfigurationSetEventDestination( DeleteConfigurationSetEventDestinationRequest deleteConfigurationSetEventDestinationRequest) { throw new UnsupportedOperationException(); } /** * Deletes an event destination in a configuration set.
*

* This is a convenience which creates an instance of the * {@link DeleteConfigurationSetEventDestinationRequest.Builder} avoiding the need to create one manually via * {@link DeleteConfigurationSetEventDestinationRequest#builder()} *

* * @param deleteConfigurationSetEventDestinationRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.pinpointsmsvoice.model.DeleteConfigurationSetEventDestinationRequest.Builder} * to create a request. * @return A Java Future containing the result of the DeleteConfigurationSetEventDestination 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 * {@link Throwable#getCause} to retrieve the underlying exception. *
    *
  • NotFoundException NotFoundException
  • *
  • TooManyRequestsException TooManyRequestsException
  • *
  • BadRequestException BadRequestException
  • *
  • InternalServiceErrorException InternalServiceErrorException
  • *
  • 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.
  • *
  • PinpointSmsVoiceException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample PinpointSmsVoiceAsyncClient.DeleteConfigurationSetEventDestination * @see AWS API Documentation */ default CompletableFuture deleteConfigurationSetEventDestination( Consumer deleteConfigurationSetEventDestinationRequest) { return deleteConfigurationSetEventDestination(DeleteConfigurationSetEventDestinationRequest.builder() .applyMutation(deleteConfigurationSetEventDestinationRequest).build()); } /** * Obtain information about an event destination, including the types of events it reports, the Amazon Resource Name * (ARN) of the destination, and the name of the event destination. * * @param getConfigurationSetEventDestinationsRequest * @return A Java Future containing the result of the GetConfigurationSetEventDestinations 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 * {@link Throwable#getCause} to retrieve the underlying exception. *
    *
  • NotFoundException NotFoundException
  • *
  • TooManyRequestsException TooManyRequestsException
  • *
  • BadRequestException BadRequestException
  • *
  • InternalServiceErrorException InternalServiceErrorException
  • *
  • 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.
  • *
  • PinpointSmsVoiceException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample PinpointSmsVoiceAsyncClient.GetConfigurationSetEventDestinations * @see AWS API Documentation */ default CompletableFuture getConfigurationSetEventDestinations( GetConfigurationSetEventDestinationsRequest getConfigurationSetEventDestinationsRequest) { throw new UnsupportedOperationException(); } /** * Obtain information about an event destination, including the types of events it reports, the Amazon Resource Name * (ARN) of the destination, and the name of the event destination.
*

* This is a convenience which creates an instance of the * {@link GetConfigurationSetEventDestinationsRequest.Builder} avoiding the need to create one manually via * {@link GetConfigurationSetEventDestinationsRequest#builder()} *

* * @param getConfigurationSetEventDestinationsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.pinpointsmsvoice.model.GetConfigurationSetEventDestinationsRequest.Builder} * to create a request. * @return A Java Future containing the result of the GetConfigurationSetEventDestinations 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 * {@link Throwable#getCause} to retrieve the underlying exception. *
    *
  • NotFoundException NotFoundException
  • *
  • TooManyRequestsException TooManyRequestsException
  • *
  • BadRequestException BadRequestException
  • *
  • InternalServiceErrorException InternalServiceErrorException
  • *
  • 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.
  • *
  • PinpointSmsVoiceException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample PinpointSmsVoiceAsyncClient.GetConfigurationSetEventDestinations * @see AWS API Documentation */ default CompletableFuture getConfigurationSetEventDestinations( Consumer getConfigurationSetEventDestinationsRequest) { return getConfigurationSetEventDestinations(GetConfigurationSetEventDestinationsRequest.builder() .applyMutation(getConfigurationSetEventDestinationsRequest).build()); } /** * List all of the configuration sets associated with your Amazon Pinpoint account in the current region. * * @param listConfigurationSetsRequest * @return A Java Future containing the result of the ListConfigurationSets 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 * {@link Throwable#getCause} to retrieve the underlying exception. *
    *
  • TooManyRequestsException TooManyRequestsException
  • *
  • BadRequestException BadRequestException
  • *
  • InternalServiceErrorException InternalServiceErrorException
  • *
  • 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.
  • *
  • PinpointSmsVoiceException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample PinpointSmsVoiceAsyncClient.ListConfigurationSets * @see AWS API Documentation */ default CompletableFuture listConfigurationSets( ListConfigurationSetsRequest listConfigurationSetsRequest) { throw new UnsupportedOperationException(); } /** * List all of the configuration sets associated with your Amazon Pinpoint account in the current region.
*

* This is a convenience which creates an instance of the {@link ListConfigurationSetsRequest.Builder} avoiding the * need to create one manually via {@link ListConfigurationSetsRequest#builder()} *

* * @param listConfigurationSetsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.pinpointsmsvoice.model.ListConfigurationSetsRequest.Builder} to * create a request. * @return A Java Future containing the result of the ListConfigurationSets 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 * {@link Throwable#getCause} to retrieve the underlying exception. *
    *
  • TooManyRequestsException TooManyRequestsException
  • *
  • BadRequestException BadRequestException
  • *
  • InternalServiceErrorException InternalServiceErrorException
  • *
  • 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.
  • *
  • PinpointSmsVoiceException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample PinpointSmsVoiceAsyncClient.ListConfigurationSets * @see AWS API Documentation */ default CompletableFuture listConfigurationSets( Consumer listConfigurationSetsRequest) { return listConfigurationSets(ListConfigurationSetsRequest.builder().applyMutation(listConfigurationSetsRequest).build()); } /** * Create a new voice message and send it to a recipient's phone number. * * @param sendVoiceMessageRequest * SendVoiceMessageRequest * @return A Java Future containing the result of the SendVoiceMessage 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 * {@link Throwable#getCause} to retrieve the underlying exception. *
    *
  • TooManyRequestsException TooManyRequestsException
  • *
  • BadRequestException BadRequestException
  • *
  • InternalServiceErrorException InternalServiceErrorException
  • *
  • 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.
  • *
  • PinpointSmsVoiceException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample PinpointSmsVoiceAsyncClient.SendVoiceMessage * @see AWS API Documentation */ default CompletableFuture sendVoiceMessage(SendVoiceMessageRequest sendVoiceMessageRequest) { throw new UnsupportedOperationException(); } /** * Create a new voice message and send it to a recipient's phone number.
*

* This is a convenience which creates an instance of the {@link SendVoiceMessageRequest.Builder} avoiding the need * to create one manually via {@link SendVoiceMessageRequest#builder()} *

* * @param sendVoiceMessageRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.pinpointsmsvoice.model.SendVoiceMessageRequest.Builder} to create a * request. SendVoiceMessageRequest * @return A Java Future containing the result of the SendVoiceMessage 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 * {@link Throwable#getCause} to retrieve the underlying exception. *
    *
  • TooManyRequestsException TooManyRequestsException
  • *
  • BadRequestException BadRequestException
  • *
  • InternalServiceErrorException InternalServiceErrorException
  • *
  • 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.
  • *
  • PinpointSmsVoiceException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample PinpointSmsVoiceAsyncClient.SendVoiceMessage * @see AWS API Documentation */ default CompletableFuture sendVoiceMessage( Consumer sendVoiceMessageRequest) { return sendVoiceMessage(SendVoiceMessageRequest.builder().applyMutation(sendVoiceMessageRequest).build()); } /** * Update an event destination in a configuration set. An event destination is a location that you publish * information about your voice calls to. For example, you can log an event to an Amazon CloudWatch destination when * a call fails. * * @param updateConfigurationSetEventDestinationRequest * UpdateConfigurationSetEventDestinationRequest * @return A Java Future containing the result of the UpdateConfigurationSetEventDestination 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 * {@link Throwable#getCause} to retrieve the underlying exception. *
    *
  • NotFoundException NotFoundException
  • *
  • TooManyRequestsException TooManyRequestsException
  • *
  • BadRequestException BadRequestException
  • *
  • InternalServiceErrorException InternalServiceErrorException
  • *
  • 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.
  • *
  • PinpointSmsVoiceException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample PinpointSmsVoiceAsyncClient.UpdateConfigurationSetEventDestination * @see AWS API Documentation */ default CompletableFuture updateConfigurationSetEventDestination( UpdateConfigurationSetEventDestinationRequest updateConfigurationSetEventDestinationRequest) { throw new UnsupportedOperationException(); } /** * Update an event destination in a configuration set. An event destination is a location that you publish * information about your voice calls to. For example, you can log an event to an Amazon CloudWatch destination when * a call fails.
*

* This is a convenience which creates an instance of the * {@link UpdateConfigurationSetEventDestinationRequest.Builder} avoiding the need to create one manually via * {@link UpdateConfigurationSetEventDestinationRequest#builder()} *

* * @param updateConfigurationSetEventDestinationRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.pinpointsmsvoice.model.UpdateConfigurationSetEventDestinationRequest.Builder} * to create a request. UpdateConfigurationSetEventDestinationRequest * @return A Java Future containing the result of the UpdateConfigurationSetEventDestination 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 * {@link Throwable#getCause} to retrieve the underlying exception. *
    *
  • NotFoundException NotFoundException
  • *
  • TooManyRequestsException TooManyRequestsException
  • *
  • BadRequestException BadRequestException
  • *
  • InternalServiceErrorException InternalServiceErrorException
  • *
  • 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.
  • *
  • PinpointSmsVoiceException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.
  • *
* @sample PinpointSmsVoiceAsyncClient.UpdateConfigurationSetEventDestination * @see AWS API Documentation */ default CompletableFuture updateConfigurationSetEventDestination( Consumer updateConfigurationSetEventDestinationRequest) { return updateConfigurationSetEventDestination(UpdateConfigurationSetEventDestinationRequest.builder() .applyMutation(updateConfigurationSetEventDestinationRequest).build()); } @Override default PinpointSmsVoiceServiceClientConfiguration serviceClientConfiguration() { throw new UnsupportedOperationException(); } /** * Create a {@link PinpointSmsVoiceAsyncClient} with the region loaded from the * {@link software.amazon.awssdk.regions.providers.DefaultAwsRegionProviderChain} and credentials loaded from the * {@link software.amazon.awssdk.auth.credentials.DefaultCredentialsProvider}. */ static PinpointSmsVoiceAsyncClient create() { return builder().build(); } /** * Create a builder that can be used to configure and create a {@link PinpointSmsVoiceAsyncClient}. */ static PinpointSmsVoiceAsyncClientBuilder builder() { return new DefaultPinpointSmsVoiceAsyncClientBuilder(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy