Interface PinpointSmsVoiceClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.
Pinpoint SMS and Voice Messaging public facing APIs-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a builder that can be used to configure and create aPinpointSmsVoiceClient.static PinpointSmsVoiceClientcreate()Create aPinpointSmsVoiceClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreateConfigurationSetResponsecreateConfigurationSet(Consumer<CreateConfigurationSetRequest.Builder> createConfigurationSetRequest) Create a new configuration set.default CreateConfigurationSetResponsecreateConfigurationSet(CreateConfigurationSetRequest createConfigurationSetRequest) Create a new configuration set.createConfigurationSetEventDestination(Consumer<CreateConfigurationSetEventDestinationRequest.Builder> createConfigurationSetEventDestinationRequest) Create a new event destination in a configuration set.createConfigurationSetEventDestination(CreateConfigurationSetEventDestinationRequest createConfigurationSetEventDestinationRequest) Create a new event destination in a configuration set.default DeleteConfigurationSetResponsedeleteConfigurationSet(Consumer<DeleteConfigurationSetRequest.Builder> deleteConfigurationSetRequest) Deletes an existing configuration set.default DeleteConfigurationSetResponsedeleteConfigurationSet(DeleteConfigurationSetRequest deleteConfigurationSetRequest) Deletes an existing configuration set.deleteConfigurationSetEventDestination(Consumer<DeleteConfigurationSetEventDestinationRequest.Builder> deleteConfigurationSetEventDestinationRequest) Deletes an event destination in a configuration set.deleteConfigurationSetEventDestination(DeleteConfigurationSetEventDestinationRequest deleteConfigurationSetEventDestinationRequest) Deletes an event destination in a configuration set.getConfigurationSetEventDestinations(Consumer<GetConfigurationSetEventDestinationsRequest.Builder> getConfigurationSetEventDestinationsRequest) 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.getConfigurationSetEventDestinations(GetConfigurationSetEventDestinationsRequest getConfigurationSetEventDestinationsRequest) 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.default ListConfigurationSetsResponselistConfigurationSets(Consumer<ListConfigurationSetsRequest.Builder> listConfigurationSetsRequest) List all of the configuration sets associated with your Amazon Pinpoint account in the current region.default ListConfigurationSetsResponselistConfigurationSets(ListConfigurationSetsRequest listConfigurationSetsRequest) List all of the configuration sets associated with your Amazon Pinpoint account in the current region.default SendVoiceMessageResponsesendVoiceMessage(Consumer<SendVoiceMessageRequest.Builder> sendVoiceMessageRequest) Create a new voice message and send it to a recipient's phone number.default SendVoiceMessageResponsesendVoiceMessage(SendVoiceMessageRequest sendVoiceMessageRequest) Create a new voice message and send it to a recipient's phone number.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadataupdateConfigurationSetEventDestination(Consumer<UpdateConfigurationSetEventDestinationRequest.Builder> updateConfigurationSetEventDestinationRequest) Update an event destination in a configuration set.updateConfigurationSetEventDestination(UpdateConfigurationSetEventDestinationRequest updateConfigurationSetEventDestinationRequest) Update an event destination in a configuration set.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
closeMethods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
-
-
Method Details
-
createConfigurationSet
default CreateConfigurationSetResponse createConfigurationSet(CreateConfigurationSetRequest createConfigurationSetRequest) throws TooManyRequestsException, BadRequestException, LimitExceededException, InternalServiceErrorException, AlreadyExistsException, AwsServiceException, SdkClientException, PinpointSmsVoiceException Create a new configuration set. After you create the configuration set, you can add one or more event destinations to it.- Parameters:
createConfigurationSetRequest- A request to create a new configuration set.- Returns:
- Result of the CreateConfigurationSet operation returned by the service.
- See Also:
-
createConfigurationSet
default CreateConfigurationSetResponse createConfigurationSet(Consumer<CreateConfigurationSetRequest.Builder> createConfigurationSetRequest) throws TooManyRequestsException, BadRequestException, LimitExceededException, InternalServiceErrorException, AlreadyExistsException, AwsServiceException, SdkClientException, PinpointSmsVoiceException 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
CreateConfigurationSetRequest.Builderavoiding the need to create one manually viaCreateConfigurationSetRequest.builder()- Parameters:
createConfigurationSetRequest- AConsumerthat will call methods onCreateConfigurationSetRequest.Builderto create a request. A request to create a new configuration set.- Returns:
- Result of the CreateConfigurationSet operation returned by the service.
- See Also:
-
createConfigurationSetEventDestination
default CreateConfigurationSetEventDestinationResponse createConfigurationSetEventDestination(CreateConfigurationSetEventDestinationRequest createConfigurationSetEventDestinationRequest) throws BadRequestException, LimitExceededException, InternalServiceErrorException, NotFoundException, TooManyRequestsException, AlreadyExistsException, AwsServiceException, SdkClientException, PinpointSmsVoiceException Create a new event destination in a configuration set.- Parameters:
createConfigurationSetEventDestinationRequest- Create a new event destination in a configuration set.- Returns:
- Result of the CreateConfigurationSetEventDestination operation returned by the service.
- See Also:
-
createConfigurationSetEventDestination
default CreateConfigurationSetEventDestinationResponse createConfigurationSetEventDestination(Consumer<CreateConfigurationSetEventDestinationRequest.Builder> createConfigurationSetEventDestinationRequest) throws BadRequestException, LimitExceededException, InternalServiceErrorException, NotFoundException, TooManyRequestsException, AlreadyExistsException, AwsServiceException, SdkClientException, PinpointSmsVoiceException Create a new event destination in a configuration set.
This is a convenience which creates an instance of the
CreateConfigurationSetEventDestinationRequest.Builderavoiding the need to create one manually viaCreateConfigurationSetEventDestinationRequest.builder()- Parameters:
createConfigurationSetEventDestinationRequest- AConsumerthat will call methods onCreateConfigurationSetEventDestinationRequest.Builderto create a request. Create a new event destination in a configuration set.- Returns:
- Result of the CreateConfigurationSetEventDestination operation returned by the service.
- See Also:
-
deleteConfigurationSet
default DeleteConfigurationSetResponse deleteConfigurationSet(DeleteConfigurationSetRequest deleteConfigurationSetRequest) throws NotFoundException, TooManyRequestsException, BadRequestException, InternalServiceErrorException, AwsServiceException, SdkClientException, PinpointSmsVoiceException Deletes an existing configuration set.- Parameters:
deleteConfigurationSetRequest-- Returns:
- Result of the DeleteConfigurationSet operation returned by the service.
- See Also:
-
deleteConfigurationSet
default DeleteConfigurationSetResponse deleteConfigurationSet(Consumer<DeleteConfigurationSetRequest.Builder> deleteConfigurationSetRequest) throws NotFoundException, TooManyRequestsException, BadRequestException, InternalServiceErrorException, AwsServiceException, SdkClientException, PinpointSmsVoiceException Deletes an existing configuration set.
This is a convenience which creates an instance of the
DeleteConfigurationSetRequest.Builderavoiding the need to create one manually viaDeleteConfigurationSetRequest.builder()- Parameters:
deleteConfigurationSetRequest- AConsumerthat will call methods onDeleteConfigurationSetRequest.Builderto create a request.- Returns:
- Result of the DeleteConfigurationSet operation returned by the service.
- See Also:
-
deleteConfigurationSetEventDestination
default DeleteConfigurationSetEventDestinationResponse deleteConfigurationSetEventDestination(DeleteConfigurationSetEventDestinationRequest deleteConfigurationSetEventDestinationRequest) throws NotFoundException, TooManyRequestsException, BadRequestException, InternalServiceErrorException, AwsServiceException, SdkClientException, PinpointSmsVoiceException Deletes an event destination in a configuration set.- Parameters:
deleteConfigurationSetEventDestinationRequest-- Returns:
- Result of the DeleteConfigurationSetEventDestination operation returned by the service.
- See Also:
-
deleteConfigurationSetEventDestination
default DeleteConfigurationSetEventDestinationResponse deleteConfigurationSetEventDestination(Consumer<DeleteConfigurationSetEventDestinationRequest.Builder> deleteConfigurationSetEventDestinationRequest) throws NotFoundException, TooManyRequestsException, BadRequestException, InternalServiceErrorException, AwsServiceException, SdkClientException, PinpointSmsVoiceException Deletes an event destination in a configuration set.
This is a convenience which creates an instance of the
DeleteConfigurationSetEventDestinationRequest.Builderavoiding the need to create one manually viaDeleteConfigurationSetEventDestinationRequest.builder()- Parameters:
deleteConfigurationSetEventDestinationRequest- AConsumerthat will call methods onDeleteConfigurationSetEventDestinationRequest.Builderto create a request.- Returns:
- Result of the DeleteConfigurationSetEventDestination operation returned by the service.
- See Also:
-
getConfigurationSetEventDestinations
default GetConfigurationSetEventDestinationsResponse getConfigurationSetEventDestinations(GetConfigurationSetEventDestinationsRequest getConfigurationSetEventDestinationsRequest) throws NotFoundException, TooManyRequestsException, BadRequestException, InternalServiceErrorException, AwsServiceException, SdkClientException, PinpointSmsVoiceException 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.- Parameters:
getConfigurationSetEventDestinationsRequest-- Returns:
- Result of the GetConfigurationSetEventDestinations operation returned by the service.
- See Also:
-
getConfigurationSetEventDestinations
default GetConfigurationSetEventDestinationsResponse getConfigurationSetEventDestinations(Consumer<GetConfigurationSetEventDestinationsRequest.Builder> getConfigurationSetEventDestinationsRequest) throws NotFoundException, TooManyRequestsException, BadRequestException, InternalServiceErrorException, AwsServiceException, SdkClientException, PinpointSmsVoiceException 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
GetConfigurationSetEventDestinationsRequest.Builderavoiding the need to create one manually viaGetConfigurationSetEventDestinationsRequest.builder()- Parameters:
getConfigurationSetEventDestinationsRequest- AConsumerthat will call methods onGetConfigurationSetEventDestinationsRequest.Builderto create a request.- Returns:
- Result of the GetConfigurationSetEventDestinations operation returned by the service.
- See Also:
-
listConfigurationSets
default ListConfigurationSetsResponse listConfigurationSets(ListConfigurationSetsRequest listConfigurationSetsRequest) throws TooManyRequestsException, BadRequestException, InternalServiceErrorException, AwsServiceException, SdkClientException, PinpointSmsVoiceException List all of the configuration sets associated with your Amazon Pinpoint account in the current region.- Parameters:
listConfigurationSetsRequest-- Returns:
- Result of the ListConfigurationSets operation returned by the service.
- See Also:
-
listConfigurationSets
default ListConfigurationSetsResponse listConfigurationSets(Consumer<ListConfigurationSetsRequest.Builder> listConfigurationSetsRequest) throws TooManyRequestsException, BadRequestException, InternalServiceErrorException, AwsServiceException, SdkClientException, PinpointSmsVoiceException 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
ListConfigurationSetsRequest.Builderavoiding the need to create one manually viaListConfigurationSetsRequest.builder()- Parameters:
listConfigurationSetsRequest- AConsumerthat will call methods onListConfigurationSetsRequest.Builderto create a request.- Returns:
- Result of the ListConfigurationSets operation returned by the service.
- See Also:
-
sendVoiceMessage
default SendVoiceMessageResponse sendVoiceMessage(SendVoiceMessageRequest sendVoiceMessageRequest) throws TooManyRequestsException, BadRequestException, InternalServiceErrorException, AwsServiceException, SdkClientException, PinpointSmsVoiceException Create a new voice message and send it to a recipient's phone number.- Parameters:
sendVoiceMessageRequest- SendVoiceMessageRequest- Returns:
- Result of the SendVoiceMessage operation returned by the service.
- See Also:
-
sendVoiceMessage
default SendVoiceMessageResponse sendVoiceMessage(Consumer<SendVoiceMessageRequest.Builder> sendVoiceMessageRequest) throws TooManyRequestsException, BadRequestException, InternalServiceErrorException, AwsServiceException, SdkClientException, PinpointSmsVoiceException Create a new voice message and send it to a recipient's phone number.
This is a convenience which creates an instance of the
SendVoiceMessageRequest.Builderavoiding the need to create one manually viaSendVoiceMessageRequest.builder()- Parameters:
sendVoiceMessageRequest- AConsumerthat will call methods onSendVoiceMessageRequest.Builderto create a request. SendVoiceMessageRequest- Returns:
- Result of the SendVoiceMessage operation returned by the service.
- See Also:
-
updateConfigurationSetEventDestination
default UpdateConfigurationSetEventDestinationResponse updateConfigurationSetEventDestination(UpdateConfigurationSetEventDestinationRequest updateConfigurationSetEventDestinationRequest) throws NotFoundException, TooManyRequestsException, BadRequestException, InternalServiceErrorException, AwsServiceException, SdkClientException, PinpointSmsVoiceException 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.- Parameters:
updateConfigurationSetEventDestinationRequest- UpdateConfigurationSetEventDestinationRequest- Returns:
- Result of the UpdateConfigurationSetEventDestination operation returned by the service.
- See Also:
-
updateConfigurationSetEventDestination
default UpdateConfigurationSetEventDestinationResponse updateConfigurationSetEventDestination(Consumer<UpdateConfigurationSetEventDestinationRequest.Builder> updateConfigurationSetEventDestinationRequest) throws NotFoundException, TooManyRequestsException, BadRequestException, InternalServiceErrorException, AwsServiceException, SdkClientException, PinpointSmsVoiceException 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
UpdateConfigurationSetEventDestinationRequest.Builderavoiding the need to create one manually viaUpdateConfigurationSetEventDestinationRequest.builder()- Parameters:
updateConfigurationSetEventDestinationRequest- AConsumerthat will call methods onUpdateConfigurationSetEventDestinationRequest.Builderto create a request. UpdateConfigurationSetEventDestinationRequest- Returns:
- Result of the UpdateConfigurationSetEventDestination operation returned by the service.
- See Also:
-
create
Create aPinpointSmsVoiceClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aPinpointSmsVoiceClient. -
serviceMetadata
-
serviceClientConfiguration
Description copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-