AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PublishRequest.h
1
6#pragma once
7#include <aws/sns/SNS_EXPORTS.h>
8#include <aws/sns/SNSRequest.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 SNS
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_SNS_API PublishRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "Publish"; }
36
37 AWS_SNS_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_SNS_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
45
50 inline const Aws::String& GetTopicArn() const{ return m_topicArn; }
51 inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; }
52 inline void SetTopicArn(const Aws::String& value) { m_topicArnHasBeenSet = true; m_topicArn = value; }
53 inline void SetTopicArn(Aws::String&& value) { m_topicArnHasBeenSet = true; m_topicArn = std::move(value); }
54 inline void SetTopicArn(const char* value) { m_topicArnHasBeenSet = true; m_topicArn.assign(value); }
55 inline PublishRequest& WithTopicArn(const Aws::String& value) { SetTopicArn(value); return *this;}
56 inline PublishRequest& WithTopicArn(Aws::String&& value) { SetTopicArn(std::move(value)); return *this;}
57 inline PublishRequest& WithTopicArn(const char* value) { SetTopicArn(value); return *this;}
59
61
66 inline const Aws::String& GetTargetArn() const{ return m_targetArn; }
67 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
68 inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; }
69 inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::move(value); }
70 inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); }
71 inline PublishRequest& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;}
72 inline PublishRequest& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;}
73 inline PublishRequest& WithTargetArn(const char* value) { SetTargetArn(value); return *this;}
75
77
83 inline const Aws::String& GetPhoneNumber() const{ return m_phoneNumber; }
84 inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; }
85 inline void SetPhoneNumber(const Aws::String& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = value; }
86 inline void SetPhoneNumber(Aws::String&& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = std::move(value); }
87 inline void SetPhoneNumber(const char* value) { m_phoneNumberHasBeenSet = true; m_phoneNumber.assign(value); }
88 inline PublishRequest& WithPhoneNumber(const Aws::String& value) { SetPhoneNumber(value); return *this;}
89 inline PublishRequest& WithPhoneNumber(Aws::String&& value) { SetPhoneNumber(std::move(value)); return *this;}
90 inline PublishRequest& WithPhoneNumber(const char* value) { SetPhoneNumber(value); return *this;}
92
94
124 inline const Aws::String& GetMessage() const{ return m_message; }
125 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
126 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
127 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
128 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
129 inline PublishRequest& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
130 inline PublishRequest& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
131 inline PublishRequest& WithMessage(const char* value) { SetMessage(value); return *this;}
133
135
142 inline const Aws::String& GetSubject() const{ return m_subject; }
143 inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; }
144 inline void SetSubject(const Aws::String& value) { m_subjectHasBeenSet = true; m_subject = value; }
145 inline void SetSubject(Aws::String&& value) { m_subjectHasBeenSet = true; m_subject = std::move(value); }
146 inline void SetSubject(const char* value) { m_subjectHasBeenSet = true; m_subject.assign(value); }
147 inline PublishRequest& WithSubject(const Aws::String& value) { SetSubject(value); return *this;}
148 inline PublishRequest& WithSubject(Aws::String&& value) { SetSubject(std::move(value)); return *this;}
149 inline PublishRequest& WithSubject(const char* value) { SetSubject(value); return *this;}
151
153
165 inline const Aws::String& GetMessageStructure() const{ return m_messageStructure; }
166 inline bool MessageStructureHasBeenSet() const { return m_messageStructureHasBeenSet; }
167 inline void SetMessageStructure(const Aws::String& value) { m_messageStructureHasBeenSet = true; m_messageStructure = value; }
168 inline void SetMessageStructure(Aws::String&& value) { m_messageStructureHasBeenSet = true; m_messageStructure = std::move(value); }
169 inline void SetMessageStructure(const char* value) { m_messageStructureHasBeenSet = true; m_messageStructure.assign(value); }
170 inline PublishRequest& WithMessageStructure(const Aws::String& value) { SetMessageStructure(value); return *this;}
171 inline PublishRequest& WithMessageStructure(Aws::String&& value) { SetMessageStructure(std::move(value)); return *this;}
172 inline PublishRequest& WithMessageStructure(const char* value) { SetMessageStructure(value); return *this;}
174
176
179 inline const Aws::Map<Aws::String, MessageAttributeValue>& GetMessageAttributes() const{ return m_messageAttributes; }
180 inline bool MessageAttributesHasBeenSet() const { return m_messageAttributesHasBeenSet; }
181 inline void SetMessageAttributes(const Aws::Map<Aws::String, MessageAttributeValue>& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes = value; }
182 inline void SetMessageAttributes(Aws::Map<Aws::String, MessageAttributeValue>&& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes = std::move(value); }
185 inline PublishRequest& AddMessageAttributes(const Aws::String& key, const MessageAttributeValue& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes.emplace(key, value); return *this; }
186 inline PublishRequest& AddMessageAttributes(Aws::String&& key, const MessageAttributeValue& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes.emplace(std::move(key), value); return *this; }
187 inline PublishRequest& AddMessageAttributes(const Aws::String& key, MessageAttributeValue&& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes.emplace(key, std::move(value)); return *this; }
188 inline PublishRequest& AddMessageAttributes(Aws::String&& key, MessageAttributeValue&& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes.emplace(std::move(key), std::move(value)); return *this; }
189 inline PublishRequest& AddMessageAttributes(const char* key, MessageAttributeValue&& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes.emplace(key, std::move(value)); return *this; }
190 inline PublishRequest& AddMessageAttributes(const char* key, const MessageAttributeValue& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes.emplace(key, value); return *this; }
192
194
208 inline const Aws::String& GetMessageDeduplicationId() const{ return m_messageDeduplicationId; }
209 inline bool MessageDeduplicationIdHasBeenSet() const { return m_messageDeduplicationIdHasBeenSet; }
210 inline void SetMessageDeduplicationId(const Aws::String& value) { m_messageDeduplicationIdHasBeenSet = true; m_messageDeduplicationId = value; }
211 inline void SetMessageDeduplicationId(Aws::String&& value) { m_messageDeduplicationIdHasBeenSet = true; m_messageDeduplicationId = std::move(value); }
212 inline void SetMessageDeduplicationId(const char* value) { m_messageDeduplicationIdHasBeenSet = true; m_messageDeduplicationId.assign(value); }
214 inline PublishRequest& WithMessageDeduplicationId(Aws::String&& value) { SetMessageDeduplicationId(std::move(value)); return *this;}
215 inline PublishRequest& WithMessageDeduplicationId(const char* value) { SetMessageDeduplicationId(value); return *this;}
217
219
230 inline const Aws::String& GetMessageGroupId() const{ return m_messageGroupId; }
231 inline bool MessageGroupIdHasBeenSet() const { return m_messageGroupIdHasBeenSet; }
232 inline void SetMessageGroupId(const Aws::String& value) { m_messageGroupIdHasBeenSet = true; m_messageGroupId = value; }
233 inline void SetMessageGroupId(Aws::String&& value) { m_messageGroupIdHasBeenSet = true; m_messageGroupId = std::move(value); }
234 inline void SetMessageGroupId(const char* value) { m_messageGroupIdHasBeenSet = true; m_messageGroupId.assign(value); }
235 inline PublishRequest& WithMessageGroupId(const Aws::String& value) { SetMessageGroupId(value); return *this;}
236 inline PublishRequest& WithMessageGroupId(Aws::String&& value) { SetMessageGroupId(std::move(value)); return *this;}
237 inline PublishRequest& WithMessageGroupId(const char* value) { SetMessageGroupId(value); return *this;}
239 private:
240
241 Aws::String m_topicArn;
242 bool m_topicArnHasBeenSet = false;
243
244 Aws::String m_targetArn;
245 bool m_targetArnHasBeenSet = false;
246
247 Aws::String m_phoneNumber;
248 bool m_phoneNumberHasBeenSet = false;
249
250 Aws::String m_message;
251 bool m_messageHasBeenSet = false;
252
253 Aws::String m_subject;
254 bool m_subjectHasBeenSet = false;
255
256 Aws::String m_messageStructure;
257 bool m_messageStructureHasBeenSet = false;
258
260 bool m_messageAttributesHasBeenSet = false;
261
262 Aws::String m_messageDeduplicationId;
263 bool m_messageDeduplicationIdHasBeenSet = false;
264
265 Aws::String m_messageGroupId;
266 bool m_messageGroupIdHasBeenSet = false;
267 };
268
269} // namespace Model
270} // namespace SNS
271} // namespace Aws
PublishRequest & WithTargetArn(const char *value)
void SetSubject(Aws::String &&value)
PublishRequest & WithSubject(Aws::String &&value)
const Aws::String & GetMessageStructure() const
PublishRequest & WithMessage(const char *value)
void SetMessageDeduplicationId(const char *value)
PublishRequest & AddMessageAttributes(const Aws::String &key, const MessageAttributeValue &value)
virtual const char * GetServiceRequestName() const override
void SetTopicArn(Aws::String &&value)
void SetTargetArn(Aws::String &&value)
PublishRequest & WithMessageDeduplicationId(const Aws::String &value)
void SetMessageGroupId(Aws::String &&value)
PublishRequest & WithTopicArn(const char *value)
PublishRequest & WithMessageStructure(const Aws::String &value)
const Aws::String & GetTopicArn() const
PublishRequest & WithPhoneNumber(const Aws::String &value)
PublishRequest & WithPhoneNumber(const char *value)
const Aws::String & GetSubject() const
PublishRequest & WithTopicArn(Aws::String &&value)
const Aws::String & GetPhoneNumber() const
const Aws::Map< Aws::String, MessageAttributeValue > & GetMessageAttributes() const
PublishRequest & WithMessageDeduplicationId(const char *value)
void SetMessageAttributes(Aws::Map< Aws::String, MessageAttributeValue > &&value)
void SetTargetArn(const Aws::String &value)
const Aws::String & GetMessageGroupId() const
PublishRequest & WithPhoneNumber(Aws::String &&value)
void SetMessage(const char *value)
AWS_SNS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
PublishRequest & WithMessageStructure(const char *value)
PublishRequest & WithMessage(const Aws::String &value)
void SetMessageStructure(const Aws::String &value)
PublishRequest & AddMessageAttributes(const Aws::String &key, MessageAttributeValue &&value)
PublishRequest & WithTopicArn(const Aws::String &value)
void SetMessage(Aws::String &&value)
PublishRequest & WithMessageAttributes(const Aws::Map< Aws::String, MessageAttributeValue > &value)
void SetPhoneNumber(Aws::String &&value)
PublishRequest & WithMessageGroupId(const char *value)
PublishRequest & WithTargetArn(const Aws::String &value)
PublishRequest & WithTargetArn(Aws::String &&value)
const Aws::String & GetMessage() const
void SetSubject(const Aws::String &value)
void SetMessage(const Aws::String &value)
const Aws::String & GetMessageDeduplicationId() const
void SetMessageAttributes(const Aws::Map< Aws::String, MessageAttributeValue > &value)
void SetMessageGroupId(const char *value)
PublishRequest & WithSubject(const Aws::String &value)
PublishRequest & AddMessageAttributes(Aws::String &&key, const MessageAttributeValue &value)
PublishRequest & WithMessageDeduplicationId(Aws::String &&value)
PublishRequest & AddMessageAttributes(Aws::String &&key, MessageAttributeValue &&value)
const Aws::String & GetTargetArn() const
PublishRequest & WithMessageAttributes(Aws::Map< Aws::String, MessageAttributeValue > &&value)
void SetMessageGroupId(const Aws::String &value)
void SetMessageDeduplicationId(const Aws::String &value)
void SetTargetArn(const char *value)
PublishRequest & AddMessageAttributes(const char *key, MessageAttributeValue &&value)
void SetPhoneNumber(const Aws::String &value)
void SetMessageDeduplicationId(Aws::String &&value)
AWS_SNS_API Aws::String SerializePayload() const override
void SetPhoneNumber(const char *value)
void SetTopicArn(const char *value)
PublishRequest & WithMessageGroupId(const Aws::String &value)
void SetTopicArn(const Aws::String &value)
void SetMessageStructure(const char *value)
PublishRequest & WithSubject(const char *value)
PublishRequest & WithMessageStructure(Aws::String &&value)
PublishRequest & AddMessageAttributes(const char *key, const MessageAttributeValue &value)
PublishRequest & WithMessageGroupId(Aws::String &&value)
void SetMessageStructure(Aws::String &&value)
void SetSubject(const char *value)
PublishRequest & WithMessage(Aws::String &&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