AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
PublishBatchRequestEntry.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sns/SNS_EXPORTS.h>
11#include <aws/sns/model/MessageAttributeValue.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace SNS {
22namespace Model {
23
32 public:
33 AWS_SNS_API PublishBatchRequestEntry() = default;
36
37 AWS_SNS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_SNS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
47 inline const Aws::String& GetId() const { return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 template <typename IdT = Aws::String>
50 void SetId(IdT&& value) {
51 m_idHasBeenSet = true;
52 m_id = std::forward<IdT>(value);
53 }
54 template <typename IdT = Aws::String>
56 SetId(std::forward<IdT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetMessage() const { return m_message; }
66 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
67 template <typename MessageT = Aws::String>
68 void SetMessage(MessageT&& value) {
69 m_messageHasBeenSet = true;
70 m_message = std::forward<MessageT>(value);
71 }
72 template <typename MessageT = Aws::String>
74 SetMessage(std::forward<MessageT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetSubject() const { return m_subject; }
84 inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; }
85 template <typename SubjectT = Aws::String>
86 void SetSubject(SubjectT&& value) {
87 m_subjectHasBeenSet = true;
88 m_subject = std::forward<SubjectT>(value);
89 }
90 template <typename SubjectT = Aws::String>
92 SetSubject(std::forward<SubjectT>(value));
93 return *this;
94 }
96
98
109 inline const Aws::String& GetMessageStructure() const { return m_messageStructure; }
110 inline bool MessageStructureHasBeenSet() const { return m_messageStructureHasBeenSet; }
111 template <typename MessageStructureT = Aws::String>
112 void SetMessageStructure(MessageStructureT&& value) {
113 m_messageStructureHasBeenSet = true;
114 m_messageStructure = std::forward<MessageStructureT>(value);
115 }
116 template <typename MessageStructureT = Aws::String>
117 PublishBatchRequestEntry& WithMessageStructure(MessageStructureT&& value) {
118 SetMessageStructure(std::forward<MessageStructureT>(value));
119 return *this;
120 }
122
124
130 inline const Aws::Map<Aws::String, MessageAttributeValue>& GetMessageAttributes() const { return m_messageAttributes; }
131 inline bool MessageAttributesHasBeenSet() const { return m_messageAttributesHasBeenSet; }
132 template <typename MessageAttributesT = Aws::Map<Aws::String, MessageAttributeValue>>
133 void SetMessageAttributes(MessageAttributesT&& value) {
134 m_messageAttributesHasBeenSet = true;
135 m_messageAttributes = std::forward<MessageAttributesT>(value);
136 }
137 template <typename MessageAttributesT = Aws::Map<Aws::String, MessageAttributeValue>>
138 PublishBatchRequestEntry& WithMessageAttributes(MessageAttributesT&& value) {
139 SetMessageAttributes(std::forward<MessageAttributesT>(value));
140 return *this;
141 }
142 template <typename MessageAttributesKeyT = Aws::String, typename MessageAttributesValueT = MessageAttributeValue>
143 PublishBatchRequestEntry& AddMessageAttributes(MessageAttributesKeyT&& key, MessageAttributesValueT&& value) {
144 m_messageAttributesHasBeenSet = true;
145 m_messageAttributes.emplace(std::forward<MessageAttributesKeyT>(key), std::forward<MessageAttributesValueT>(value));
146 return *this;
147 }
149
151
195 inline const Aws::String& GetMessageDeduplicationId() const { return m_messageDeduplicationId; }
196 inline bool MessageDeduplicationIdHasBeenSet() const { return m_messageDeduplicationIdHasBeenSet; }
197 template <typename MessageDeduplicationIdT = Aws::String>
198 void SetMessageDeduplicationId(MessageDeduplicationIdT&& value) {
199 m_messageDeduplicationIdHasBeenSet = true;
200 m_messageDeduplicationId = std::forward<MessageDeduplicationIdT>(value);
201 }
202 template <typename MessageDeduplicationIdT = Aws::String>
203 PublishBatchRequestEntry& WithMessageDeduplicationId(MessageDeduplicationIdT&& value) {
204 SetMessageDeduplicationId(std::forward<MessageDeduplicationIdT>(value));
205 return *this;
206 }
208
210
229 inline const Aws::String& GetMessageGroupId() const { return m_messageGroupId; }
230 inline bool MessageGroupIdHasBeenSet() const { return m_messageGroupIdHasBeenSet; }
231 template <typename MessageGroupIdT = Aws::String>
232 void SetMessageGroupId(MessageGroupIdT&& value) {
233 m_messageGroupIdHasBeenSet = true;
234 m_messageGroupId = std::forward<MessageGroupIdT>(value);
235 }
236 template <typename MessageGroupIdT = Aws::String>
238 SetMessageGroupId(std::forward<MessageGroupIdT>(value));
239 return *this;
240 }
242 private:
243 Aws::String m_id;
244
245 Aws::String m_message;
246
247 Aws::String m_subject;
248
249 Aws::String m_messageStructure;
250
252
253 Aws::String m_messageDeduplicationId;
254
255 Aws::String m_messageGroupId;
256 bool m_idHasBeenSet = false;
257 bool m_messageHasBeenSet = false;
258 bool m_subjectHasBeenSet = false;
259 bool m_messageStructureHasBeenSet = false;
260 bool m_messageAttributesHasBeenSet = false;
261 bool m_messageDeduplicationIdHasBeenSet = false;
262 bool m_messageGroupIdHasBeenSet = false;
263};
264
265} // namespace Model
266} // namespace SNS
267} // namespace Aws
const Aws::String & GetSubject() const
const Aws::String & GetMessageStructure() const
PublishBatchRequestEntry & AddMessageAttributes(MessageAttributesKeyT &&key, MessageAttributesValueT &&value)
const Aws::String & GetId() const
const Aws::String & GetMessage() const
const Aws::String & GetMessageDeduplicationId() const
void SetMessageAttributes(MessageAttributesT &&value)
PublishBatchRequestEntry & WithMessage(MessageT &&value)
const Aws::String & GetMessageGroupId() const
bool MessageDeduplicationIdHasBeenSet() const
bool MessageGroupIdHasBeenSet() const
AWS_SNS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool SubjectHasBeenSet() const
PublishBatchRequestEntry & WithMessageDeduplicationId(MessageDeduplicationIdT &&value)
AWS_SNS_API PublishBatchRequestEntry & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
PublishBatchRequestEntry & WithSubject(SubjectT &&value)
PublishBatchRequestEntry & WithMessageAttributes(MessageAttributesT &&value)
bool IdHasBeenSet() const
void SetMessageGroupId(MessageGroupIdT &&value)
void SetMessageStructure(MessageStructureT &&value)
PublishBatchRequestEntry & WithMessageStructure(MessageStructureT &&value)
AWS_SNS_API PublishBatchRequestEntry()=default
void SetId(IdT &&value)
AWS_SNS_API PublishBatchRequestEntry(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetMessageDeduplicationId(MessageDeduplicationIdT &&value)
PublishBatchRequestEntry & WithMessageGroupId(MessageGroupIdT &&value)
bool MessageHasBeenSet() const
bool MessageAttributesHasBeenSet() const
const Aws::Map< Aws::String, MessageAttributeValue > & GetMessageAttributes() const
PublishBatchRequestEntry & WithId(IdT &&value)
AWS_SNS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool MessageStructureHasBeenSet() const
void SetSubject(SubjectT &&value)
void SetMessage(MessageT &&value)
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::basic_ostream< char, std::char_traits< char > > OStream