AWS SDK for C++  1.9.19
AWS SDK for C++
Message.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/sqs/SQS_EXPORTS.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Xml
20 {
21  class XmlNode;
22 } // namespace Xml
23 } // namespace Utils
24 namespace SQS
25 {
26 namespace Model
27 {
28 
35  {
36  public:
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
49  inline const Aws::String& GetMessageId() const{ return m_messageId; }
50 
55  inline bool MessageIdHasBeenSet() const { return m_messageIdHasBeenSet; }
56 
61  inline void SetMessageId(const Aws::String& value) { m_messageIdHasBeenSet = true; m_messageId = value; }
62 
67  inline void SetMessageId(Aws::String&& value) { m_messageIdHasBeenSet = true; m_messageId = std::move(value); }
68 
73  inline void SetMessageId(const char* value) { m_messageIdHasBeenSet = true; m_messageId.assign(value); }
74 
79  inline Message& WithMessageId(const Aws::String& value) { SetMessageId(value); return *this;}
80 
85  inline Message& WithMessageId(Aws::String&& value) { SetMessageId(std::move(value)); return *this;}
86 
91  inline Message& WithMessageId(const char* value) { SetMessageId(value); return *this;}
92 
93 
99  inline const Aws::String& GetReceiptHandle() const{ return m_receiptHandle; }
100 
106  inline bool ReceiptHandleHasBeenSet() const { return m_receiptHandleHasBeenSet; }
107 
113  inline void SetReceiptHandle(const Aws::String& value) { m_receiptHandleHasBeenSet = true; m_receiptHandle = value; }
114 
120  inline void SetReceiptHandle(Aws::String&& value) { m_receiptHandleHasBeenSet = true; m_receiptHandle = std::move(value); }
121 
127  inline void SetReceiptHandle(const char* value) { m_receiptHandleHasBeenSet = true; m_receiptHandle.assign(value); }
128 
134  inline Message& WithReceiptHandle(const Aws::String& value) { SetReceiptHandle(value); return *this;}
135 
141  inline Message& WithReceiptHandle(Aws::String&& value) { SetReceiptHandle(std::move(value)); return *this;}
142 
148  inline Message& WithReceiptHandle(const char* value) { SetReceiptHandle(value); return *this;}
149 
150 
154  inline const Aws::String& GetMD5OfBody() const{ return m_mD5OfBody; }
155 
159  inline bool MD5OfBodyHasBeenSet() const { return m_mD5OfBodyHasBeenSet; }
160 
164  inline void SetMD5OfBody(const Aws::String& value) { m_mD5OfBodyHasBeenSet = true; m_mD5OfBody = value; }
165 
169  inline void SetMD5OfBody(Aws::String&& value) { m_mD5OfBodyHasBeenSet = true; m_mD5OfBody = std::move(value); }
170 
174  inline void SetMD5OfBody(const char* value) { m_mD5OfBodyHasBeenSet = true; m_mD5OfBody.assign(value); }
175 
179  inline Message& WithMD5OfBody(const Aws::String& value) { SetMD5OfBody(value); return *this;}
180 
184  inline Message& WithMD5OfBody(Aws::String&& value) { SetMD5OfBody(std::move(value)); return *this;}
185 
189  inline Message& WithMD5OfBody(const char* value) { SetMD5OfBody(value); return *this;}
190 
191 
195  inline const Aws::String& GetBody() const{ return m_body; }
196 
200  inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
201 
205  inline void SetBody(const Aws::String& value) { m_bodyHasBeenSet = true; m_body = value; }
206 
210  inline void SetBody(Aws::String&& value) { m_bodyHasBeenSet = true; m_body = std::move(value); }
211 
215  inline void SetBody(const char* value) { m_bodyHasBeenSet = true; m_body.assign(value); }
216 
220  inline Message& WithBody(const Aws::String& value) { SetBody(value); return *this;}
221 
225  inline Message& WithBody(Aws::String&& value) { SetBody(std::move(value)); return *this;}
226 
230  inline Message& WithBody(const char* value) { SetBody(value); return *this;}
231 
232 
247  inline const Aws::Map<MessageSystemAttributeName, Aws::String>& GetAttributes() const{ return m_attributes; }
248 
263  inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
264 
279  inline void SetAttributes(const Aws::Map<MessageSystemAttributeName, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
280 
295  inline void SetAttributes(Aws::Map<MessageSystemAttributeName, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
296 
311  inline Message& WithAttributes(const Aws::Map<MessageSystemAttributeName, Aws::String>& value) { SetAttributes(value); return *this;}
312 
327  inline Message& WithAttributes(Aws::Map<MessageSystemAttributeName, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
328 
343  inline Message& AddAttributes(const MessageSystemAttributeName& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
344 
359  inline Message& AddAttributes(MessageSystemAttributeName&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
360 
375  inline Message& AddAttributes(const MessageSystemAttributeName& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
376 
391  inline Message& AddAttributes(MessageSystemAttributeName&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
392 
407  inline Message& AddAttributes(MessageSystemAttributeName&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
408 
423  inline Message& AddAttributes(const MessageSystemAttributeName& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
424 
425 
432  inline const Aws::String& GetMD5OfMessageAttributes() const{ return m_mD5OfMessageAttributes; }
433 
440  inline bool MD5OfMessageAttributesHasBeenSet() const { return m_mD5OfMessageAttributesHasBeenSet; }
441 
448  inline void SetMD5OfMessageAttributes(const Aws::String& value) { m_mD5OfMessageAttributesHasBeenSet = true; m_mD5OfMessageAttributes = value; }
449 
456  inline void SetMD5OfMessageAttributes(Aws::String&& value) { m_mD5OfMessageAttributesHasBeenSet = true; m_mD5OfMessageAttributes = std::move(value); }
457 
464  inline void SetMD5OfMessageAttributes(const char* value) { m_mD5OfMessageAttributesHasBeenSet = true; m_mD5OfMessageAttributes.assign(value); }
465 
472  inline Message& WithMD5OfMessageAttributes(const Aws::String& value) { SetMD5OfMessageAttributes(value); return *this;}
473 
480  inline Message& WithMD5OfMessageAttributes(Aws::String&& value) { SetMD5OfMessageAttributes(std::move(value)); return *this;}
481 
488  inline Message& WithMD5OfMessageAttributes(const char* value) { SetMD5OfMessageAttributes(value); return *this;}
489 
490 
498  inline const Aws::Map<Aws::String, MessageAttributeValue>& GetMessageAttributes() const{ return m_messageAttributes; }
499 
507  inline bool MessageAttributesHasBeenSet() const { return m_messageAttributesHasBeenSet; }
508 
516  inline void SetMessageAttributes(const Aws::Map<Aws::String, MessageAttributeValue>& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes = value; }
517 
525  inline void SetMessageAttributes(Aws::Map<Aws::String, MessageAttributeValue>&& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes = std::move(value); }
526 
534  inline Message& WithMessageAttributes(const Aws::Map<Aws::String, MessageAttributeValue>& value) { SetMessageAttributes(value); return *this;}
535 
543  inline Message& WithMessageAttributes(Aws::Map<Aws::String, MessageAttributeValue>&& value) { SetMessageAttributes(std::move(value)); return *this;}
544 
552  inline Message& AddMessageAttributes(const Aws::String& key, const MessageAttributeValue& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes.emplace(key, value); return *this; }
553 
561  inline Message& AddMessageAttributes(Aws::String&& key, const MessageAttributeValue& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes.emplace(std::move(key), value); return *this; }
562 
570  inline Message& AddMessageAttributes(const Aws::String& key, MessageAttributeValue&& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes.emplace(key, std::move(value)); return *this; }
571 
579  inline Message& AddMessageAttributes(Aws::String&& key, MessageAttributeValue&& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes.emplace(std::move(key), std::move(value)); return *this; }
580 
588  inline Message& AddMessageAttributes(const char* key, MessageAttributeValue&& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes.emplace(key, std::move(value)); return *this; }
589 
597  inline Message& AddMessageAttributes(const char* key, const MessageAttributeValue& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes.emplace(key, value); return *this; }
598 
599  private:
600 
601  Aws::String m_messageId;
602  bool m_messageIdHasBeenSet;
603 
604  Aws::String m_receiptHandle;
605  bool m_receiptHandleHasBeenSet;
606 
607  Aws::String m_mD5OfBody;
608  bool m_mD5OfBodyHasBeenSet;
609 
610  Aws::String m_body;
611  bool m_bodyHasBeenSet;
612 
614  bool m_attributesHasBeenSet;
615 
616  Aws::String m_mD5OfMessageAttributes;
617  bool m_mD5OfMessageAttributesHasBeenSet;
618 
620  bool m_messageAttributesHasBeenSet;
621  };
622 
623 } // namespace Model
624 } // namespace SQS
625 } // namespace Aws
MessageSystemAttributeName.h
Aws::SQS::Model::Message::MessageIdHasBeenSet
bool MessageIdHasBeenSet() const
Definition: Message.h:55
Aws::SQS::Model::Message::AddMessageAttributes
Message & AddMessageAttributes(const char *key, const MessageAttributeValue &value)
Definition: Message.h:597
Aws::SQS::Model::Message::SetReceiptHandle
void SetReceiptHandle(Aws::String &&value)
Definition: Message.h:120
Aws::SQS::Model::Message::WithReceiptHandle
Message & WithReceiptHandle(const char *value)
Definition: Message.h:148
Aws::SQS::Model::Message::WithMD5OfMessageAttributes
Message & WithMD5OfMessageAttributes(Aws::String &&value)
Definition: Message.h:480
Aws::SQS::Model::Message::SetMD5OfMessageAttributes
void SetMD5OfMessageAttributes(Aws::String &&value)
Definition: Message.h:456
Aws::SQS::Model::Message::SetAttributes
void SetAttributes(Aws::Map< MessageSystemAttributeName, Aws::String > &&value)
Definition: Message.h:295
Aws::SQS::Model::Message::MessageAttributesHasBeenSet
bool MessageAttributesHasBeenSet() const
Definition: Message.h:507
Aws::SQS::Model::Message::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::SQS::Model::Message::MD5OfBodyHasBeenSet
bool MD5OfBodyHasBeenSet() const
Definition: Message.h:159
Aws::SQS::Model::Message::Message
Message(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SQS::Model::Message::GetMD5OfMessageAttributes
const Aws::String & GetMD5OfMessageAttributes() const
Definition: Message.h:432
AWSStreamFwd.h
Aws::SQS::Model::Message::GetMessageId
const Aws::String & GetMessageId() const
Definition: Message.h:49
Aws::SQS::Model::Message::SetMessageId
void SetMessageId(const char *value)
Definition: Message.h:73
Aws::SQS::Model::Message::SetMessageId
void SetMessageId(Aws::String &&value)
Definition: Message.h:67
Aws::SQS::Model::Message::WithReceiptHandle
Message & WithReceiptHandle(Aws::String &&value)
Definition: Message.h:141
Aws::SQS::Model::Message::WithReceiptHandle
Message & WithReceiptHandle(const Aws::String &value)
Definition: Message.h:134
Aws::SQS::Model::Message::SetReceiptHandle
void SetReceiptHandle(const Aws::String &value)
Definition: Message.h:113
Aws::SQS::Model::Message::SetMD5OfBody
void SetMD5OfBody(const Aws::String &value)
Definition: Message.h:164
Aws::SQS::Model::MessageSystemAttributeName
MessageSystemAttributeName
Definition: MessageSystemAttributeName.h:17
Aws::SQS::Model::Message::WithMessageAttributes
Message & WithMessageAttributes(const Aws::Map< Aws::String, MessageAttributeValue > &value)
Definition: Message.h:534
Aws::SQS::Model::Message::WithMD5OfBody
Message & WithMD5OfBody(Aws::String &&value)
Definition: Message.h:184
Aws::SQS::Model::MessageAttributeValue
Definition: MessageAttributeValue.h:41
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::SQS::Model::Message
Definition: Message.h:35
Aws::SQS::Model::Message::Message
Message()
Aws::SQS::Model::Message::SetMessageAttributes
void SetMessageAttributes(Aws::Map< Aws::String, MessageAttributeValue > &&value)
Definition: Message.h:525
Aws::SQS::Model::Message::WithMD5OfBody
Message & WithMD5OfBody(const char *value)
Definition: Message.h:189
MessageAttributeValue.h
Aws::SQS::Model::Message::WithMessageAttributes
Message & WithMessageAttributes(Aws::Map< Aws::String, MessageAttributeValue > &&value)
Definition: Message.h:543
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::SQS::Model::Message::WithBody
Message & WithBody(const char *value)
Definition: Message.h:230
Aws::SQS::Model::Message::WithBody
Message & WithBody(Aws::String &&value)
Definition: Message.h:225
Aws::SQS::Model::Message::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::SQS::Model::Message::SetMD5OfBody
void SetMD5OfBody(Aws::String &&value)
Definition: Message.h:169
Aws::SQS::Model::Message::WithMessageId
Message & WithMessageId(const Aws::String &value)
Definition: Message.h:79
Aws::SQS::Model::Message::AddAttributes
Message & AddAttributes(const MessageSystemAttributeName &key, const char *value)
Definition: Message.h:423
Aws::SQS::Model::Message::BodyHasBeenSet
bool BodyHasBeenSet() const
Definition: Message.h:200
Aws::SQS::Model::Message::SetMD5OfMessageAttributes
void SetMD5OfMessageAttributes(const char *value)
Definition: Message.h:464
Aws::SQS::Model::Message::GetBody
const Aws::String & GetBody() const
Definition: Message.h:195
Aws::SQS::Model::Message::MD5OfMessageAttributesHasBeenSet
bool MD5OfMessageAttributesHasBeenSet() const
Definition: Message.h:440
Aws::SQS::Model::Message::ReceiptHandleHasBeenSet
bool ReceiptHandleHasBeenSet() const
Definition: Message.h:106
Aws::Chime::Model::NotificationTarget::NOT_SET
@ NOT_SET
AWSString.h
Aws::SQS::Model::Message::SetMessageId
void SetMessageId(const Aws::String &value)
Definition: Message.h:61
Aws::SQS::Model::Message::SetBody
void SetBody(Aws::String &&value)
Definition: Message.h:210
Aws::SQS::Model::Message::AddMessageAttributes
Message & AddMessageAttributes(const Aws::String &key, MessageAttributeValue &&value)
Definition: Message.h:570
Aws::SQS::Model::Message::AddAttributes
Message & AddAttributes(MessageSystemAttributeName &&key, const Aws::String &value)
Definition: Message.h:359
Aws::SQS::Model::Message::WithMD5OfMessageAttributes
Message & WithMD5OfMessageAttributes(const Aws::String &value)
Definition: Message.h:472
AWS_SQS_API
#define AWS_SQS_API
Definition: SQS_EXPORTS.h:28
Aws::SQS::Model::Message::AddMessageAttributes
Message & AddMessageAttributes(const Aws::String &key, const MessageAttributeValue &value)
Definition: Message.h:552
Aws::SQS::Model::Message::SetMD5OfMessageAttributes
void SetMD5OfMessageAttributes(const Aws::String &value)
Definition: Message.h:448
Aws::SQS::Model::Message::WithAttributes
Message & WithAttributes(Aws::Map< MessageSystemAttributeName, Aws::String > &&value)
Definition: Message.h:327
Aws::SQS::Model::Message::AddAttributes
Message & AddAttributes(const MessageSystemAttributeName &key, Aws::String &&value)
Definition: Message.h:375
Aws::SQS::Model::Message::WithMD5OfMessageAttributes
Message & WithMD5OfMessageAttributes(const char *value)
Definition: Message.h:488
Aws::SQS::Model::Message::AttributesHasBeenSet
bool AttributesHasBeenSet() const
Definition: Message.h:263
Aws::SQS::Model::Message::WithMessageId
Message & WithMessageId(Aws::String &&value)
Definition: Message.h:85
Aws::SQS::Model::Message::GetMessageAttributes
const Aws::Map< Aws::String, MessageAttributeValue > & GetMessageAttributes() const
Definition: Message.h:498
Aws::SQS::Model::Message::AddMessageAttributes
Message & AddMessageAttributes(Aws::String &&key, const MessageAttributeValue &value)
Definition: Message.h:561
SQS_EXPORTS.h
Aws::SQS::Model::Message::SetBody
void SetBody(const Aws::String &value)
Definition: Message.h:205
Aws::SQS::Model::Message::AddAttributes
Message & AddAttributes(MessageSystemAttributeName &&key, Aws::String &&value)
Definition: Message.h:391
Aws::SQS::Model::Message::SetBody
void SetBody(const char *value)
Definition: Message.h:215
Aws::SQS::Model::Message::WithMessageId
Message & WithMessageId(const char *value)
Definition: Message.h:91
Aws::SQS::Model::Message::GetMD5OfBody
const Aws::String & GetMD5OfBody() const
Definition: Message.h:154
Aws::SQS::Model::Message::operator=
Message & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SQS::Model::Message::GetReceiptHandle
const Aws::String & GetReceiptHandle() const
Definition: Message.h:99
Aws::SQS::Model::Message::SetMD5OfBody
void SetMD5OfBody(const char *value)
Definition: Message.h:174
Aws::SQS::Model::Message::SetAttributes
void SetAttributes(const Aws::Map< MessageSystemAttributeName, Aws::String > &value)
Definition: Message.h:279
Aws
Definition: AccessManagementClient.h:15
Aws::SQS::Model::Message::AddAttributes
Message & AddAttributes(MessageSystemAttributeName &&key, const char *value)
Definition: Message.h:407
Aws::SQS::Model::Message::AddMessageAttributes
Message & AddMessageAttributes(const char *key, MessageAttributeValue &&value)
Definition: Message.h:588
Aws::SQS::Model::Message::AddAttributes
Message & AddAttributes(const MessageSystemAttributeName &key, const Aws::String &value)
Definition: Message.h:343
Aws::SQS::Model::Message::WithBody
Message & WithBody(const Aws::String &value)
Definition: Message.h:220
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SQS::Model::Message::WithAttributes
Message & WithAttributes(const Aws::Map< MessageSystemAttributeName, Aws::String > &value)
Definition: Message.h:311
index
int index
Definition: cJSON.h:171
Aws::SQS::Model::Message::SetReceiptHandle
void SetReceiptHandle(const char *value)
Definition: Message.h:127
Aws::SQS::Model::Message::SetMessageAttributes
void SetMessageAttributes(const Aws::Map< Aws::String, MessageAttributeValue > &value)
Definition: Message.h:516
AWSMap.h
Aws::SQS::Model::Message::WithMD5OfBody
Message & WithMD5OfBody(const Aws::String &value)
Definition: Message.h:179
Aws::SQS::Model::Message::AddMessageAttributes
Message & AddMessageAttributes(Aws::String &&key, MessageAttributeValue &&value)
Definition: Message.h:579
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::SQS::Model::Message::GetAttributes
const Aws::Map< MessageSystemAttributeName, Aws::String > & GetAttributes() const
Definition: Message.h:247