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/MessageSystemAttributeName.h>
11#include <aws/sqs/model/MessageAttributeValue.h>
51 template<
typename MessageIdT = Aws::String>
52 void SetMessageId(MessageIdT&& value) { m_messageIdHasBeenSet =
true; m_messageId = std::forward<MessageIdT>(value); }
53 template<
typename MessageIdT = Aws::String>
65 template<
typename ReceiptHandleT = Aws::String>
66 void SetReceiptHandle(ReceiptHandleT&& value) { m_receiptHandleHasBeenSet =
true; m_receiptHandle = std::forward<ReceiptHandleT>(value); }
67 template<
typename ReceiptHandleT = Aws::String>
77 template<
typename MD5OfBodyT = Aws::String>
78 void SetMD5OfBody(MD5OfBodyT&& value) { m_mD5OfBodyHasBeenSet =
true; m_mD5OfBody = std::forward<MD5OfBodyT>(value); }
79 template<
typename MD5OfBodyT = Aws::String>
89 template<
typename BodyT = Aws::String>
90 void SetBody(BodyT&& value) { m_bodyHasBeenSet =
true; m_body = std::forward<BodyT>(value); }
91 template<
typename BodyT = Aws::String>
112 template<
typename AttributesT = Aws::Map<MessageSystemAttributeName, Aws::String>>
113 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet =
true; m_attributes = std::forward<AttributesT>(value); }
114 template<
typename AttributesT = Aws::Map<MessageSystemAttributeName, Aws::String>>
117 m_attributesHasBeenSet =
true; m_attributes.emplace(key, value);
return *
this;
130 template<
typename MD5OfMessageAttributesT = Aws::String>
131 void SetMD5OfMessageAttributes(MD5OfMessageAttributesT&& value) { m_mD5OfMessageAttributesHasBeenSet =
true; m_mD5OfMessageAttributes = std::forward<MD5OfMessageAttributesT>(value); }
132 template<
typename MD5OfMessageAttributesT = Aws::String>
145 template<
typename MessageAttributesT = Aws::Map<Aws::String, MessageAttributeValue>>
146 void SetMessageAttributes(MessageAttributesT&& value) { m_messageAttributesHasBeenSet =
true; m_messageAttributes = std::forward<MessageAttributesT>(value); }
147 template<
typename MessageAttributesT = Aws::Map<Aws::String, MessageAttributeValue>>
149 template<
typename MessageAttributesKeyT = Aws::String,
typename MessageAttributesValueT = MessageAttributeValue>
151 m_messageAttributesHasBeenSet =
true; m_messageAttributes.emplace(std::forward<MessageAttributesKeyT>(key), std::forward<MessageAttributesValueT>(value));
return *
this;
157 bool m_messageIdHasBeenSet =
false;
160 bool m_receiptHandleHasBeenSet =
false;
163 bool m_mD5OfBodyHasBeenSet =
false;
166 bool m_bodyHasBeenSet =
false;
169 bool m_attributesHasBeenSet =
false;
172 bool m_mD5OfMessageAttributesHasBeenSet =
false;
175 bool m_messageAttributesHasBeenSet =
false;
void SetReceiptHandle(ReceiptHandleT &&value)
const Aws::String & GetMD5OfMessageAttributes() const
void SetMD5OfMessageAttributes(MD5OfMessageAttributesT &&value)
bool BodyHasBeenSet() const
bool MessageIdHasBeenSet() const
Message & AddMessageAttributes(MessageAttributesKeyT &&key, MessageAttributesValueT &&value)
bool MD5OfBodyHasBeenSet() const
Message & WithMD5OfBody(MD5OfBodyT &&value)
const Aws::String & GetMD5OfBody() const
bool MD5OfMessageAttributesHasBeenSet() const
Message & WithMessageId(MessageIdT &&value)
Message & WithReceiptHandle(ReceiptHandleT &&value)
Message & WithMD5OfMessageAttributes(MD5OfMessageAttributesT &&value)
void SetMessageId(MessageIdT &&value)
Message & WithMessageAttributes(MessageAttributesT &&value)
void SetAttributes(AttributesT &&value)
Message & AddAttributes(MessageSystemAttributeName key, Aws::String value)
bool MessageAttributesHasBeenSet() const
void SetMessageAttributes(MessageAttributesT &&value)
AWS_SQS_API Aws::Utils::Json::JsonValue Jsonize() const
bool ReceiptHandleHasBeenSet() const
const Aws::Map< MessageSystemAttributeName, Aws::String > & GetAttributes() const
AWS_SQS_API Message()=default
const Aws::String & GetReceiptHandle() const
AWS_SQS_API Message & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetMD5OfBody(MD5OfBodyT &&value)
void SetBody(BodyT &&value)
const Aws::String & GetBody() const
AWS_SQS_API Message(Aws::Utils::Json::JsonView jsonValue)
bool AttributesHasBeenSet() const
const Aws::Map< Aws::String, MessageAttributeValue > & GetMessageAttributes() const
Message & WithBody(BodyT &&value)
const Aws::String & GetMessageId() const
Message & WithAttributes(AttributesT &&value)
MessageSystemAttributeName
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