« blib/lib/Paws/Pinpoint/BaiduChannelResponse.pm
↑ Summary
blib/lib/Paws/Pinpoint/BaseKpiResult.pm »
| 1 | # Generated by default/object.tt | ||
| 2 | package Paws::Pinpoint::BaiduMessage; | ||
| 3 | use Moose; | ||
| 4 | has Action => (is => 'ro', isa => 'Str'); | ||
| 5 | has Body => (is => 'ro', isa => 'Str'); | ||
| 6 | has Data => (is => 'ro', isa => 'Paws::Pinpoint::MapOf__string'); | ||
| 7 | has IconReference => (is => 'ro', isa => 'Str'); | ||
| 8 | has ImageIconUrl => (is => 'ro', isa => 'Str'); | ||
| 9 | has ImageUrl => (is => 'ro', isa => 'Str'); | ||
| 10 | has RawContent => (is => 'ro', isa => 'Str'); | ||
| 11 | has SilentPush => (is => 'ro', isa => 'Bool'); | ||
| 12 | has SmallImageIconUrl => (is => 'ro', isa => 'Str'); | ||
| 13 | has Sound => (is => 'ro', isa => 'Str'); | ||
| 14 | has Substitutions => (is => 'ro', isa => 'Paws::Pinpoint::MapOfListOf__string'); | ||
| 15 | has TimeToLive => (is => 'ro', isa => 'Int'); | ||
| 16 | has Title => (is => 'ro', isa => 'Str'); | ||
| 17 | has Url => (is => 'ro', isa => 'Str'); | ||
| 18 | |||
| 19 | 1; | ||
| 20 | |||
| 21 | ### main pod documentation begin ### | ||
| 22 | |||
| 23 | =head1 NAME | ||
| 24 | |||
| 25 | Paws::Pinpoint::BaiduMessage | ||
| 26 | |||
| 27 | =head1 USAGE | ||
| 28 | |||
| 29 | This class represents one of two things: | ||
| 30 | |||
| 31 | =head3 Arguments in a call to a service | ||
| 32 | |||
| 33 | Use the attributes of this class as arguments to methods. You shouldn't make instances of this class. | ||
| 34 | Each attribute should be used as a named argument in the calls that expect this type of object. | ||
| 35 | |||
| 36 | As an example, if Att1 is expected to be a Paws::Pinpoint::BaiduMessage object: | ||
| 37 | |||
| 38 | $service_obj->Method(Att1 => { Action => $value, ..., Url => $value }); | ||
| 39 | |||
| 40 | =head3 Results returned from an API call | ||
| 41 | |||
| 42 | Use accessors for each attribute. If Att1 is expected to be an Paws::Pinpoint::BaiduMessage object: | ||
| 43 | |||
| 44 | $result = $service_obj->Method(...); | ||
| 45 | $result->Att1->Action | ||
| 46 | |||
| 47 | =head1 DESCRIPTION | ||
| 48 | |||
| 49 | Specifies the settings for a one-time message that's sent directly to | ||
| 50 | an endpoint through the Baidu (Baidu Cloud Push) channel. | ||
| 51 | |||
| 52 | =head1 ATTRIBUTES | ||
| 53 | |||
| 54 | |||
| 55 | =head2 Action => Str | ||
| 56 | |||
| 57 | The action to occur if the recipient taps the push notification. Valid | ||
| 58 | values are: | ||
| 59 | |||
| 60 | =over | ||
| 61 | |||
| 62 | =item * | ||
| 63 | |||
| 64 | OPEN_APP - Your app opens or it becomes the foreground app if it was | ||
| 65 | sent to the background. This is the default action. | ||
| 66 | |||
| 67 | =item * | ||
| 68 | |||
| 69 | DEEP_LINK - Your app opens and displays a designated user interface in | ||
| 70 | the app. This action uses the deep-linking features of the Android | ||
| 71 | platform. | ||
| 72 | |||
| 73 | =item * | ||
| 74 | |||
| 75 | URL - The default mobile browser on the recipient's device opens and | ||
| 76 | loads the web page at a URL that you specify. | ||
| 77 | |||
| 78 | =back | ||
| 79 | |||
| 80 | |||
| 81 | |||
| 82 | =head2 Body => Str | ||
| 83 | |||
| 84 | The body of the notification message. | ||
| 85 | |||
| 86 | |||
| 87 | =head2 Data => L<Paws::Pinpoint::MapOf__string> | ||
| 88 | |||
| 89 | The JSON data payload to use for the push notification, if the | ||
| 90 | notification is a silent push notification. This payload is added to | ||
| 91 | the data.pinpoint.jsonBody object of the notification. | ||
| 92 | |||
| 93 | |||
| 94 | =head2 IconReference => Str | ||
| 95 | |||
| 96 | The icon image name of the asset saved in your app. | ||
| 97 | |||
| 98 | |||
| 99 | =head2 ImageIconUrl => Str | ||
| 100 | |||
| 101 | The URL of the large icon image to display in the content view of the | ||
| 102 | push notification. | ||
| 103 | |||
| 104 | |||
| 105 | =head2 ImageUrl => Str | ||
| 106 | |||
| 107 | The URL of an image to display in the push notification. | ||
| 108 | |||
| 109 | |||
| 110 | =head2 RawContent => Str | ||
| 111 | |||
| 112 | The raw, JSON-formatted string to use as the payload for the | ||
| 113 | notification message. If specified, this value overrides all other | ||
| 114 | content for the message. | ||
| 115 | |||
| 116 | |||
| 117 | =head2 SilentPush => Bool | ||
| 118 | |||
| 119 | Specifies whether the notification is a silent push notification, which | ||
| 120 | is a push notification that doesn't display on a recipient's device. | ||
| 121 | Silent push notifications can be used for cases such as updating an | ||
| 122 | app's configuration or supporting phone home functionality. | ||
| 123 | |||
| 124 | |||
| 125 | =head2 SmallImageIconUrl => Str | ||
| 126 | |||
| 127 | The URL of the small icon image to display in the status bar and the | ||
| 128 | content view of the push notification. | ||
| 129 | |||
| 130 | |||
| 131 | =head2 Sound => Str | ||
| 132 | |||
| 133 | The sound to play when the recipient receives the push notification. | ||
| 134 | You can use the default stream or specify the file name of a sound | ||
| 135 | resource that's bundled in your app. On an Android platform, the sound | ||
| 136 | file must reside in /res/raw/. | ||
| 137 | |||
| 138 | |||
| 139 | =head2 Substitutions => L<Paws::Pinpoint::MapOfListOf__string> | ||
| 140 | |||
| 141 | The default message variables to use in the notification message. You | ||
| 142 | can override the default variables with individual address variables. | ||
| 143 | |||
| 144 | |||
| 145 | =head2 TimeToLive => Int | ||
| 146 | |||
| 147 | The amount of time, in seconds, that the Baidu Cloud Push service | ||
| 148 | should store the message if the recipient's device is offline. The | ||
| 149 | default value and maximum supported time is 604,800 seconds (7 days). | ||
| 150 | |||
| 151 | |||
| 152 | =head2 Title => Str | ||
| 153 | |||
| 154 | The title to display above the notification message on the recipient's | ||
| 155 | device. | ||
| 156 | |||
| 157 | |||
| 158 | =head2 Url => Str | ||
| 159 | |||
| 160 | The URL to open in the recipient's default mobile browser, if a | ||
| 161 | recipient taps the push notification and the value of the Action | ||
| 162 | property is URL. | ||
| 163 | |||
| 164 | |||
| 165 | |||
| 166 | =head1 SEE ALSO | ||
| 167 | |||
| 168 | This class forms part of L<Paws>, describing an object used in L<Paws::Pinpoint> | ||
| 169 | |||
| 170 | =head1 BUGS and CONTRIBUTIONS | ||
| 171 | |||
| 172 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 173 | |||
| 174 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 175 | |||
| 176 | =cut | ||
| 177 |