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/core/utils/memory/stl/AWSString.h> 9 #include <utility> 10 11 namespace Aws 12 { 13 namespace Utils 14 { 15 namespace Json 16 { 17 class JsonValue; 18 class JsonView; 19 } // namespace Json 20 } // namespace Utils 21 namespace Pinpoint 22 { 23 namespace Model 24 { 25 26 /** 27 * <p>Specifies the contents of a message that's sent through a custom channel to 28 * recipients of a campaign.</p><p><h3>See Also:</h3> <a 29 * href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/CampaignCustomMessage">AWS 30 * API Reference</a></p> 31 */ 32 class AWS_PINPOINT_API CampaignCustomMessage 33 { 34 public: 35 CampaignCustomMessage(); 36 CampaignCustomMessage(Aws::Utils::Json::JsonView jsonValue); 37 CampaignCustomMessage& operator=(Aws::Utils::Json::JsonView jsonValue); 38 Aws::Utils::Json::JsonValue Jsonize() const; 39 40 41 /** 42 * <p>The raw, JSON-formatted string to use as the payload for the message. The 43 * maximum size is 5 KB.</p> 44 */ GetData()45 inline const Aws::String& GetData() const{ return m_data; } 46 47 /** 48 * <p>The raw, JSON-formatted string to use as the payload for the message. The 49 * maximum size is 5 KB.</p> 50 */ DataHasBeenSet()51 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; } 52 53 /** 54 * <p>The raw, JSON-formatted string to use as the payload for the message. The 55 * maximum size is 5 KB.</p> 56 */ SetData(const Aws::String & value)57 inline void SetData(const Aws::String& value) { m_dataHasBeenSet = true; m_data = value; } 58 59 /** 60 * <p>The raw, JSON-formatted string to use as the payload for the message. The 61 * maximum size is 5 KB.</p> 62 */ SetData(Aws::String && value)63 inline void SetData(Aws::String&& value) { m_dataHasBeenSet = true; m_data = std::move(value); } 64 65 /** 66 * <p>The raw, JSON-formatted string to use as the payload for the message. The 67 * maximum size is 5 KB.</p> 68 */ SetData(const char * value)69 inline void SetData(const char* value) { m_dataHasBeenSet = true; m_data.assign(value); } 70 71 /** 72 * <p>The raw, JSON-formatted string to use as the payload for the message. The 73 * maximum size is 5 KB.</p> 74 */ WithData(const Aws::String & value)75 inline CampaignCustomMessage& WithData(const Aws::String& value) { SetData(value); return *this;} 76 77 /** 78 * <p>The raw, JSON-formatted string to use as the payload for the message. The 79 * maximum size is 5 KB.</p> 80 */ WithData(Aws::String && value)81 inline CampaignCustomMessage& WithData(Aws::String&& value) { SetData(std::move(value)); return *this;} 82 83 /** 84 * <p>The raw, JSON-formatted string to use as the payload for the message. The 85 * maximum size is 5 KB.</p> 86 */ WithData(const char * value)87 inline CampaignCustomMessage& WithData(const char* value) { SetData(value); return *this;} 88 89 private: 90 91 Aws::String m_data; 92 bool m_dataHasBeenSet; 93 }; 94 95 } // namespace Model 96 } // namespace Pinpoint 97 } // namespace Aws 98