AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PublishBatchRequestEntry.h
1
6#pragma once
7#include <aws/sns/SNS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/sns/model/MessageAttributeValue.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace SNS
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_SNS_API PublishBatchRequestEntry() = default;
41
42 AWS_SNS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_SNS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
53 inline const Aws::String& GetId() const { return m_id; }
54 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
55 template<typename IdT = Aws::String>
56 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
57 template<typename IdT = Aws::String>
58 PublishBatchRequestEntry& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
69 template<typename MessageT = Aws::String>
70 PublishBatchRequestEntry& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
72
74
77 inline const Aws::String& GetSubject() const { return m_subject; }
78 inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; }
79 template<typename SubjectT = Aws::String>
80 void SetSubject(SubjectT&& value) { m_subjectHasBeenSet = true; m_subject = std::forward<SubjectT>(value); }
81 template<typename SubjectT = Aws::String>
82 PublishBatchRequestEntry& WithSubject(SubjectT&& value) { SetSubject(std::forward<SubjectT>(value)); return *this;}
84
86
97 inline const Aws::String& GetMessageStructure() const { return m_messageStructure; }
98 inline bool MessageStructureHasBeenSet() const { return m_messageStructureHasBeenSet; }
99 template<typename MessageStructureT = Aws::String>
100 void SetMessageStructure(MessageStructureT&& value) { m_messageStructureHasBeenSet = true; m_messageStructure = std::forward<MessageStructureT>(value); }
101 template<typename MessageStructureT = Aws::String>
102 PublishBatchRequestEntry& WithMessageStructure(MessageStructureT&& value) { SetMessageStructure(std::forward<MessageStructureT>(value)); return *this;}
104
106
112 inline const Aws::Map<Aws::String, MessageAttributeValue>& GetMessageAttributes() const { return m_messageAttributes; }
113 inline bool MessageAttributesHasBeenSet() const { return m_messageAttributesHasBeenSet; }
114 template<typename MessageAttributesT = Aws::Map<Aws::String, MessageAttributeValue>>
115 void SetMessageAttributes(MessageAttributesT&& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes = std::forward<MessageAttributesT>(value); }
116 template<typename MessageAttributesT = Aws::Map<Aws::String, MessageAttributeValue>>
117 PublishBatchRequestEntry& WithMessageAttributes(MessageAttributesT&& value) { SetMessageAttributes(std::forward<MessageAttributesT>(value)); return *this;}
118 template<typename MessageAttributesKeyT = Aws::String, typename MessageAttributesValueT = MessageAttributeValue>
119 PublishBatchRequestEntry& AddMessageAttributes(MessageAttributesKeyT&& key, MessageAttributesValueT&& value) {
120 m_messageAttributesHasBeenSet = true; m_messageAttributes.emplace(std::forward<MessageAttributesKeyT>(key), std::forward<MessageAttributesValueT>(value)); return *this;
121 }
123
125
169 inline const Aws::String& GetMessageDeduplicationId() const { return m_messageDeduplicationId; }
170 inline bool MessageDeduplicationIdHasBeenSet() const { return m_messageDeduplicationIdHasBeenSet; }
171 template<typename MessageDeduplicationIdT = Aws::String>
172 void SetMessageDeduplicationId(MessageDeduplicationIdT&& value) { m_messageDeduplicationIdHasBeenSet = true; m_messageDeduplicationId = std::forward<MessageDeduplicationIdT>(value); }
173 template<typename MessageDeduplicationIdT = Aws::String>
174 PublishBatchRequestEntry& WithMessageDeduplicationId(MessageDeduplicationIdT&& value) { SetMessageDeduplicationId(std::forward<MessageDeduplicationIdT>(value)); return *this;}
176
178
196 inline const Aws::String& GetMessageGroupId() const { return m_messageGroupId; }
197 inline bool MessageGroupIdHasBeenSet() const { return m_messageGroupIdHasBeenSet; }
198 template<typename MessageGroupIdT = Aws::String>
199 void SetMessageGroupId(MessageGroupIdT&& value) { m_messageGroupIdHasBeenSet = true; m_messageGroupId = std::forward<MessageGroupIdT>(value); }
200 template<typename MessageGroupIdT = Aws::String>
201 PublishBatchRequestEntry& WithMessageGroupId(MessageGroupIdT&& value) { SetMessageGroupId(std::forward<MessageGroupIdT>(value)); return *this;}
203 private:
204
205 Aws::String m_id;
206 bool m_idHasBeenSet = false;
207
208 Aws::String m_message;
209 bool m_messageHasBeenSet = false;
210
211 Aws::String m_subject;
212 bool m_subjectHasBeenSet = false;
213
214 Aws::String m_messageStructure;
215 bool m_messageStructureHasBeenSet = false;
216
218 bool m_messageAttributesHasBeenSet = false;
219
220 Aws::String m_messageDeduplicationId;
221 bool m_messageDeduplicationIdHasBeenSet = false;
222
223 Aws::String m_messageGroupId;
224 bool m_messageGroupIdHasBeenSet = false;
225 };
226
227} // namespace Model
228} // namespace SNS
229} // 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