Interface SendVoiceMessageRequest.Builder

    • Method Detail

      • destinationPhoneNumber

        SendVoiceMessageRequest.Builder destinationPhoneNumber​(String destinationPhoneNumber)

        The destination phone number in E.164 format.

        Parameters:
        destinationPhoneNumber - The destination phone number in E.164 format.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • originationIdentity

        SendVoiceMessageRequest.Builder originationIdentity​(String originationIdentity)

        The origination identity to use for the voice call. This can be the PhoneNumber, PhoneNumberId, PhoneNumberArn, PoolId, or PoolArn.

        Parameters:
        originationIdentity - The origination identity to use for the voice call. This can be the PhoneNumber, PhoneNumberId, PhoneNumberArn, PoolId, or PoolArn.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • messageBody

        SendVoiceMessageRequest.Builder messageBody​(String messageBody)

        The text to convert to a voice message.

        Parameters:
        messageBody - The text to convert to a voice message.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • voiceId

        SendVoiceMessageRequest.Builder voiceId​(String voiceId)

        The voice for the Amazon Polly service to use. By default this is set to "MATTHEW".

        Parameters:
        voiceId - The voice for the Amazon Polly service to use. By default this is set to "MATTHEW".
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        VoiceId, VoiceId
      • configurationSetName

        SendVoiceMessageRequest.Builder configurationSetName​(String configurationSetName)

        The name of the configuration set to use. This can be either the ConfigurationSetName or ConfigurationSetArn.

        Parameters:
        configurationSetName - The name of the configuration set to use. This can be either the ConfigurationSetName or ConfigurationSetArn.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • maxPricePerMinute

        SendVoiceMessageRequest.Builder maxPricePerMinute​(String maxPricePerMinute)

        The maximum amount to spend per voice message, in US dollars.

        Parameters:
        maxPricePerMinute - The maximum amount to spend per voice message, in US dollars.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • timeToLive

        SendVoiceMessageRequest.Builder timeToLive​(Integer timeToLive)

        How long the voice message is valid for. By default this is 72 hours.

        Parameters:
        timeToLive - How long the voice message is valid for. By default this is 72 hours.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • context

        SendVoiceMessageRequest.Builder context​(Map<String,​String> context)

        You can specify custom data in this field. If you do, that data is logged to the event destination.

        Parameters:
        context - You can specify custom data in this field. If you do, that data is logged to the event destination.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • dryRun

        SendVoiceMessageRequest.Builder dryRun​(Boolean dryRun)

        When set to true, the message is checked and validated, but isn't sent to the end recipient.

        Parameters:
        dryRun - When set to true, the message is checked and validated, but isn't sent to the end recipient.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • protectConfigurationId

        SendVoiceMessageRequest.Builder protectConfigurationId​(String protectConfigurationId)

        The unique identifier for the protect configuration.

        Parameters:
        protectConfigurationId - The unique identifier for the protect configuration.
        Returns:
        Returns a reference to this object so that method calls can be chained together.