Interface SendVoiceMessageRequest.Builder

  • Method Details

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

      If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).

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

      If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).

      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.
    • messageBodyTextType

      SendVoiceMessageRequest.Builder messageBodyTextType(String messageBodyTextType)

      Specifies if the MessageBody field contains text or speech synthesis markup language (SSML).

      • TEXT: This is the default value. When used the maximum character limit is 3000.

      • SSML: When used the maximum character limit is 6000 including SSML tagging.

      Parameters:
      messageBodyTextType - Specifies if the MessageBody field contains text or speech synthesis markup language (SSML).

      • TEXT: This is the default value. When used the maximum character limit is 3000.

      • SSML: When used the maximum character limit is 6000 including SSML tagging.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • messageBodyTextType

      SendVoiceMessageRequest.Builder messageBodyTextType(VoiceMessageBodyTextType messageBodyTextType)

      Specifies if the MessageBody field contains text or speech synthesis markup language (SSML).

      • TEXT: This is the default value. When used the maximum character limit is 3000.

      • SSML: When used the maximum character limit is 6000 including SSML tagging.

      Parameters:
      messageBodyTextType - Specifies if the MessageBody field contains text or speech synthesis markup language (SSML).

      • TEXT: This is the default value. When used the maximum character limit is 3000.

      • SSML: When used the maximum character limit is 6000 including SSML tagging.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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

      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:
    • 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

      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

      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.
    • messageFeedbackEnabled

      SendVoiceMessageRequest.Builder messageFeedbackEnabled(Boolean messageFeedbackEnabled)

      Set to true to enable message feedback for the message. When a user receives the message you need to update the message status using PutMessageFeedback.

      Parameters:
      messageFeedbackEnabled - Set to true to enable message feedback for the message. When a user receives the message you need to update the message status using PutMessageFeedback.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      SendVoiceMessageRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.