AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
43
44
46
53 inline const Aws::String& GetId() const{ return m_id; }
54 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
55 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
56 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
57 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
58 inline SendMessageBatchRequestEntry& WithId(const Aws::String& value) { SetId(value); return *this;}
59 inline SendMessageBatchRequestEntry& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
60 inline SendMessageBatchRequestEntry& WithId(const char* value) { SetId(value); return *this;}
62
64
67 inline const Aws::String& GetMessageBody() const{ return m_messageBody; }
68 inline bool MessageBodyHasBeenSet() const { return m_messageBodyHasBeenSet; }
69 inline void SetMessageBody(const Aws::String& value) { m_messageBodyHasBeenSet = true; m_messageBody = value; }
70 inline void SetMessageBody(Aws::String&& value) { m_messageBodyHasBeenSet = true; m_messageBody = std::move(value); }
71 inline void SetMessageBody(const char* value) { m_messageBodyHasBeenSet = true; m_messageBody.assign(value); }
72 inline SendMessageBatchRequestEntry& WithMessageBody(const Aws::String& value) { SetMessageBody(value); return *this;}
73 inline SendMessageBatchRequestEntry& WithMessageBody(Aws::String&& value) { SetMessageBody(std::move(value)); return *this;}
74 inline SendMessageBatchRequestEntry& WithMessageBody(const char* value) { SetMessageBody(value); return *this;}
76
78
87 inline int GetDelaySeconds() const{ return m_delaySeconds; }
88 inline bool DelaySecondsHasBeenSet() const { return m_delaySecondsHasBeenSet; }
89 inline void SetDelaySeconds(int value) { m_delaySecondsHasBeenSet = true; m_delaySeconds = value; }
90 inline SendMessageBatchRequestEntry& WithDelaySeconds(int value) { SetDelaySeconds(value); return *this;}
92
94
100 inline const Aws::Map<Aws::String, MessageAttributeValue>& GetMessageAttributes() const{ return m_messageAttributes; }
101 inline bool MessageAttributesHasBeenSet() const { return m_messageAttributesHasBeenSet; }
102 inline void SetMessageAttributes(const Aws::Map<Aws::String, MessageAttributeValue>& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes = value; }
103 inline void SetMessageAttributes(Aws::Map<Aws::String, MessageAttributeValue>&& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes = std::move(value); }
106 inline SendMessageBatchRequestEntry& AddMessageAttributes(const Aws::String& key, const MessageAttributeValue& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes.emplace(key, value); return *this; }
107 inline SendMessageBatchRequestEntry& AddMessageAttributes(Aws::String&& key, const MessageAttributeValue& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes.emplace(std::move(key), value); return *this; }
108 inline SendMessageBatchRequestEntry& AddMessageAttributes(const Aws::String& key, MessageAttributeValue&& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes.emplace(key, std::move(value)); return *this; }
109 inline SendMessageBatchRequestEntry& AddMessageAttributes(Aws::String&& key, MessageAttributeValue&& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes.emplace(std::move(key), std::move(value)); return *this; }
110 inline SendMessageBatchRequestEntry& AddMessageAttributes(const char* key, MessageAttributeValue&& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes.emplace(key, std::move(value)); return *this; }
111 inline SendMessageBatchRequestEntry& AddMessageAttributes(const char* key, const MessageAttributeValue& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes.emplace(key, value); return *this; }
113
115
125 inline bool MessageSystemAttributesHasBeenSet() const { return m_messageSystemAttributesHasBeenSet; }
126 inline void SetMessageSystemAttributes(const Aws::Map<MessageSystemAttributeNameForSends, MessageSystemAttributeValue>& value) { m_messageSystemAttributesHasBeenSet = true; m_messageSystemAttributes = value; }
127 inline void SetMessageSystemAttributes(Aws::Map<MessageSystemAttributeNameForSends, MessageSystemAttributeValue>&& value) { m_messageSystemAttributesHasBeenSet = true; m_messageSystemAttributes = std::move(value); }
130 inline SendMessageBatchRequestEntry& AddMessageSystemAttributes(const MessageSystemAttributeNameForSends& key, const MessageSystemAttributeValue& value) { m_messageSystemAttributesHasBeenSet = true; m_messageSystemAttributes.emplace(key, value); return *this; }
131 inline SendMessageBatchRequestEntry& AddMessageSystemAttributes(MessageSystemAttributeNameForSends&& key, const MessageSystemAttributeValue& value) { m_messageSystemAttributesHasBeenSet = true; m_messageSystemAttributes.emplace(std::move(key), value); return *this; }
132 inline SendMessageBatchRequestEntry& AddMessageSystemAttributes(const MessageSystemAttributeNameForSends& key, MessageSystemAttributeValue&& value) { m_messageSystemAttributesHasBeenSet = true; m_messageSystemAttributes.emplace(key, std::move(value)); return *this; }
133 inline SendMessageBatchRequestEntry& AddMessageSystemAttributes(MessageSystemAttributeNameForSends&& key, MessageSystemAttributeValue&& value) { m_messageSystemAttributesHasBeenSet = true; m_messageSystemAttributes.emplace(std::move(key), std::move(value)); return *this; }
135
137
180 inline const Aws::String& GetMessageDeduplicationId() const{ return m_messageDeduplicationId; }
181 inline bool MessageDeduplicationIdHasBeenSet() const { return m_messageDeduplicationIdHasBeenSet; }
182 inline void SetMessageDeduplicationId(const Aws::String& value) { m_messageDeduplicationIdHasBeenSet = true; m_messageDeduplicationId = value; }
183 inline void SetMessageDeduplicationId(Aws::String&& value) { m_messageDeduplicationIdHasBeenSet = true; m_messageDeduplicationId = std::move(value); }
184 inline void SetMessageDeduplicationId(const char* value) { m_messageDeduplicationIdHasBeenSet = true; m_messageDeduplicationId.assign(value); }
189
191
215 inline const Aws::String& GetMessageGroupId() const{ return m_messageGroupId; }
216 inline bool MessageGroupIdHasBeenSet() const { return m_messageGroupIdHasBeenSet; }
217 inline void SetMessageGroupId(const Aws::String& value) { m_messageGroupIdHasBeenSet = true; m_messageGroupId = value; }
218 inline void SetMessageGroupId(Aws::String&& value) { m_messageGroupIdHasBeenSet = true; m_messageGroupId = std::move(value); }
219 inline void SetMessageGroupId(const char* value) { m_messageGroupIdHasBeenSet = true; m_messageGroupId.assign(value); }
221 inline SendMessageBatchRequestEntry& WithMessageGroupId(Aws::String&& value) { SetMessageGroupId(std::move(value)); return *this;}
222 inline SendMessageBatchRequestEntry& WithMessageGroupId(const char* value) { SetMessageGroupId(value); return *this;}
224 private:
225
226 Aws::String m_id;
227 bool m_idHasBeenSet = false;
228
229 Aws::String m_messageBody;
230 bool m_messageBodyHasBeenSet = false;
231
232 int m_delaySeconds;
233 bool m_delaySecondsHasBeenSet = false;
234
236 bool m_messageAttributesHasBeenSet = false;
237
239 bool m_messageSystemAttributesHasBeenSet = false;
240
241 Aws::String m_messageDeduplicationId;
242 bool m_messageDeduplicationIdHasBeenSet = false;
243
244 Aws::String m_messageGroupId;
245 bool m_messageGroupIdHasBeenSet = false;
246 };
247
248} // namespace Model
249} // namespace SQS
250} // namespace Aws
void SetMessageAttributes(const Aws::Map< Aws::String, MessageAttributeValue > &value)
const Aws::String & GetMessageBody() const
SendMessageBatchRequestEntry & WithMessageDeduplicationId(const Aws::String &value)
void SetId(const char *value)
AWS_SQS_API SendMessageBatchRequestEntry(Aws::Utils::Json::JsonView jsonValue)
SendMessageBatchRequestEntry & WithMessageBody(const char *value)
AWS_SQS_API SendMessageBatchRequestEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetMessageSystemAttributes(const Aws::Map< MessageSystemAttributeNameForSends, MessageSystemAttributeValue > &value)
void SetDelaySeconds(int value)
SendMessageBatchRequestEntry & AddMessageAttributes(const Aws::String &key, const MessageAttributeValue &value)
bool MessageAttributesHasBeenSet() const
const Aws::Map< MessageSystemAttributeNameForSends, MessageSystemAttributeValue > & GetMessageSystemAttributes() const
void SetMessageDeduplicationId(const char *value)
SendMessageBatchRequestEntry & WithMessageAttributes(const Aws::Map< Aws::String, MessageAttributeValue > &value)
void SetMessageBody(const Aws::String &value)
SendMessageBatchRequestEntry & WithMessageAttributes(Aws::Map< Aws::String, MessageAttributeValue > &&value)
SendMessageBatchRequestEntry & WithMessageSystemAttributes(Aws::Map< MessageSystemAttributeNameForSends, MessageSystemAttributeValue > &&value)
SendMessageBatchRequestEntry & WithMessageSystemAttributes(const Aws::Map< MessageSystemAttributeNameForSends, MessageSystemAttributeValue > &value)
SendMessageBatchRequestEntry & WithId(const Aws::String &value)
void SetMessageDeduplicationId(const Aws::String &value)
void SetMessageGroupId(Aws::String &&value)
void SetMessageGroupId(const char *value)
SendMessageBatchRequestEntry & WithDelaySeconds(int value)
void SetMessageBody(const char *value)
void SetMessageDeduplicationId(Aws::String &&value)
const Aws::Map< Aws::String, MessageAttributeValue > & GetMessageAttributes() const
SendMessageBatchRequestEntry & WithMessageBody(Aws::String &&value)
bool MessageGroupIdHasBeenSet() const
void SetId(const Aws::String &value)
void SetMessageSystemAttributes(Aws::Map< MessageSystemAttributeNameForSends, MessageSystemAttributeValue > &&value)
SendMessageBatchRequestEntry & WithMessageBody(const Aws::String &value)
bool MessageDeduplicationIdHasBeenSet() const
SendMessageBatchRequestEntry & AddMessageAttributes(Aws::String &&key, const MessageAttributeValue &value)
SendMessageBatchRequestEntry & AddMessageAttributes(const char *key, const MessageAttributeValue &value)
bool MessageBodyHasBeenSet() const
void SetId(Aws::String &&value)
SendMessageBatchRequestEntry & WithMessageDeduplicationId(Aws::String &&value)
bool IdHasBeenSet() const
SendMessageBatchRequestEntry & WithId(Aws::String &&value)
SendMessageBatchRequestEntry & WithMessageGroupId(Aws::String &&value)
AWS_SQS_API Aws::Utils::Json::JsonValue Jsonize() const
bool MessageSystemAttributesHasBeenSet() const
SendMessageBatchRequestEntry & WithId(const char *value)
SendMessageBatchRequestEntry & AddMessageSystemAttributes(const MessageSystemAttributeNameForSends &key, MessageSystemAttributeValue &&value)
AWS_SQS_API SendMessageBatchRequestEntry()
void SetMessageGroupId(const Aws::String &value)
void SetMessageBody(Aws::String &&value)
const Aws::String & GetMessageDeduplicationId() const
void SetMessageAttributes(Aws::Map< Aws::String, MessageAttributeValue > &&value)
bool DelaySecondsHasBeenSet() const
SendMessageBatchRequestEntry & AddMessageAttributes(const Aws::String &key, MessageAttributeValue &&value)
SendMessageBatchRequestEntry & AddMessageSystemAttributes(const MessageSystemAttributeNameForSends &key, const MessageSystemAttributeValue &value)
int GetDelaySeconds() const
SendMessageBatchRequestEntry & WithMessageDeduplicationId(const char *value)
const Aws::String & GetId() const
SendMessageBatchRequestEntry & AddMessageSystemAttributes(MessageSystemAttributeNameForSends &&key, MessageSystemAttributeValue &&value)
const Aws::String & GetMessageGroupId() const
SendMessageBatchRequestEntry & AddMessageAttributes(const char *key, MessageAttributeValue &&value)
SendMessageBatchRequestEntry & AddMessageSystemAttributes(MessageSystemAttributeNameForSends &&key, const MessageSystemAttributeValue &value)
SendMessageBatchRequestEntry & AddMessageAttributes(Aws::String &&key, MessageAttributeValue &&value)
SendMessageBatchRequestEntry & WithMessageGroupId(const Aws::String &value)
SendMessageBatchRequestEntry & WithMessageGroupId(const char *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