Interface SendVoiceMessageRequest.Builder

All Superinterfaces:
AwsRequest.Builder, Buildable, CopyableBuilder<SendVoiceMessageRequest.Builder,SendVoiceMessageRequest>, PinpointSmsVoiceRequest.Builder, SdkBuilder<SendVoiceMessageRequest.Builder,SendVoiceMessageRequest>, SdkPojo, SdkRequest.Builder
Enclosing class:
SendVoiceMessageRequest

  • Method Details

    • callerId

      The phone number that appears on recipients' devices when they receive the message.
      Parameters:
      callerId - The phone number that appears on recipients' devices when they receive the message.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • configurationSetName

      SendVoiceMessageRequest.Builder configurationSetName(String configurationSetName)
      The name of the configuration set that you want to use to send the message.
      Parameters:
      configurationSetName - The name of the configuration set that you want to use to send the message.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • content

      Sets the value of the Content property for this object.
      Parameters:
      content - The new value for the Content property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • content

      Sets the value of the Content property for this object. This is a convenience method that creates an instance of the VoiceMessageContent.Builder avoiding the need to create one manually via VoiceMessageContent.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to content(VoiceMessageContent).

      Parameters:
      content - a consumer that will call methods on VoiceMessageContent.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • destinationPhoneNumber

      SendVoiceMessageRequest.Builder destinationPhoneNumber(String destinationPhoneNumber)
      The phone number that you want to send the voice message to.
      Parameters:
      destinationPhoneNumber - The phone number that you want to send the voice message to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • originationPhoneNumber

      SendVoiceMessageRequest.Builder originationPhoneNumber(String originationPhoneNumber)
      The phone number that Amazon Pinpoint should use to send the voice message. This isn't necessarily the phone number that appears on recipients' devices when they receive the message, because you can specify a CallerId parameter in the request.
      Parameters:
      originationPhoneNumber - The phone number that Amazon Pinpoint should use to send the voice message. This isn't necessarily the phone number that appears on recipients' devices when they receive the message, because you can specify a CallerId parameter in the request.
      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.