« blib/lib/Paws/Pinpoint/DefaultPushNotificationMessage.pm
↑ Summary
blib/lib/Paws/Pinpoint/DeleteAdmChannel.pm »
| 1 | # Generated by default/object.tt | ||
| 2 | package Paws::Pinpoint::DefaultPushNotificationTemplate; | ||
| 3 | use Moose; | ||
| 4 | has Action => (is => 'ro', isa => 'Str'); | ||
| 5 | has Body => (is => 'ro', isa => 'Str'); | ||
| 6 | has Sound => (is => 'ro', isa => 'Str'); | ||
| 7 | has Title => (is => 'ro', isa => 'Str'); | ||
| 8 | has Url => (is => 'ro', isa => 'Str'); | ||
| 9 | |||
| 10 | 1; | ||
| 11 | |||
| 12 | ### main pod documentation begin ### | ||
| 13 | |||
| 14 | =head1 NAME | ||
| 15 | |||
| 16 | Paws::Pinpoint::DefaultPushNotificationTemplate | ||
| 17 | |||
| 18 | =head1 USAGE | ||
| 19 | |||
| 20 | This class represents one of two things: | ||
| 21 | |||
| 22 | =head3 Arguments in a call to a service | ||
| 23 | |||
| 24 | Use the attributes of this class as arguments to methods. You shouldn't make instances of this class. | ||
| 25 | Each attribute should be used as a named argument in the calls that expect this type of object. | ||
| 26 | |||
| 27 | As an example, if Att1 is expected to be a Paws::Pinpoint::DefaultPushNotificationTemplate object: | ||
| 28 | |||
| 29 | $service_obj->Method(Att1 => { Action => $value, ..., Url => $value }); | ||
| 30 | |||
| 31 | =head3 Results returned from an API call | ||
| 32 | |||
| 33 | Use accessors for each attribute. If Att1 is expected to be an Paws::Pinpoint::DefaultPushNotificationTemplate object: | ||
| 34 | |||
| 35 | $result = $service_obj->Method(...); | ||
| 36 | $result->Att1->Action | ||
| 37 | |||
| 38 | =head1 DESCRIPTION | ||
| 39 | |||
| 40 | Specifies the default settings and content for a message template that | ||
| 41 | can be used in messages that are sent through a push notification | ||
| 42 | channel. | ||
| 43 | |||
| 44 | =head1 ATTRIBUTES | ||
| 45 | |||
| 46 | |||
| 47 | =head2 Action => Str | ||
| 48 | |||
| 49 | The action to occur if a recipient taps a push notification that's | ||
| 50 | based on the message template. Valid values are: | ||
| 51 | |||
| 52 | =over | ||
| 53 | |||
| 54 | =item * | ||
| 55 | |||
| 56 | OPEN_APP - Your app opens or it becomes the foreground app if it was | ||
| 57 | sent to the background. This is the default action. | ||
| 58 | |||
| 59 | =item * | ||
| 60 | |||
| 61 | DEEP_LINK - Your app opens and displays a designated user interface in | ||
| 62 | the app. This setting uses the deep-linking features of the iOS and | ||
| 63 | Android platforms. | ||
| 64 | |||
| 65 | =item * | ||
| 66 | |||
| 67 | URL - The default mobile browser on the recipient's device opens and | ||
| 68 | loads the web page at a URL that you specify. | ||
| 69 | |||
| 70 | =back | ||
| 71 | |||
| 72 | |||
| 73 | |||
| 74 | =head2 Body => Str | ||
| 75 | |||
| 76 | The message body to use in push notifications that are based on the | ||
| 77 | message template. | ||
| 78 | |||
| 79 | |||
| 80 | =head2 Sound => Str | ||
| 81 | |||
| 82 | The sound to play when a recipient receives a push notification that's | ||
| 83 | based on the message template. You can use the default stream or | ||
| 84 | specify the file name of a sound resource that's bundled in your app. | ||
| 85 | On an Android platform, the sound file must reside in /res/raw/. | ||
| 86 | |||
| 87 | For an iOS platform, this value is the key for the name of a sound file | ||
| 88 | in your app's main bundle or the Library/Sounds folder in your app's | ||
| 89 | data container. If the sound file can't be found or you specify default | ||
| 90 | for the value, the system plays the default alert sound. | ||
| 91 | |||
| 92 | |||
| 93 | =head2 Title => Str | ||
| 94 | |||
| 95 | The title to use in push notifications that are based on the message | ||
| 96 | template. This title appears above the notification message on a | ||
| 97 | recipient's device. | ||
| 98 | |||
| 99 | |||
| 100 | =head2 Url => Str | ||
| 101 | |||
| 102 | The URL to open in a recipient's default mobile browser, if a recipient | ||
| 103 | taps a push notification that's based on the message template and the | ||
| 104 | value of the Action property is URL. | ||
| 105 | |||
| 106 | |||
| 107 | |||
| 108 | =head1 SEE ALSO | ||
| 109 | |||
| 110 | This class forms part of L<Paws>, describing an object used in L<Paws::Pinpoint> | ||
| 111 | |||
| 112 | =head1 BUGS and CONTRIBUTIONS | ||
| 113 | |||
| 114 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 115 | |||
| 116 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 117 | |||
| 118 | =cut | ||
| 119 |