AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SendMessageRequest.h
1
6#pragma once
7#include <aws/sqs/SQS_EXPORTS.h>
8#include <aws/sqs/SQSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/sqs/model/MessageAttributeValue.h>
12#include <aws/sqs/model/MessageSystemAttributeNameForSends.h>
13#include <aws/sqs/model/MessageSystemAttributeValue.h>
14#include <utility>
15
16namespace Aws
17{
18namespace SQS
19{
20namespace Model
21{
22
29 {
30 public:
31 AWS_SQS_API SendMessageRequest();
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "SendMessage"; }
38
39 AWS_SQS_API Aws::String SerializePayload() const override;
40
42
43
45
49 inline const Aws::String& GetQueueUrl() const{ return m_queueUrl; }
50 inline bool QueueUrlHasBeenSet() const { return m_queueUrlHasBeenSet; }
51 inline void SetQueueUrl(const Aws::String& value) { m_queueUrlHasBeenSet = true; m_queueUrl = value; }
52 inline void SetQueueUrl(Aws::String&& value) { m_queueUrlHasBeenSet = true; m_queueUrl = std::move(value); }
53 inline void SetQueueUrl(const char* value) { m_queueUrlHasBeenSet = true; m_queueUrl.assign(value); }
54 inline SendMessageRequest& WithQueueUrl(const Aws::String& value) { SetQueueUrl(value); return *this;}
55 inline SendMessageRequest& WithQueueUrl(Aws::String&& value) { SetQueueUrl(std::move(value)); return *this;}
56 inline SendMessageRequest& WithQueueUrl(const char* value) { SetQueueUrl(value); return *this;}
58
60
74 inline const Aws::String& GetMessageBody() const{ return m_messageBody; }
75 inline bool MessageBodyHasBeenSet() const { return m_messageBodyHasBeenSet; }
76 inline void SetMessageBody(const Aws::String& value) { m_messageBodyHasBeenSet = true; m_messageBody = value; }
77 inline void SetMessageBody(Aws::String&& value) { m_messageBodyHasBeenSet = true; m_messageBody = std::move(value); }
78 inline void SetMessageBody(const char* value) { m_messageBodyHasBeenSet = true; m_messageBody.assign(value); }
79 inline SendMessageRequest& WithMessageBody(const Aws::String& value) { SetMessageBody(value); return *this;}
80 inline SendMessageRequest& WithMessageBody(Aws::String&& value) { SetMessageBody(std::move(value)); return *this;}
81 inline SendMessageRequest& WithMessageBody(const char* value) { SetMessageBody(value); return *this;}
83
85
94 inline int GetDelaySeconds() const{ return m_delaySeconds; }
95 inline bool DelaySecondsHasBeenSet() const { return m_delaySecondsHasBeenSet; }
96 inline void SetDelaySeconds(int value) { m_delaySecondsHasBeenSet = true; m_delaySeconds = value; }
97 inline SendMessageRequest& WithDelaySeconds(int value) { SetDelaySeconds(value); return *this;}
99
101
107 inline const Aws::Map<Aws::String, MessageAttributeValue>& GetMessageAttributes() const{ return m_messageAttributes; }
108 inline bool MessageAttributesHasBeenSet() const { return m_messageAttributesHasBeenSet; }
109 inline void SetMessageAttributes(const Aws::Map<Aws::String, MessageAttributeValue>& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes = value; }
110 inline void SetMessageAttributes(Aws::Map<Aws::String, MessageAttributeValue>&& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes = std::move(value); }
113 inline SendMessageRequest& AddMessageAttributes(const Aws::String& key, const MessageAttributeValue& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes.emplace(key, value); return *this; }
114 inline SendMessageRequest& AddMessageAttributes(Aws::String&& key, const MessageAttributeValue& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes.emplace(std::move(key), value); return *this; }
115 inline SendMessageRequest& AddMessageAttributes(const Aws::String& key, MessageAttributeValue&& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes.emplace(key, std::move(value)); return *this; }
116 inline SendMessageRequest& AddMessageAttributes(Aws::String&& key, MessageAttributeValue&& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes.emplace(std::move(key), std::move(value)); return *this; }
117 inline SendMessageRequest& AddMessageAttributes(const char* key, MessageAttributeValue&& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes.emplace(key, std::move(value)); return *this; }
118 inline SendMessageRequest& AddMessageAttributes(const char* key, const MessageAttributeValue& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes.emplace(key, value); return *this; }
120
122
132 inline bool MessageSystemAttributesHasBeenSet() const { return m_messageSystemAttributesHasBeenSet; }
133 inline void SetMessageSystemAttributes(const Aws::Map<MessageSystemAttributeNameForSends, MessageSystemAttributeValue>& value) { m_messageSystemAttributesHasBeenSet = true; m_messageSystemAttributes = value; }
134 inline void SetMessageSystemAttributes(Aws::Map<MessageSystemAttributeNameForSends, MessageSystemAttributeValue>&& value) { m_messageSystemAttributesHasBeenSet = true; m_messageSystemAttributes = std::move(value); }
137 inline SendMessageRequest& AddMessageSystemAttributes(const MessageSystemAttributeNameForSends& key, const MessageSystemAttributeValue& value) { m_messageSystemAttributesHasBeenSet = true; m_messageSystemAttributes.emplace(key, value); return *this; }
138 inline SendMessageRequest& AddMessageSystemAttributes(MessageSystemAttributeNameForSends&& key, const MessageSystemAttributeValue& value) { m_messageSystemAttributesHasBeenSet = true; m_messageSystemAttributes.emplace(std::move(key), value); return *this; }
139 inline SendMessageRequest& AddMessageSystemAttributes(const MessageSystemAttributeNameForSends& key, MessageSystemAttributeValue&& value) { m_messageSystemAttributesHasBeenSet = true; m_messageSystemAttributes.emplace(key, std::move(value)); return *this; }
140 inline SendMessageRequest& AddMessageSystemAttributes(MessageSystemAttributeNameForSends&& key, MessageSystemAttributeValue&& value) { m_messageSystemAttributesHasBeenSet = true; m_messageSystemAttributes.emplace(std::move(key), std::move(value)); return *this; }
142
144
187 inline const Aws::String& GetMessageDeduplicationId() const{ return m_messageDeduplicationId; }
188 inline bool MessageDeduplicationIdHasBeenSet() const { return m_messageDeduplicationIdHasBeenSet; }
189 inline void SetMessageDeduplicationId(const Aws::String& value) { m_messageDeduplicationIdHasBeenSet = true; m_messageDeduplicationId = value; }
190 inline void SetMessageDeduplicationId(Aws::String&& value) { m_messageDeduplicationIdHasBeenSet = true; m_messageDeduplicationId = std::move(value); }
191 inline void SetMessageDeduplicationId(const char* value) { m_messageDeduplicationIdHasBeenSet = true; m_messageDeduplicationId.assign(value); }
193 inline SendMessageRequest& WithMessageDeduplicationId(Aws::String&& value) { SetMessageDeduplicationId(std::move(value)); return *this;}
194 inline SendMessageRequest& WithMessageDeduplicationId(const char* value) { SetMessageDeduplicationId(value); return *this;}
196
198
222 inline const Aws::String& GetMessageGroupId() const{ return m_messageGroupId; }
223 inline bool MessageGroupIdHasBeenSet() const { return m_messageGroupIdHasBeenSet; }
224 inline void SetMessageGroupId(const Aws::String& value) { m_messageGroupIdHasBeenSet = true; m_messageGroupId = value; }
225 inline void SetMessageGroupId(Aws::String&& value) { m_messageGroupIdHasBeenSet = true; m_messageGroupId = std::move(value); }
226 inline void SetMessageGroupId(const char* value) { m_messageGroupIdHasBeenSet = true; m_messageGroupId.assign(value); }
227 inline SendMessageRequest& WithMessageGroupId(const Aws::String& value) { SetMessageGroupId(value); return *this;}
228 inline SendMessageRequest& WithMessageGroupId(Aws::String&& value) { SetMessageGroupId(std::move(value)); return *this;}
229 inline SendMessageRequest& WithMessageGroupId(const char* value) { SetMessageGroupId(value); return *this;}
231 private:
232
233 Aws::String m_queueUrl;
234 bool m_queueUrlHasBeenSet = false;
235
236 Aws::String m_messageBody;
237 bool m_messageBodyHasBeenSet = false;
238
239 int m_delaySeconds;
240 bool m_delaySecondsHasBeenSet = false;
241
243 bool m_messageAttributesHasBeenSet = false;
244
246 bool m_messageSystemAttributesHasBeenSet = false;
247
248 Aws::String m_messageDeduplicationId;
249 bool m_messageDeduplicationIdHasBeenSet = false;
250
251 Aws::String m_messageGroupId;
252 bool m_messageGroupIdHasBeenSet = false;
253 };
254
255} // namespace Model
256} // namespace SQS
257} // namespace Aws
AWS_SQS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
SendMessageRequest & WithQueueUrl(const char *value)
SendMessageRequest & AddMessageSystemAttributes(MessageSystemAttributeNameForSends &&key, const MessageSystemAttributeValue &value)
SendMessageRequest & WithMessageDeduplicationId(const Aws::String &value)
void SetMessageBody(const Aws::String &value)
SendMessageRequest & AddMessageSystemAttributes(const MessageSystemAttributeNameForSends &key, MessageSystemAttributeValue &&value)
SendMessageRequest & AddMessageAttributes(const Aws::String &key, MessageAttributeValue &&value)
SendMessageRequest & WithMessageBody(Aws::String &&value)
void SetMessageBody(Aws::String &&value)
void SetQueueUrl(const Aws::String &value)
SendMessageRequest & AddMessageAttributes(Aws::String &&key, const MessageAttributeValue &value)
const Aws::Map< Aws::String, MessageAttributeValue > & GetMessageAttributes() const
void SetMessageDeduplicationId(Aws::String &&value)
const Aws::String & GetMessageGroupId() const
SendMessageRequest & WithQueueUrl(const Aws::String &value)
const Aws::String & GetMessageBody() const
SendMessageRequest & WithMessageDeduplicationId(const char *value)
SendMessageRequest & WithDelaySeconds(int value)
const Aws::String & GetMessageDeduplicationId() const
SendMessageRequest & WithMessageAttributes(const Aws::Map< Aws::String, MessageAttributeValue > &value)
SendMessageRequest & WithQueueUrl(Aws::String &&value)
void SetMessageDeduplicationId(const Aws::String &value)
void SetQueueUrl(Aws::String &&value)
const Aws::Map< MessageSystemAttributeNameForSends, MessageSystemAttributeValue > & GetMessageSystemAttributes() const
SendMessageRequest & WithMessageGroupId(const Aws::String &value)
void SetMessageAttributes(const Aws::Map< Aws::String, MessageAttributeValue > &value)
SendMessageRequest & AddMessageAttributes(const char *key, const MessageAttributeValue &value)
void SetMessageAttributes(Aws::Map< Aws::String, MessageAttributeValue > &&value)
void SetMessageSystemAttributes(Aws::Map< MessageSystemAttributeNameForSends, MessageSystemAttributeValue > &&value)
SendMessageRequest & WithMessageGroupId(Aws::String &&value)
SendMessageRequest & AddMessageAttributes(const char *key, MessageAttributeValue &&value)
SendMessageRequest & AddMessageSystemAttributes(const MessageSystemAttributeNameForSends &key, const MessageSystemAttributeValue &value)
SendMessageRequest & WithMessageGroupId(const char *value)
SendMessageRequest & WithMessageDeduplicationId(Aws::String &&value)
void SetMessageGroupId(const char *value)
virtual const char * GetServiceRequestName() const override
void SetMessageSystemAttributes(const Aws::Map< MessageSystemAttributeNameForSends, MessageSystemAttributeValue > &value)
SendMessageRequest & WithMessageBody(const Aws::String &value)
void SetMessageGroupId(Aws::String &&value)
SendMessageRequest & AddMessageAttributes(const Aws::String &key, const MessageAttributeValue &value)
SendMessageRequest & WithMessageAttributes(Aws::Map< Aws::String, MessageAttributeValue > &&value)
SendMessageRequest & WithMessageSystemAttributes(const Aws::Map< MessageSystemAttributeNameForSends, MessageSystemAttributeValue > &value)
AWS_SQS_API Aws::String SerializePayload() const override
void SetMessageDeduplicationId(const char *value)
SendMessageRequest & AddMessageSystemAttributes(MessageSystemAttributeNameForSends &&key, MessageSystemAttributeValue &&value)
SendMessageRequest & AddMessageAttributes(Aws::String &&key, MessageAttributeValue &&value)
const Aws::String & GetQueueUrl() const
SendMessageRequest & WithMessageSystemAttributes(Aws::Map< MessageSystemAttributeNameForSends, MessageSystemAttributeValue > &&value)
SendMessageRequest & WithMessageBody(const char *value)
void SetMessageGroupId(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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