1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/pinpoint/Pinpoint_EXPORTS.h> 8 #include <aws/pinpoint/model/Action.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 namespace Utils 15 { 16 namespace Json 17 { 18 class JsonValue; 19 class JsonView; 20 } // namespace Json 21 } // namespace Utils 22 namespace Pinpoint 23 { 24 namespace Model 25 { 26 27 /** 28 * <p>Specifies channel-specific content and settings for a message template that 29 * can be used in push notifications that are sent through the ADM (Amazon Device 30 * Messaging), Baidu (Baidu Cloud Push), or GCM (Firebase Cloud Messaging, formerly 31 * Google Cloud Messaging) channel.</p><p><h3>See Also:</h3> <a 32 * href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/AndroidPushNotificationTemplate">AWS 33 * API Reference</a></p> 34 */ 35 class AWS_PINPOINT_API AndroidPushNotificationTemplate 36 { 37 public: 38 AndroidPushNotificationTemplate(); 39 AndroidPushNotificationTemplate(Aws::Utils::Json::JsonView jsonValue); 40 AndroidPushNotificationTemplate& operator=(Aws::Utils::Json::JsonView jsonValue); 41 Aws::Utils::Json::JsonValue Jsonize() const; 42 43 44 /** 45 * <p>The action to occur if a recipient taps a push notification that's based on 46 * the message template. Valid values are:</p> <ul><li><p>OPEN_APP - Your app opens 47 * or it becomes the foreground app if it was sent to the background. This is the 48 * default action.</p></li> <li><p>DEEP_LINK - Your app opens and displays a 49 * designated user interface in the app. This action uses the deep-linking features 50 * of the Android platform.</p></li> <li><p>URL - The default mobile browser on the 51 * recipient's device opens and loads the web page at a URL that you 52 * specify.</p></li></ul> 53 */ GetAction()54 inline const Action& GetAction() const{ return m_action; } 55 56 /** 57 * <p>The action to occur if a recipient taps a push notification that's based on 58 * the message template. Valid values are:</p> <ul><li><p>OPEN_APP - Your app opens 59 * or it becomes the foreground app if it was sent to the background. This is the 60 * default action.</p></li> <li><p>DEEP_LINK - Your app opens and displays a 61 * designated user interface in the app. This action uses the deep-linking features 62 * of the Android platform.</p></li> <li><p>URL - The default mobile browser on the 63 * recipient's device opens and loads the web page at a URL that you 64 * specify.</p></li></ul> 65 */ ActionHasBeenSet()66 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } 67 68 /** 69 * <p>The action to occur if a recipient taps a push notification that's based on 70 * the message template. Valid values are:</p> <ul><li><p>OPEN_APP - Your app opens 71 * or it becomes the foreground app if it was sent to the background. This is the 72 * default action.</p></li> <li><p>DEEP_LINK - Your app opens and displays a 73 * designated user interface in the app. This action uses the deep-linking features 74 * of the Android platform.</p></li> <li><p>URL - The default mobile browser on the 75 * recipient's device opens and loads the web page at a URL that you 76 * specify.</p></li></ul> 77 */ SetAction(const Action & value)78 inline void SetAction(const Action& value) { m_actionHasBeenSet = true; m_action = value; } 79 80 /** 81 * <p>The action to occur if a recipient taps a push notification that's based on 82 * the message template. Valid values are:</p> <ul><li><p>OPEN_APP - Your app opens 83 * or it becomes the foreground app if it was sent to the background. This is the 84 * default action.</p></li> <li><p>DEEP_LINK - Your app opens and displays a 85 * designated user interface in the app. This action uses the deep-linking features 86 * of the Android platform.</p></li> <li><p>URL - The default mobile browser on the 87 * recipient's device opens and loads the web page at a URL that you 88 * specify.</p></li></ul> 89 */ SetAction(Action && value)90 inline void SetAction(Action&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } 91 92 /** 93 * <p>The action to occur if a recipient taps a push notification that's based on 94 * the message template. Valid values are:</p> <ul><li><p>OPEN_APP - Your app opens 95 * or it becomes the foreground app if it was sent to the background. This is the 96 * default action.</p></li> <li><p>DEEP_LINK - Your app opens and displays a 97 * designated user interface in the app. This action uses the deep-linking features 98 * of the Android platform.</p></li> <li><p>URL - The default mobile browser on the 99 * recipient's device opens and loads the web page at a URL that you 100 * specify.</p></li></ul> 101 */ WithAction(const Action & value)102 inline AndroidPushNotificationTemplate& WithAction(const Action& value) { SetAction(value); return *this;} 103 104 /** 105 * <p>The action to occur if a recipient taps a push notification that's based on 106 * the message template. Valid values are:</p> <ul><li><p>OPEN_APP - Your app opens 107 * or it becomes the foreground app if it was sent to the background. This is the 108 * default action.</p></li> <li><p>DEEP_LINK - Your app opens and displays a 109 * designated user interface in the app. This action uses the deep-linking features 110 * of the Android platform.</p></li> <li><p>URL - The default mobile browser on the 111 * recipient's device opens and loads the web page at a URL that you 112 * specify.</p></li></ul> 113 */ WithAction(Action && value)114 inline AndroidPushNotificationTemplate& WithAction(Action&& value) { SetAction(std::move(value)); return *this;} 115 116 117 /** 118 * <p>The message body to use in a push notification that's based on the message 119 * template.</p> 120 */ GetBody()121 inline const Aws::String& GetBody() const{ return m_body; } 122 123 /** 124 * <p>The message body to use in a push notification that's based on the message 125 * template.</p> 126 */ BodyHasBeenSet()127 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; } 128 129 /** 130 * <p>The message body to use in a push notification that's based on the message 131 * template.</p> 132 */ SetBody(const Aws::String & value)133 inline void SetBody(const Aws::String& value) { m_bodyHasBeenSet = true; m_body = value; } 134 135 /** 136 * <p>The message body to use in a push notification that's based on the message 137 * template.</p> 138 */ SetBody(Aws::String && value)139 inline void SetBody(Aws::String&& value) { m_bodyHasBeenSet = true; m_body = std::move(value); } 140 141 /** 142 * <p>The message body to use in a push notification that's based on the message 143 * template.</p> 144 */ SetBody(const char * value)145 inline void SetBody(const char* value) { m_bodyHasBeenSet = true; m_body.assign(value); } 146 147 /** 148 * <p>The message body to use in a push notification that's based on the message 149 * template.</p> 150 */ WithBody(const Aws::String & value)151 inline AndroidPushNotificationTemplate& WithBody(const Aws::String& value) { SetBody(value); return *this;} 152 153 /** 154 * <p>The message body to use in a push notification that's based on the message 155 * template.</p> 156 */ WithBody(Aws::String && value)157 inline AndroidPushNotificationTemplate& WithBody(Aws::String&& value) { SetBody(std::move(value)); return *this;} 158 159 /** 160 * <p>The message body to use in a push notification that's based on the message 161 * template.</p> 162 */ WithBody(const char * value)163 inline AndroidPushNotificationTemplate& WithBody(const char* value) { SetBody(value); return *this;} 164 165 166 /** 167 * <p>The URL of the large icon image to display in the content view of a push 168 * notification that's based on the message template.</p> 169 */ GetImageIconUrl()170 inline const Aws::String& GetImageIconUrl() const{ return m_imageIconUrl; } 171 172 /** 173 * <p>The URL of the large icon image to display in the content view of a push 174 * notification that's based on the message template.</p> 175 */ ImageIconUrlHasBeenSet()176 inline bool ImageIconUrlHasBeenSet() const { return m_imageIconUrlHasBeenSet; } 177 178 /** 179 * <p>The URL of the large icon image to display in the content view of a push 180 * notification that's based on the message template.</p> 181 */ SetImageIconUrl(const Aws::String & value)182 inline void SetImageIconUrl(const Aws::String& value) { m_imageIconUrlHasBeenSet = true; m_imageIconUrl = value; } 183 184 /** 185 * <p>The URL of the large icon image to display in the content view of a push 186 * notification that's based on the message template.</p> 187 */ SetImageIconUrl(Aws::String && value)188 inline void SetImageIconUrl(Aws::String&& value) { m_imageIconUrlHasBeenSet = true; m_imageIconUrl = std::move(value); } 189 190 /** 191 * <p>The URL of the large icon image to display in the content view of a push 192 * notification that's based on the message template.</p> 193 */ SetImageIconUrl(const char * value)194 inline void SetImageIconUrl(const char* value) { m_imageIconUrlHasBeenSet = true; m_imageIconUrl.assign(value); } 195 196 /** 197 * <p>The URL of the large icon image to display in the content view of a push 198 * notification that's based on the message template.</p> 199 */ WithImageIconUrl(const Aws::String & value)200 inline AndroidPushNotificationTemplate& WithImageIconUrl(const Aws::String& value) { SetImageIconUrl(value); return *this;} 201 202 /** 203 * <p>The URL of the large icon image to display in the content view of a push 204 * notification that's based on the message template.</p> 205 */ WithImageIconUrl(Aws::String && value)206 inline AndroidPushNotificationTemplate& WithImageIconUrl(Aws::String&& value) { SetImageIconUrl(std::move(value)); return *this;} 207 208 /** 209 * <p>The URL of the large icon image to display in the content view of a push 210 * notification that's based on the message template.</p> 211 */ WithImageIconUrl(const char * value)212 inline AndroidPushNotificationTemplate& WithImageIconUrl(const char* value) { SetImageIconUrl(value); return *this;} 213 214 215 /** 216 * <p>The URL of an image to display in a push notification that's based on the 217 * message template.</p> 218 */ GetImageUrl()219 inline const Aws::String& GetImageUrl() const{ return m_imageUrl; } 220 221 /** 222 * <p>The URL of an image to display in a push notification that's based on the 223 * message template.</p> 224 */ ImageUrlHasBeenSet()225 inline bool ImageUrlHasBeenSet() const { return m_imageUrlHasBeenSet; } 226 227 /** 228 * <p>The URL of an image to display in a push notification that's based on the 229 * message template.</p> 230 */ SetImageUrl(const Aws::String & value)231 inline void SetImageUrl(const Aws::String& value) { m_imageUrlHasBeenSet = true; m_imageUrl = value; } 232 233 /** 234 * <p>The URL of an image to display in a push notification that's based on the 235 * message template.</p> 236 */ SetImageUrl(Aws::String && value)237 inline void SetImageUrl(Aws::String&& value) { m_imageUrlHasBeenSet = true; m_imageUrl = std::move(value); } 238 239 /** 240 * <p>The URL of an image to display in a push notification that's based on the 241 * message template.</p> 242 */ SetImageUrl(const char * value)243 inline void SetImageUrl(const char* value) { m_imageUrlHasBeenSet = true; m_imageUrl.assign(value); } 244 245 /** 246 * <p>The URL of an image to display in a push notification that's based on the 247 * message template.</p> 248 */ WithImageUrl(const Aws::String & value)249 inline AndroidPushNotificationTemplate& WithImageUrl(const Aws::String& value) { SetImageUrl(value); return *this;} 250 251 /** 252 * <p>The URL of an image to display in a push notification that's based on the 253 * message template.</p> 254 */ WithImageUrl(Aws::String && value)255 inline AndroidPushNotificationTemplate& WithImageUrl(Aws::String&& value) { SetImageUrl(std::move(value)); return *this;} 256 257 /** 258 * <p>The URL of an image to display in a push notification that's based on the 259 * message template.</p> 260 */ WithImageUrl(const char * value)261 inline AndroidPushNotificationTemplate& WithImageUrl(const char* value) { SetImageUrl(value); return *this;} 262 263 264 /** 265 * <p>The raw, JSON-formatted string to use as the payload for a push notification 266 * that's based on the message template. If specified, this value overrides all 267 * other content for the message template.</p> 268 */ GetRawContent()269 inline const Aws::String& GetRawContent() const{ return m_rawContent; } 270 271 /** 272 * <p>The raw, JSON-formatted string to use as the payload for a push notification 273 * that's based on the message template. If specified, this value overrides all 274 * other content for the message template.</p> 275 */ RawContentHasBeenSet()276 inline bool RawContentHasBeenSet() const { return m_rawContentHasBeenSet; } 277 278 /** 279 * <p>The raw, JSON-formatted string to use as the payload for a push notification 280 * that's based on the message template. If specified, this value overrides all 281 * other content for the message template.</p> 282 */ SetRawContent(const Aws::String & value)283 inline void SetRawContent(const Aws::String& value) { m_rawContentHasBeenSet = true; m_rawContent = value; } 284 285 /** 286 * <p>The raw, JSON-formatted string to use as the payload for a push notification 287 * that's based on the message template. If specified, this value overrides all 288 * other content for the message template.</p> 289 */ SetRawContent(Aws::String && value)290 inline void SetRawContent(Aws::String&& value) { m_rawContentHasBeenSet = true; m_rawContent = std::move(value); } 291 292 /** 293 * <p>The raw, JSON-formatted string to use as the payload for a push notification 294 * that's based on the message template. If specified, this value overrides all 295 * other content for the message template.</p> 296 */ SetRawContent(const char * value)297 inline void SetRawContent(const char* value) { m_rawContentHasBeenSet = true; m_rawContent.assign(value); } 298 299 /** 300 * <p>The raw, JSON-formatted string to use as the payload for a push notification 301 * that's based on the message template. If specified, this value overrides all 302 * other content for the message template.</p> 303 */ WithRawContent(const Aws::String & value)304 inline AndroidPushNotificationTemplate& WithRawContent(const Aws::String& value) { SetRawContent(value); return *this;} 305 306 /** 307 * <p>The raw, JSON-formatted string to use as the payload for a push notification 308 * that's based on the message template. If specified, this value overrides all 309 * other content for the message template.</p> 310 */ WithRawContent(Aws::String && value)311 inline AndroidPushNotificationTemplate& WithRawContent(Aws::String&& value) { SetRawContent(std::move(value)); return *this;} 312 313 /** 314 * <p>The raw, JSON-formatted string to use as the payload for a push notification 315 * that's based on the message template. If specified, this value overrides all 316 * other content for the message template.</p> 317 */ WithRawContent(const char * value)318 inline AndroidPushNotificationTemplate& WithRawContent(const char* value) { SetRawContent(value); return *this;} 319 320 321 /** 322 * <p>The URL of the small icon image to display in the status bar and the content 323 * view of a push notification that's based on the message template.</p> 324 */ GetSmallImageIconUrl()325 inline const Aws::String& GetSmallImageIconUrl() const{ return m_smallImageIconUrl; } 326 327 /** 328 * <p>The URL of the small icon image to display in the status bar and the content 329 * view of a push notification that's based on the message template.</p> 330 */ SmallImageIconUrlHasBeenSet()331 inline bool SmallImageIconUrlHasBeenSet() const { return m_smallImageIconUrlHasBeenSet; } 332 333 /** 334 * <p>The URL of the small icon image to display in the status bar and the content 335 * view of a push notification that's based on the message template.</p> 336 */ SetSmallImageIconUrl(const Aws::String & value)337 inline void SetSmallImageIconUrl(const Aws::String& value) { m_smallImageIconUrlHasBeenSet = true; m_smallImageIconUrl = value; } 338 339 /** 340 * <p>The URL of the small icon image to display in the status bar and the content 341 * view of a push notification that's based on the message template.</p> 342 */ SetSmallImageIconUrl(Aws::String && value)343 inline void SetSmallImageIconUrl(Aws::String&& value) { m_smallImageIconUrlHasBeenSet = true; m_smallImageIconUrl = std::move(value); } 344 345 /** 346 * <p>The URL of the small icon image to display in the status bar and the content 347 * view of a push notification that's based on the message template.</p> 348 */ SetSmallImageIconUrl(const char * value)349 inline void SetSmallImageIconUrl(const char* value) { m_smallImageIconUrlHasBeenSet = true; m_smallImageIconUrl.assign(value); } 350 351 /** 352 * <p>The URL of the small icon image to display in the status bar and the content 353 * view of a push notification that's based on the message template.</p> 354 */ WithSmallImageIconUrl(const Aws::String & value)355 inline AndroidPushNotificationTemplate& WithSmallImageIconUrl(const Aws::String& value) { SetSmallImageIconUrl(value); return *this;} 356 357 /** 358 * <p>The URL of the small icon image to display in the status bar and the content 359 * view of a push notification that's based on the message template.</p> 360 */ WithSmallImageIconUrl(Aws::String && value)361 inline AndroidPushNotificationTemplate& WithSmallImageIconUrl(Aws::String&& value) { SetSmallImageIconUrl(std::move(value)); return *this;} 362 363 /** 364 * <p>The URL of the small icon image to display in the status bar and the content 365 * view of a push notification that's based on the message template.</p> 366 */ WithSmallImageIconUrl(const char * value)367 inline AndroidPushNotificationTemplate& WithSmallImageIconUrl(const char* value) { SetSmallImageIconUrl(value); return *this;} 368 369 370 /** 371 * <p>The sound to play when a recipient receives a push notification that's based 372 * on the message template. You can use the default stream or specify the file name 373 * of a sound resource that's bundled in your app. On an Android platform, the 374 * sound file must reside in /res/raw/.</p> 375 */ GetSound()376 inline const Aws::String& GetSound() const{ return m_sound; } 377 378 /** 379 * <p>The sound to play when a recipient receives a push notification that's based 380 * on the message template. You can use the default stream or specify the file name 381 * of a sound resource that's bundled in your app. On an Android platform, the 382 * sound file must reside in /res/raw/.</p> 383 */ SoundHasBeenSet()384 inline bool SoundHasBeenSet() const { return m_soundHasBeenSet; } 385 386 /** 387 * <p>The sound to play when a recipient receives a push notification that's based 388 * on the message template. You can use the default stream or specify the file name 389 * of a sound resource that's bundled in your app. On an Android platform, the 390 * sound file must reside in /res/raw/.</p> 391 */ SetSound(const Aws::String & value)392 inline void SetSound(const Aws::String& value) { m_soundHasBeenSet = true; m_sound = value; } 393 394 /** 395 * <p>The sound to play when a recipient receives a push notification that's based 396 * on the message template. You can use the default stream or specify the file name 397 * of a sound resource that's bundled in your app. On an Android platform, the 398 * sound file must reside in /res/raw/.</p> 399 */ SetSound(Aws::String && value)400 inline void SetSound(Aws::String&& value) { m_soundHasBeenSet = true; m_sound = std::move(value); } 401 402 /** 403 * <p>The sound to play when a recipient receives a push notification that's based 404 * on the message template. You can use the default stream or specify the file name 405 * of a sound resource that's bundled in your app. On an Android platform, the 406 * sound file must reside in /res/raw/.</p> 407 */ SetSound(const char * value)408 inline void SetSound(const char* value) { m_soundHasBeenSet = true; m_sound.assign(value); } 409 410 /** 411 * <p>The sound to play when a recipient receives a push notification that's based 412 * on the message template. You can use the default stream or specify the file name 413 * of a sound resource that's bundled in your app. On an Android platform, the 414 * sound file must reside in /res/raw/.</p> 415 */ WithSound(const Aws::String & value)416 inline AndroidPushNotificationTemplate& WithSound(const Aws::String& value) { SetSound(value); return *this;} 417 418 /** 419 * <p>The sound to play when a recipient receives a push notification that's based 420 * on the message template. You can use the default stream or specify the file name 421 * of a sound resource that's bundled in your app. On an Android platform, the 422 * sound file must reside in /res/raw/.</p> 423 */ WithSound(Aws::String && value)424 inline AndroidPushNotificationTemplate& WithSound(Aws::String&& value) { SetSound(std::move(value)); return *this;} 425 426 /** 427 * <p>The sound to play when a recipient receives a push notification that's based 428 * on the message template. You can use the default stream or specify the file name 429 * of a sound resource that's bundled in your app. On an Android platform, the 430 * sound file must reside in /res/raw/.</p> 431 */ WithSound(const char * value)432 inline AndroidPushNotificationTemplate& WithSound(const char* value) { SetSound(value); return *this;} 433 434 435 /** 436 * <p>The title to use in a push notification that's based on the message template. 437 * This title appears above the notification message on a recipient's device.</p> 438 */ GetTitle()439 inline const Aws::String& GetTitle() const{ return m_title; } 440 441 /** 442 * <p>The title to use in a push notification that's based on the message template. 443 * This title appears above the notification message on a recipient's device.</p> 444 */ TitleHasBeenSet()445 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; } 446 447 /** 448 * <p>The title to use in a push notification that's based on the message template. 449 * This title appears above the notification message on a recipient's device.</p> 450 */ SetTitle(const Aws::String & value)451 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; } 452 453 /** 454 * <p>The title to use in a push notification that's based on the message template. 455 * This title appears above the notification message on a recipient's device.</p> 456 */ SetTitle(Aws::String && value)457 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); } 458 459 /** 460 * <p>The title to use in a push notification that's based on the message template. 461 * This title appears above the notification message on a recipient's device.</p> 462 */ SetTitle(const char * value)463 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); } 464 465 /** 466 * <p>The title to use in a push notification that's based on the message template. 467 * This title appears above the notification message on a recipient's device.</p> 468 */ WithTitle(const Aws::String & value)469 inline AndroidPushNotificationTemplate& WithTitle(const Aws::String& value) { SetTitle(value); return *this;} 470 471 /** 472 * <p>The title to use in a push notification that's based on the message template. 473 * This title appears above the notification message on a recipient's device.</p> 474 */ WithTitle(Aws::String && value)475 inline AndroidPushNotificationTemplate& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;} 476 477 /** 478 * <p>The title to use in a push notification that's based on the message template. 479 * This title appears above the notification message on a recipient's device.</p> 480 */ WithTitle(const char * value)481 inline AndroidPushNotificationTemplate& WithTitle(const char* value) { SetTitle(value); return *this;} 482 483 484 /** 485 * <p>The URL to open in a recipient's default mobile browser, if a recipient taps 486 * a push notification that's based on the message template and the value of the 487 * Action property is URL.</p> 488 */ GetUrl()489 inline const Aws::String& GetUrl() const{ return m_url; } 490 491 /** 492 * <p>The URL to open in a recipient's default mobile browser, if a recipient taps 493 * a push notification that's based on the message template and the value of the 494 * Action property is URL.</p> 495 */ UrlHasBeenSet()496 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; } 497 498 /** 499 * <p>The URL to open in a recipient's default mobile browser, if a recipient taps 500 * a push notification that's based on the message template and the value of the 501 * Action property is URL.</p> 502 */ SetUrl(const Aws::String & value)503 inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; } 504 505 /** 506 * <p>The URL to open in a recipient's default mobile browser, if a recipient taps 507 * a push notification that's based on the message template and the value of the 508 * Action property is URL.</p> 509 */ SetUrl(Aws::String && value)510 inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); } 511 512 /** 513 * <p>The URL to open in a recipient's default mobile browser, if a recipient taps 514 * a push notification that's based on the message template and the value of the 515 * Action property is URL.</p> 516 */ SetUrl(const char * value)517 inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); } 518 519 /** 520 * <p>The URL to open in a recipient's default mobile browser, if a recipient taps 521 * a push notification that's based on the message template and the value of the 522 * Action property is URL.</p> 523 */ WithUrl(const Aws::String & value)524 inline AndroidPushNotificationTemplate& WithUrl(const Aws::String& value) { SetUrl(value); return *this;} 525 526 /** 527 * <p>The URL to open in a recipient's default mobile browser, if a recipient taps 528 * a push notification that's based on the message template and the value of the 529 * Action property is URL.</p> 530 */ WithUrl(Aws::String && value)531 inline AndroidPushNotificationTemplate& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;} 532 533 /** 534 * <p>The URL to open in a recipient's default mobile browser, if a recipient taps 535 * a push notification that's based on the message template and the value of the 536 * Action property is URL.</p> 537 */ WithUrl(const char * value)538 inline AndroidPushNotificationTemplate& WithUrl(const char* value) { SetUrl(value); return *this;} 539 540 private: 541 542 Action m_action; 543 bool m_actionHasBeenSet; 544 545 Aws::String m_body; 546 bool m_bodyHasBeenSet; 547 548 Aws::String m_imageIconUrl; 549 bool m_imageIconUrlHasBeenSet; 550 551 Aws::String m_imageUrl; 552 bool m_imageUrlHasBeenSet; 553 554 Aws::String m_rawContent; 555 bool m_rawContentHasBeenSet; 556 557 Aws::String m_smallImageIconUrl; 558 bool m_smallImageIconUrlHasBeenSet; 559 560 Aws::String m_sound; 561 bool m_soundHasBeenSet; 562 563 Aws::String m_title; 564 bool m_titleHasBeenSet; 565 566 Aws::String m_url; 567 bool m_urlHasBeenSet; 568 }; 569 570 } // namespace Model 571 } // namespace Pinpoint 572 } // namespace Aws 573