AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SMSMessage.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/pinpoint/model/MessageType.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Pinpoint
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_PINPOINT_API SMSMessage();
39 AWS_PINPOINT_API SMSMessage(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PINPOINT_API SMSMessage& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetBody() const{ return m_body; }
49 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
50 inline void SetBody(const Aws::String& value) { m_bodyHasBeenSet = true; m_body = value; }
51 inline void SetBody(Aws::String&& value) { m_bodyHasBeenSet = true; m_body = std::move(value); }
52 inline void SetBody(const char* value) { m_bodyHasBeenSet = true; m_body.assign(value); }
53 inline SMSMessage& WithBody(const Aws::String& value) { SetBody(value); return *this;}
54 inline SMSMessage& WithBody(Aws::String&& value) { SetBody(std::move(value)); return *this;}
55 inline SMSMessage& WithBody(const char* value) { SetBody(value); return *this;}
57
59
63 inline const Aws::String& GetKeyword() const{ return m_keyword; }
64 inline bool KeywordHasBeenSet() const { return m_keywordHasBeenSet; }
65 inline void SetKeyword(const Aws::String& value) { m_keywordHasBeenSet = true; m_keyword = value; }
66 inline void SetKeyword(Aws::String&& value) { m_keywordHasBeenSet = true; m_keyword = std::move(value); }
67 inline void SetKeyword(const char* value) { m_keywordHasBeenSet = true; m_keyword.assign(value); }
68 inline SMSMessage& WithKeyword(const Aws::String& value) { SetKeyword(value); return *this;}
69 inline SMSMessage& WithKeyword(Aws::String&& value) { SetKeyword(std::move(value)); return *this;}
70 inline SMSMessage& WithKeyword(const char* value) { SetKeyword(value); return *this;}
72
74
77 inline const Aws::String& GetMediaUrl() const{ return m_mediaUrl; }
78 inline bool MediaUrlHasBeenSet() const { return m_mediaUrlHasBeenSet; }
79 inline void SetMediaUrl(const Aws::String& value) { m_mediaUrlHasBeenSet = true; m_mediaUrl = value; }
80 inline void SetMediaUrl(Aws::String&& value) { m_mediaUrlHasBeenSet = true; m_mediaUrl = std::move(value); }
81 inline void SetMediaUrl(const char* value) { m_mediaUrlHasBeenSet = true; m_mediaUrl.assign(value); }
82 inline SMSMessage& WithMediaUrl(const Aws::String& value) { SetMediaUrl(value); return *this;}
83 inline SMSMessage& WithMediaUrl(Aws::String&& value) { SetMediaUrl(std::move(value)); return *this;}
84 inline SMSMessage& WithMediaUrl(const char* value) { SetMediaUrl(value); return *this;}
86
88
94 inline const MessageType& GetMessageType() const{ return m_messageType; }
95 inline bool MessageTypeHasBeenSet() const { return m_messageTypeHasBeenSet; }
96 inline void SetMessageType(const MessageType& value) { m_messageTypeHasBeenSet = true; m_messageType = value; }
97 inline void SetMessageType(MessageType&& value) { m_messageTypeHasBeenSet = true; m_messageType = std::move(value); }
98 inline SMSMessage& WithMessageType(const MessageType& value) { SetMessageType(value); return *this;}
99 inline SMSMessage& WithMessageType(MessageType&& value) { SetMessageType(std::move(value)); return *this;}
101
103
109 inline const Aws::String& GetOriginationNumber() const{ return m_originationNumber; }
110 inline bool OriginationNumberHasBeenSet() const { return m_originationNumberHasBeenSet; }
111 inline void SetOriginationNumber(const Aws::String& value) { m_originationNumberHasBeenSet = true; m_originationNumber = value; }
112 inline void SetOriginationNumber(Aws::String&& value) { m_originationNumberHasBeenSet = true; m_originationNumber = std::move(value); }
113 inline void SetOriginationNumber(const char* value) { m_originationNumberHasBeenSet = true; m_originationNumber.assign(value); }
114 inline SMSMessage& WithOriginationNumber(const Aws::String& value) { SetOriginationNumber(value); return *this;}
115 inline SMSMessage& WithOriginationNumber(Aws::String&& value) { SetOriginationNumber(std::move(value)); return *this;}
116 inline SMSMessage& WithOriginationNumber(const char* value) { SetOriginationNumber(value); return *this;}
118
120
124 inline const Aws::String& GetSenderId() const{ return m_senderId; }
125 inline bool SenderIdHasBeenSet() const { return m_senderIdHasBeenSet; }
126 inline void SetSenderId(const Aws::String& value) { m_senderIdHasBeenSet = true; m_senderId = value; }
127 inline void SetSenderId(Aws::String&& value) { m_senderIdHasBeenSet = true; m_senderId = std::move(value); }
128 inline void SetSenderId(const char* value) { m_senderIdHasBeenSet = true; m_senderId.assign(value); }
129 inline SMSMessage& WithSenderId(const Aws::String& value) { SetSenderId(value); return *this;}
130 inline SMSMessage& WithSenderId(Aws::String&& value) { SetSenderId(std::move(value)); return *this;}
131 inline SMSMessage& WithSenderId(const char* value) { SetSenderId(value); return *this;}
133
135
139 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetSubstitutions() const{ return m_substitutions; }
140 inline bool SubstitutionsHasBeenSet() const { return m_substitutionsHasBeenSet; }
141 inline void SetSubstitutions(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_substitutionsHasBeenSet = true; m_substitutions = value; }
142 inline void SetSubstitutions(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_substitutionsHasBeenSet = true; m_substitutions = std::move(value); }
144 inline SMSMessage& WithSubstitutions(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { SetSubstitutions(std::move(value)); return *this;}
145 inline SMSMessage& AddSubstitutions(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(key, value); return *this; }
146 inline SMSMessage& AddSubstitutions(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(std::move(key), value); return *this; }
147 inline SMSMessage& AddSubstitutions(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(key, std::move(value)); return *this; }
148 inline SMSMessage& AddSubstitutions(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(std::move(key), std::move(value)); return *this; }
149 inline SMSMessage& AddSubstitutions(const char* key, Aws::Vector<Aws::String>&& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(key, std::move(value)); return *this; }
150 inline SMSMessage& AddSubstitutions(const char* key, const Aws::Vector<Aws::String>& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(key, value); return *this; }
152
154
158 inline const Aws::String& GetEntityId() const{ return m_entityId; }
159 inline bool EntityIdHasBeenSet() const { return m_entityIdHasBeenSet; }
160 inline void SetEntityId(const Aws::String& value) { m_entityIdHasBeenSet = true; m_entityId = value; }
161 inline void SetEntityId(Aws::String&& value) { m_entityIdHasBeenSet = true; m_entityId = std::move(value); }
162 inline void SetEntityId(const char* value) { m_entityIdHasBeenSet = true; m_entityId.assign(value); }
163 inline SMSMessage& WithEntityId(const Aws::String& value) { SetEntityId(value); return *this;}
164 inline SMSMessage& WithEntityId(Aws::String&& value) { SetEntityId(std::move(value)); return *this;}
165 inline SMSMessage& WithEntityId(const char* value) { SetEntityId(value); return *this;}
167
169
173 inline const Aws::String& GetTemplateId() const{ return m_templateId; }
174 inline bool TemplateIdHasBeenSet() const { return m_templateIdHasBeenSet; }
175 inline void SetTemplateId(const Aws::String& value) { m_templateIdHasBeenSet = true; m_templateId = value; }
176 inline void SetTemplateId(Aws::String&& value) { m_templateIdHasBeenSet = true; m_templateId = std::move(value); }
177 inline void SetTemplateId(const char* value) { m_templateIdHasBeenSet = true; m_templateId.assign(value); }
178 inline SMSMessage& WithTemplateId(const Aws::String& value) { SetTemplateId(value); return *this;}
179 inline SMSMessage& WithTemplateId(Aws::String&& value) { SetTemplateId(std::move(value)); return *this;}
180 inline SMSMessage& WithTemplateId(const char* value) { SetTemplateId(value); return *this;}
182 private:
183
184 Aws::String m_body;
185 bool m_bodyHasBeenSet = false;
186
187 Aws::String m_keyword;
188 bool m_keywordHasBeenSet = false;
189
190 Aws::String m_mediaUrl;
191 bool m_mediaUrlHasBeenSet = false;
192
193 MessageType m_messageType;
194 bool m_messageTypeHasBeenSet = false;
195
196 Aws::String m_originationNumber;
197 bool m_originationNumberHasBeenSet = false;
198
199 Aws::String m_senderId;
200 bool m_senderIdHasBeenSet = false;
201
203 bool m_substitutionsHasBeenSet = false;
204
205 Aws::String m_entityId;
206 bool m_entityIdHasBeenSet = false;
207
208 Aws::String m_templateId;
209 bool m_templateIdHasBeenSet = false;
210 };
211
212} // namespace Model
213} // namespace Pinpoint
214} // namespace Aws
void SetTemplateId(const char *value)
Definition SMSMessage.h:177
void SetKeyword(Aws::String &&value)
Definition SMSMessage.h:66
SMSMessage & AddSubstitutions(const Aws::String &key, const Aws::Vector< Aws::String > &value)
Definition SMSMessage.h:145
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
SMSMessage & WithBody(const char *value)
Definition SMSMessage.h:55
SMSMessage & WithSubstitutions(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
Definition SMSMessage.h:144
SMSMessage & WithEntityId(const char *value)
Definition SMSMessage.h:165
SMSMessage & WithKeyword(const char *value)
Definition SMSMessage.h:70
SMSMessage & AddSubstitutions(Aws::String &&key, Aws::Vector< Aws::String > &&value)
Definition SMSMessage.h:148
void SetSubstitutions(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
Definition SMSMessage.h:142
void SetMediaUrl(Aws::String &&value)
Definition SMSMessage.h:80
AWS_PINPOINT_API SMSMessage & operator=(Aws::Utils::Json::JsonView jsonValue)
SMSMessage & WithTemplateId(Aws::String &&value)
Definition SMSMessage.h:179
void SetOriginationNumber(Aws::String &&value)
Definition SMSMessage.h:112
void SetMediaUrl(const Aws::String &value)
Definition SMSMessage.h:79
SMSMessage & WithMediaUrl(const char *value)
Definition SMSMessage.h:84
SMSMessage & WithBody(const Aws::String &value)
Definition SMSMessage.h:53
SMSMessage & AddSubstitutions(const char *key, const Aws::Vector< Aws::String > &value)
Definition SMSMessage.h:150
const Aws::String & GetTemplateId() const
Definition SMSMessage.h:173
void SetOriginationNumber(const char *value)
Definition SMSMessage.h:113
AWS_PINPOINT_API SMSMessage(Aws::Utils::Json::JsonView jsonValue)
void SetEntityId(const Aws::String &value)
Definition SMSMessage.h:160
const Aws::String & GetSenderId() const
Definition SMSMessage.h:124
const MessageType & GetMessageType() const
Definition SMSMessage.h:94
void SetBody(Aws::String &&value)
Definition SMSMessage.h:51
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetSubstitutions() const
Definition SMSMessage.h:139
SMSMessage & WithMediaUrl(const Aws::String &value)
Definition SMSMessage.h:82
const Aws::String & GetOriginationNumber() const
Definition SMSMessage.h:109
SMSMessage & WithSenderId(const char *value)
Definition SMSMessage.h:131
SMSMessage & AddSubstitutions(Aws::String &&key, const Aws::Vector< Aws::String > &value)
Definition SMSMessage.h:146
void SetTemplateId(const Aws::String &value)
Definition SMSMessage.h:175
SMSMessage & WithMediaUrl(Aws::String &&value)
Definition SMSMessage.h:83
SMSMessage & WithSenderId(Aws::String &&value)
Definition SMSMessage.h:130
SMSMessage & WithKeyword(const Aws::String &value)
Definition SMSMessage.h:68
void SetSenderId(const Aws::String &value)
Definition SMSMessage.h:126
void SetEntityId(Aws::String &&value)
Definition SMSMessage.h:161
void SetMediaUrl(const char *value)
Definition SMSMessage.h:81
const Aws::String & GetBody() const
Definition SMSMessage.h:48
SMSMessage & WithOriginationNumber(const Aws::String &value)
Definition SMSMessage.h:114
void SetMessageType(const MessageType &value)
Definition SMSMessage.h:96
SMSMessage & WithOriginationNumber(const char *value)
Definition SMSMessage.h:116
void SetKeyword(const char *value)
Definition SMSMessage.h:67
const Aws::String & GetEntityId() const
Definition SMSMessage.h:158
SMSMessage & AddSubstitutions(const char *key, Aws::Vector< Aws::String > &&value)
Definition SMSMessage.h:149
SMSMessage & WithMessageType(const MessageType &value)
Definition SMSMessage.h:98
SMSMessage & WithTemplateId(const char *value)
Definition SMSMessage.h:180
SMSMessage & WithOriginationNumber(Aws::String &&value)
Definition SMSMessage.h:115
void SetEntityId(const char *value)
Definition SMSMessage.h:162
const Aws::String & GetMediaUrl() const
Definition SMSMessage.h:77
SMSMessage & WithMessageType(MessageType &&value)
Definition SMSMessage.h:99
const Aws::String & GetKeyword() const
Definition SMSMessage.h:63
void SetSubstitutions(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
Definition SMSMessage.h:141
SMSMessage & WithBody(Aws::String &&value)
Definition SMSMessage.h:54
void SetBody(const Aws::String &value)
Definition SMSMessage.h:50
SMSMessage & WithEntityId(Aws::String &&value)
Definition SMSMessage.h:164
SMSMessage & WithTemplateId(const Aws::String &value)
Definition SMSMessage.h:178
void SetOriginationNumber(const Aws::String &value)
Definition SMSMessage.h:111
void SetBody(const char *value)
Definition SMSMessage.h:52
SMSMessage & AddSubstitutions(const Aws::String &key, Aws::Vector< Aws::String > &&value)
Definition SMSMessage.h:147
SMSMessage & WithEntityId(const Aws::String &value)
Definition SMSMessage.h:163
void SetSenderId(const char *value)
Definition SMSMessage.h:128
SMSMessage & WithSubstitutions(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
Definition SMSMessage.h:143
SMSMessage & WithKeyword(Aws::String &&value)
Definition SMSMessage.h:69
SMSMessage & WithSenderId(const Aws::String &value)
Definition SMSMessage.h:129
void SetSenderId(Aws::String &&value)
Definition SMSMessage.h:127
void SetMessageType(MessageType &&value)
Definition SMSMessage.h:97
void SetKeyword(const Aws::String &value)
Definition SMSMessage.h:65
void SetTemplateId(Aws::String &&value)
Definition SMSMessage.h:176
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue