The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Paws::PinpointSMSVoice::SendVoiceMessage - Arguments for method SendVoiceMessage on Paws::PinpointSMSVoice

DESCRIPTION

This class represents the parameters used for calling the method SendVoiceMessage on the Amazon Pinpoint SMS and Voice Service service. Use the attributes of this class as arguments to method SendVoiceMessage.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to SendVoiceMessage.

SYNOPSIS

    my $sms-voice.pinpoint = Paws->service('PinpointSMSVoice');
    my $SendVoiceMessageResponse = $sms -voice . pinpoint->SendVoiceMessage(
      CallerId             => 'MyString',                          # OPTIONAL
      ConfigurationSetName => 'MyWordCharactersWithDelimiters',    # OPTIONAL
      Content              => {
        CallInstructionsMessage => {
          Text => 'MyNonEmptyString',                              # OPTIONAL
        },    # OPTIONAL
        PlainTextMessage => {
          LanguageCode => 'MyString',
          Text         => 'MyNonEmptyString',    # OPTIONAL
          VoiceId      => 'MyString',
        },    # OPTIONAL
        SSMLMessage => {
          LanguageCode => 'MyString',
          Text         => 'MyNonEmptyString',    # OPTIONAL
          VoiceId      => 'MyString',
        },    # OPTIONAL
      },    # OPTIONAL
      DestinationPhoneNumber => 'MyNonEmptyString',    # OPTIONAL
      OriginationPhoneNumber => 'MyNonEmptyString',    # OPTIONAL
    );

    # Results:
    my $MessageId = $SendVoiceMessageResponse->MessageId;

    # Returns a L<Paws::PinpointSMSVoice::SendVoiceMessageResponse> object.

Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/sms-voice.pinpoint/SendVoiceMessage

ATTRIBUTES

CallerId => Str

The phone number that appears on recipients' devices when they receive the message.

ConfigurationSetName => Str

The name of the configuration set that you want to use to send the message.

Content => Paws::PinpointSMSVoice::VoiceMessageContent

DestinationPhoneNumber => Str

The phone number that you want to send the voice message to.

OriginationPhoneNumber => Str

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.

SEE ALSO

This class forms part of Paws, documenting arguments for method SendVoiceMessage in Paws::PinpointSMSVoice

BUGS and CONTRIBUTIONS

The source code is located here: https://github.com/pplu/aws-sdk-perl

Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues