AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PublishBatchRequestEntry.h
1
6#pragma once
7#include <aws/sns/SNS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/sns/model/MessageAttributeValue.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace SNS
24{
25namespace Model
26{
27
36 {
37 public:
41
42 AWS_SNS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_SNS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
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 PublishBatchRequestEntry& WithId(const Aws::String& value) { SetId(value); return *this;}
59 inline PublishBatchRequestEntry& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
60 inline PublishBatchRequestEntry& WithId(const char* value) { SetId(value); return *this;}
62
64
67 inline const Aws::String& GetMessage() const{ return m_message; }
68 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
69 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
70 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
71 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
72 inline PublishBatchRequestEntry& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
73 inline PublishBatchRequestEntry& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
74 inline PublishBatchRequestEntry& WithMessage(const char* value) { SetMessage(value); return *this;}
76
78
81 inline const Aws::String& GetSubject() const{ return m_subject; }
82 inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; }
83 inline void SetSubject(const Aws::String& value) { m_subjectHasBeenSet = true; m_subject = value; }
84 inline void SetSubject(Aws::String&& value) { m_subjectHasBeenSet = true; m_subject = std::move(value); }
85 inline void SetSubject(const char* value) { m_subjectHasBeenSet = true; m_subject.assign(value); }
86 inline PublishBatchRequestEntry& WithSubject(const Aws::String& value) { SetSubject(value); return *this;}
87 inline PublishBatchRequestEntry& WithSubject(Aws::String&& value) { SetSubject(std::move(value)); return *this;}
88 inline PublishBatchRequestEntry& WithSubject(const char* value) { SetSubject(value); return *this;}
90
92
103 inline const Aws::String& GetMessageStructure() const{ return m_messageStructure; }
104 inline bool MessageStructureHasBeenSet() const { return m_messageStructureHasBeenSet; }
105 inline void SetMessageStructure(const Aws::String& value) { m_messageStructureHasBeenSet = true; m_messageStructure = value; }
106 inline void SetMessageStructure(Aws::String&& value) { m_messageStructureHasBeenSet = true; m_messageStructure = std::move(value); }
107 inline void SetMessageStructure(const char* value) { m_messageStructureHasBeenSet = true; m_messageStructure.assign(value); }
109 inline PublishBatchRequestEntry& WithMessageStructure(Aws::String&& value) { SetMessageStructure(std::move(value)); return *this;}
110 inline PublishBatchRequestEntry& WithMessageStructure(const char* value) { SetMessageStructure(value); return *this;}
112
114
120 inline const Aws::Map<Aws::String, MessageAttributeValue>& GetMessageAttributes() const{ return m_messageAttributes; }
121 inline bool MessageAttributesHasBeenSet() const { return m_messageAttributesHasBeenSet; }
122 inline void SetMessageAttributes(const Aws::Map<Aws::String, MessageAttributeValue>& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes = value; }
123 inline void SetMessageAttributes(Aws::Map<Aws::String, MessageAttributeValue>&& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes = std::move(value); }
126 inline PublishBatchRequestEntry& AddMessageAttributes(const Aws::String& key, const MessageAttributeValue& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes.emplace(key, value); return *this; }
127 inline PublishBatchRequestEntry& AddMessageAttributes(Aws::String&& key, const MessageAttributeValue& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes.emplace(std::move(key), value); return *this; }
128 inline PublishBatchRequestEntry& AddMessageAttributes(const Aws::String& key, MessageAttributeValue&& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes.emplace(key, std::move(value)); return *this; }
129 inline PublishBatchRequestEntry& AddMessageAttributes(Aws::String&& key, MessageAttributeValue&& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes.emplace(std::move(key), std::move(value)); return *this; }
130 inline PublishBatchRequestEntry& AddMessageAttributes(const char* key, MessageAttributeValue&& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes.emplace(key, std::move(value)); return *this; }
131 inline PublishBatchRequestEntry& AddMessageAttributes(const char* key, const MessageAttributeValue& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes.emplace(key, value); return *this; }
133
135
171 inline const Aws::String& GetMessageDeduplicationId() const{ return m_messageDeduplicationId; }
172 inline bool MessageDeduplicationIdHasBeenSet() const { return m_messageDeduplicationIdHasBeenSet; }
173 inline void SetMessageDeduplicationId(const Aws::String& value) { m_messageDeduplicationIdHasBeenSet = true; m_messageDeduplicationId = value; }
174 inline void SetMessageDeduplicationId(Aws::String&& value) { m_messageDeduplicationIdHasBeenSet = true; m_messageDeduplicationId = std::move(value); }
175 inline void SetMessageDeduplicationId(const char* value) { m_messageDeduplicationIdHasBeenSet = true; m_messageDeduplicationId.assign(value); }
178 inline PublishBatchRequestEntry& WithMessageDeduplicationId(const char* value) { SetMessageDeduplicationId(value); return *this;}
180
182
200 inline const Aws::String& GetMessageGroupId() const{ return m_messageGroupId; }
201 inline bool MessageGroupIdHasBeenSet() const { return m_messageGroupIdHasBeenSet; }
202 inline void SetMessageGroupId(const Aws::String& value) { m_messageGroupIdHasBeenSet = true; m_messageGroupId = value; }
203 inline void SetMessageGroupId(Aws::String&& value) { m_messageGroupIdHasBeenSet = true; m_messageGroupId = std::move(value); }
204 inline void SetMessageGroupId(const char* value) { m_messageGroupIdHasBeenSet = true; m_messageGroupId.assign(value); }
205 inline PublishBatchRequestEntry& WithMessageGroupId(const Aws::String& value) { SetMessageGroupId(value); return *this;}
206 inline PublishBatchRequestEntry& WithMessageGroupId(Aws::String&& value) { SetMessageGroupId(std::move(value)); return *this;}
207 inline PublishBatchRequestEntry& WithMessageGroupId(const char* value) { SetMessageGroupId(value); return *this;}
209 private:
210
211 Aws::String m_id;
212 bool m_idHasBeenSet = false;
213
214 Aws::String m_message;
215 bool m_messageHasBeenSet = false;
216
217 Aws::String m_subject;
218 bool m_subjectHasBeenSet = false;
219
220 Aws::String m_messageStructure;
221 bool m_messageStructureHasBeenSet = false;
222
224 bool m_messageAttributesHasBeenSet = false;
225
226 Aws::String m_messageDeduplicationId;
227 bool m_messageDeduplicationIdHasBeenSet = false;
228
229 Aws::String m_messageGroupId;
230 bool m_messageGroupIdHasBeenSet = false;
231 };
232
233} // namespace Model
234} // namespace SNS
235} // namespace Aws
const Aws::String & GetSubject() const
PublishBatchRequestEntry & WithMessageStructure(Aws::String &&value)
PublishBatchRequestEntry & WithMessageAttributes(Aws::Map< Aws::String, MessageAttributeValue > &&value)
const Aws::String & GetMessageStructure() const
void SetId(const Aws::String &value)
PublishBatchRequestEntry & WithSubject(Aws::String &&value)
const Aws::String & GetId() const
PublishBatchRequestEntry & WithMessageDeduplicationId(const Aws::String &value)
const Aws::String & GetMessage() const
const Aws::String & GetMessageDeduplicationId() const
void SetMessageDeduplicationId(const Aws::String &value)
PublishBatchRequestEntry & AddMessageAttributes(const Aws::String &key, MessageAttributeValue &&value)
PublishBatchRequestEntry & AddMessageAttributes(const Aws::String &key, const MessageAttributeValue &value)
PublishBatchRequestEntry & AddMessageAttributes(const char *key, MessageAttributeValue &&value)
void SetMessageGroupId(const Aws::String &value)
void SetId(const char *value)
PublishBatchRequestEntry & WithMessageDeduplicationId(Aws::String &&value)
void SetMessageGroupId(Aws::String &&value)
void SetMessageDeduplicationId(const char *value)
PublishBatchRequestEntry & WithMessageStructure(const Aws::String &value)
void SetMessageStructure(const Aws::String &value)
void SetSubject(Aws::String &&value)
const Aws::String & GetMessageGroupId() const
PublishBatchRequestEntry & WithMessageStructure(const char *value)
PublishBatchRequestEntry & WithSubject(const Aws::String &value)
PublishBatchRequestEntry & AddMessageAttributes(Aws::String &&key, MessageAttributeValue &&value)
bool MessageDeduplicationIdHasBeenSet() const
bool MessageGroupIdHasBeenSet() const
void SetMessageStructure(Aws::String &&value)
PublishBatchRequestEntry & WithSubject(const char *value)
AWS_SNS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetMessageGroupId(const char *value)
AWS_SNS_API PublishBatchRequestEntry()
bool SubjectHasBeenSet() const
PublishBatchRequestEntry & WithId(Aws::String &&value)
void SetSubject(const Aws::String &value)
PublishBatchRequestEntry & AddMessageAttributes(const char *key, const MessageAttributeValue &value)
AWS_SNS_API PublishBatchRequestEntry & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetMessage(const char *value)
void SetMessageAttributes(Aws::Map< Aws::String, MessageAttributeValue > &&value)
PublishBatchRequestEntry & WithMessageGroupId(const Aws::String &value)
bool IdHasBeenSet() const
PublishBatchRequestEntry & WithId(const char *value)
PublishBatchRequestEntry & WithMessageDeduplicationId(const char *value)
PublishBatchRequestEntry & WithMessage(const char *value)
PublishBatchRequestEntry & WithMessageGroupId(Aws::String &&value)
PublishBatchRequestEntry & WithMessage(const Aws::String &value)
void SetMessageAttributes(const Aws::Map< Aws::String, MessageAttributeValue > &value)
AWS_SNS_API PublishBatchRequestEntry(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetMessage(Aws::String &&value)
void SetId(Aws::String &&value)
bool MessageHasBeenSet() const
PublishBatchRequestEntry & AddMessageAttributes(Aws::String &&key, const MessageAttributeValue &value)
bool MessageAttributesHasBeenSet() const
const Aws::Map< Aws::String, MessageAttributeValue > & GetMessageAttributes() const
void SetMessageDeduplicationId(Aws::String &&value)
PublishBatchRequestEntry & WithId(const Aws::String &value)
PublishBatchRequestEntry & WithMessageGroupId(const char *value)
AWS_SNS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool MessageStructureHasBeenSet() const
PublishBatchRequestEntry & WithMessageAttributes(const Aws::Map< Aws::String, MessageAttributeValue > &value)
void SetMessageStructure(const char *value)
void SetMessage(const Aws::String &value)
PublishBatchRequestEntry & WithMessage(Aws::String &&value)
void SetSubject(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
std::basic_ostream< char, std::char_traits< char > > OStream