AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
SendMessageBatchRequestEntry.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sqs/SQS_EXPORTS.h>
10#include <aws/sqs/model/MessageAttributeValue.h>
11#include <aws/sqs/model/MessageSystemAttributeNameForSends.h>
12#include <aws/sqs/model/MessageSystemAttributeValue.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SQS {
24namespace Model {
25
33 public:
34 AWS_SQS_API SendMessageBatchRequestEntry() = default;
38
40
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& GetMessageBody() const { return m_messageBody; }
66 inline bool MessageBodyHasBeenSet() const { return m_messageBodyHasBeenSet; }
67 template <typename MessageBodyT = Aws::String>
68 void SetMessageBody(MessageBodyT&& value) {
69 m_messageBodyHasBeenSet = true;
70 m_messageBody = std::forward<MessageBodyT>(value);
71 }
72 template <typename MessageBodyT = Aws::String>
74 SetMessageBody(std::forward<MessageBodyT>(value));
75 return *this;
76 }
78
80
89 inline int GetDelaySeconds() const { return m_delaySeconds; }
90 inline bool DelaySecondsHasBeenSet() const { return m_delaySecondsHasBeenSet; }
91 inline void SetDelaySeconds(int value) {
92 m_delaySecondsHasBeenSet = true;
93 m_delaySeconds = value;
94 }
96 SetDelaySeconds(value);
97 return *this;
98 }
100
102
108 inline const Aws::Map<Aws::String, MessageAttributeValue>& GetMessageAttributes() const { return m_messageAttributes; }
109 inline bool MessageAttributesHasBeenSet() const { return m_messageAttributesHasBeenSet; }
110 template <typename MessageAttributesT = Aws::Map<Aws::String, MessageAttributeValue>>
111 void SetMessageAttributes(MessageAttributesT&& value) {
112 m_messageAttributesHasBeenSet = true;
113 m_messageAttributes = std::forward<MessageAttributesT>(value);
114 }
115 template <typename MessageAttributesT = Aws::Map<Aws::String, MessageAttributeValue>>
117 SetMessageAttributes(std::forward<MessageAttributesT>(value));
118 return *this;
119 }
120 template <typename MessageAttributesKeyT = Aws::String, typename MessageAttributesValueT = MessageAttributeValue>
121 SendMessageBatchRequestEntry& AddMessageAttributes(MessageAttributesKeyT&& key, MessageAttributesValueT&& value) {
122 m_messageAttributesHasBeenSet = true;
123 m_messageAttributes.emplace(std::forward<MessageAttributesKeyT>(key), std::forward<MessageAttributesValueT>(value));
124 return *this;
125 }
127
129
139 return m_messageSystemAttributes;
140 }
141 inline bool MessageSystemAttributesHasBeenSet() const { return m_messageSystemAttributesHasBeenSet; }
142 template <typename MessageSystemAttributesT = Aws::Map<MessageSystemAttributeNameForSends, MessageSystemAttributeValue>>
143 void SetMessageSystemAttributes(MessageSystemAttributesT&& value) {
144 m_messageSystemAttributesHasBeenSet = true;
145 m_messageSystemAttributes = std::forward<MessageSystemAttributesT>(value);
146 }
147 template <typename MessageSystemAttributesT = Aws::Map<MessageSystemAttributeNameForSends, MessageSystemAttributeValue>>
149 SetMessageSystemAttributes(std::forward<MessageSystemAttributesT>(value));
150 return *this;
151 }
154 m_messageSystemAttributesHasBeenSet = true;
155 m_messageSystemAttributes.emplace(key, value);
156 return *this;
157 }
159
161
204 inline const Aws::String& GetMessageDeduplicationId() const { return m_messageDeduplicationId; }
205 inline bool MessageDeduplicationIdHasBeenSet() const { return m_messageDeduplicationIdHasBeenSet; }
206 template <typename MessageDeduplicationIdT = Aws::String>
207 void SetMessageDeduplicationId(MessageDeduplicationIdT&& value) {
208 m_messageDeduplicationIdHasBeenSet = true;
209 m_messageDeduplicationId = std::forward<MessageDeduplicationIdT>(value);
210 }
211 template <typename MessageDeduplicationIdT = Aws::String>
213 SetMessageDeduplicationId(std::forward<MessageDeduplicationIdT>(value));
214 return *this;
215 }
217
219
258 inline const Aws::String& GetMessageGroupId() const { return m_messageGroupId; }
259 inline bool MessageGroupIdHasBeenSet() const { return m_messageGroupIdHasBeenSet; }
260 template <typename MessageGroupIdT = Aws::String>
261 void SetMessageGroupId(MessageGroupIdT&& value) {
262 m_messageGroupIdHasBeenSet = true;
263 m_messageGroupId = std::forward<MessageGroupIdT>(value);
264 }
265 template <typename MessageGroupIdT = Aws::String>
267 SetMessageGroupId(std::forward<MessageGroupIdT>(value));
268 return *this;
269 }
271 private:
272 Aws::String m_id;
273
274 Aws::String m_messageBody;
275
276 int m_delaySeconds{0};
277
279
281
282 Aws::String m_messageDeduplicationId;
283
284 Aws::String m_messageGroupId;
285 bool m_idHasBeenSet = false;
286 bool m_messageBodyHasBeenSet = false;
287 bool m_delaySecondsHasBeenSet = false;
288 bool m_messageAttributesHasBeenSet = false;
289 bool m_messageSystemAttributesHasBeenSet = false;
290 bool m_messageDeduplicationIdHasBeenSet = false;
291 bool m_messageGroupIdHasBeenSet = false;
292};
293
294} // namespace Model
295} // namespace SQS
296} // namespace Aws
const Aws::String & GetMessageBody() const
SendMessageBatchRequestEntry & AddMessageSystemAttributes(MessageSystemAttributeNameForSends key, MessageSystemAttributeValue value)
AWS_SQS_API SendMessageBatchRequestEntry(Aws::Utils::Json::JsonView jsonValue)
AWS_SQS_API SendMessageBatchRequestEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDelaySeconds(int value)
SendMessageBatchRequestEntry & WithMessageBody(MessageBodyT &&value)
bool MessageAttributesHasBeenSet() const
const Aws::Map< MessageSystemAttributeNameForSends, MessageSystemAttributeValue > & GetMessageSystemAttributes() const
SendMessageBatchRequestEntry & WithMessageAttributes(MessageAttributesT &&value)
SendMessageBatchRequestEntry & WithMessageDeduplicationId(MessageDeduplicationIdT &&value)
SendMessageBatchRequestEntry & WithId(IdT &&value)
SendMessageBatchRequestEntry & WithMessageSystemAttributes(MessageSystemAttributesT &&value)
void SetMessageAttributes(MessageAttributesT &&value)
SendMessageBatchRequestEntry & WithDelaySeconds(int value)
SendMessageBatchRequestEntry & AddMessageAttributes(MessageAttributesKeyT &&key, MessageAttributesValueT &&value)
const Aws::Map< Aws::String, MessageAttributeValue > & GetMessageAttributes() const
bool MessageGroupIdHasBeenSet() const
void SetMessageSystemAttributes(MessageSystemAttributesT &&value)
bool MessageDeduplicationIdHasBeenSet() const
void SetId(IdT &&value)
bool MessageBodyHasBeenSet() const
bool IdHasBeenSet() const
AWS_SQS_API Aws::Utils::Json::JsonValue Jsonize() const
bool MessageSystemAttributesHasBeenSet() const
SendMessageBatchRequestEntry & WithMessageGroupId(MessageGroupIdT &&value)
void SetMessageBody(MessageBodyT &&value)
const Aws::String & GetMessageDeduplicationId() const
void SetMessageGroupId(MessageGroupIdT &&value)
bool DelaySecondsHasBeenSet() const
int GetDelaySeconds() const
const Aws::String & GetId() const
AWS_SQS_API SendMessageBatchRequestEntry()=default
const Aws::String & GetMessageGroupId() const
void SetMessageDeduplicationId(MessageDeduplicationIdT &&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
Aws::Utils::Json::JsonValue JsonValue