AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SendMessageBatchRequestEntry.h
1
6#pragma once
7#include <aws/sqs/SQS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/sqs/model/MessageAttributeValue.h>
11#include <aws/sqs/model/MessageSystemAttributeNameForSends.h>
12#include <aws/sqs/model/MessageSystemAttributeValue.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SQS
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_SQS_API SendMessageBatchRequestEntry() = default;
43
44
46
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 SendMessageBatchRequestEntry& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_messageBodyHasBeenSet = true; m_messageBody = std::forward<MessageBodyT>(value); }
69 template<typename MessageBodyT = Aws::String>
70 SendMessageBatchRequestEntry& WithMessageBody(MessageBodyT&& value) { SetMessageBody(std::forward<MessageBodyT>(value)); return *this;}
72
74
83 inline int GetDelaySeconds() const { return m_delaySeconds; }
84 inline bool DelaySecondsHasBeenSet() const { return m_delaySecondsHasBeenSet; }
85 inline void SetDelaySeconds(int value) { m_delaySecondsHasBeenSet = true; m_delaySeconds = value; }
86 inline SendMessageBatchRequestEntry& WithDelaySeconds(int value) { SetDelaySeconds(value); return *this;}
88
90
96 inline const Aws::Map<Aws::String, MessageAttributeValue>& GetMessageAttributes() const { return m_messageAttributes; }
97 inline bool MessageAttributesHasBeenSet() const { return m_messageAttributesHasBeenSet; }
98 template<typename MessageAttributesT = Aws::Map<Aws::String, MessageAttributeValue>>
99 void SetMessageAttributes(MessageAttributesT&& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes = std::forward<MessageAttributesT>(value); }
100 template<typename MessageAttributesT = Aws::Map<Aws::String, MessageAttributeValue>>
101 SendMessageBatchRequestEntry& WithMessageAttributes(MessageAttributesT&& value) { SetMessageAttributes(std::forward<MessageAttributesT>(value)); return *this;}
102 template<typename MessageAttributesKeyT = Aws::String, typename MessageAttributesValueT = MessageAttributeValue>
103 SendMessageBatchRequestEntry& AddMessageAttributes(MessageAttributesKeyT&& key, MessageAttributesValueT&& value) {
104 m_messageAttributesHasBeenSet = true; m_messageAttributes.emplace(std::forward<MessageAttributesKeyT>(key), std::forward<MessageAttributesValueT>(value)); return *this;
105 }
107
109
119 inline bool MessageSystemAttributesHasBeenSet() const { return m_messageSystemAttributesHasBeenSet; }
120 template<typename MessageSystemAttributesT = Aws::Map<MessageSystemAttributeNameForSends, MessageSystemAttributeValue>>
121 void SetMessageSystemAttributes(MessageSystemAttributesT&& value) { m_messageSystemAttributesHasBeenSet = true; m_messageSystemAttributes = std::forward<MessageSystemAttributesT>(value); }
122 template<typename MessageSystemAttributesT = Aws::Map<MessageSystemAttributeNameForSends, MessageSystemAttributeValue>>
123 SendMessageBatchRequestEntry& WithMessageSystemAttributes(MessageSystemAttributesT&& value) { SetMessageSystemAttributes(std::forward<MessageSystemAttributesT>(value)); return *this;}
125 m_messageSystemAttributesHasBeenSet = true; m_messageSystemAttributes.emplace(key, value); return *this;
126 }
128
130
173 inline const Aws::String& GetMessageDeduplicationId() const { return m_messageDeduplicationId; }
174 inline bool MessageDeduplicationIdHasBeenSet() const { return m_messageDeduplicationIdHasBeenSet; }
175 template<typename MessageDeduplicationIdT = Aws::String>
176 void SetMessageDeduplicationId(MessageDeduplicationIdT&& value) { m_messageDeduplicationIdHasBeenSet = true; m_messageDeduplicationId = std::forward<MessageDeduplicationIdT>(value); }
177 template<typename MessageDeduplicationIdT = Aws::String>
178 SendMessageBatchRequestEntry& WithMessageDeduplicationId(MessageDeduplicationIdT&& value) { SetMessageDeduplicationId(std::forward<MessageDeduplicationIdT>(value)); return *this;}
180
182
206 inline const Aws::String& GetMessageGroupId() const { return m_messageGroupId; }
207 inline bool MessageGroupIdHasBeenSet() const { return m_messageGroupIdHasBeenSet; }
208 template<typename MessageGroupIdT = Aws::String>
209 void SetMessageGroupId(MessageGroupIdT&& value) { m_messageGroupIdHasBeenSet = true; m_messageGroupId = std::forward<MessageGroupIdT>(value); }
210 template<typename MessageGroupIdT = Aws::String>
211 SendMessageBatchRequestEntry& WithMessageGroupId(MessageGroupIdT&& value) { SetMessageGroupId(std::forward<MessageGroupIdT>(value)); return *this;}
213 private:
214
215 Aws::String m_id;
216 bool m_idHasBeenSet = false;
217
218 Aws::String m_messageBody;
219 bool m_messageBodyHasBeenSet = false;
220
221 int m_delaySeconds{0};
222 bool m_delaySecondsHasBeenSet = false;
223
225 bool m_messageAttributesHasBeenSet = false;
226
228 bool m_messageSystemAttributesHasBeenSet = false;
229
230 Aws::String m_messageDeduplicationId;
231 bool m_messageDeduplicationIdHasBeenSet = false;
232
233 Aws::String m_messageGroupId;
234 bool m_messageGroupIdHasBeenSet = false;
235 };
236
237} // namespace Model
238} // namespace SQS
239} // 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