AWS SDK for C++  1.8.129
AWS SDK for C++
BounceAction.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace SES
22 {
23 namespace Model
24 {
25 
38  {
39  public:
43 
44  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45  void OutputToStream(Aws::OStream& oStream, const char* location) const;
46 
47 
56  inline const Aws::String& GetTopicArn() const{ return m_topicArn; }
57 
66  inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; }
67 
76  inline void SetTopicArn(const Aws::String& value) { m_topicArnHasBeenSet = true; m_topicArn = value; }
77 
86  inline void SetTopicArn(Aws::String&& value) { m_topicArnHasBeenSet = true; m_topicArn = std::move(value); }
87 
96  inline void SetTopicArn(const char* value) { m_topicArnHasBeenSet = true; m_topicArn.assign(value); }
97 
106  inline BounceAction& WithTopicArn(const Aws::String& value) { SetTopicArn(value); return *this;}
107 
116  inline BounceAction& WithTopicArn(Aws::String&& value) { SetTopicArn(std::move(value)); return *this;}
117 
126  inline BounceAction& WithTopicArn(const char* value) { SetTopicArn(value); return *this;}
127 
128 
133  inline const Aws::String& GetSmtpReplyCode() const{ return m_smtpReplyCode; }
134 
139  inline bool SmtpReplyCodeHasBeenSet() const { return m_smtpReplyCodeHasBeenSet; }
140 
145  inline void SetSmtpReplyCode(const Aws::String& value) { m_smtpReplyCodeHasBeenSet = true; m_smtpReplyCode = value; }
146 
151  inline void SetSmtpReplyCode(Aws::String&& value) { m_smtpReplyCodeHasBeenSet = true; m_smtpReplyCode = std::move(value); }
152 
157  inline void SetSmtpReplyCode(const char* value) { m_smtpReplyCodeHasBeenSet = true; m_smtpReplyCode.assign(value); }
158 
163  inline BounceAction& WithSmtpReplyCode(const Aws::String& value) { SetSmtpReplyCode(value); return *this;}
164 
169  inline BounceAction& WithSmtpReplyCode(Aws::String&& value) { SetSmtpReplyCode(std::move(value)); return *this;}
170 
175  inline BounceAction& WithSmtpReplyCode(const char* value) { SetSmtpReplyCode(value); return *this;}
176 
177 
182  inline const Aws::String& GetStatusCode() const{ return m_statusCode; }
183 
188  inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
189 
194  inline void SetStatusCode(const Aws::String& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
195 
200  inline void SetStatusCode(Aws::String&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); }
201 
206  inline void SetStatusCode(const char* value) { m_statusCodeHasBeenSet = true; m_statusCode.assign(value); }
207 
212  inline BounceAction& WithStatusCode(const Aws::String& value) { SetStatusCode(value); return *this;}
213 
218  inline BounceAction& WithStatusCode(Aws::String&& value) { SetStatusCode(std::move(value)); return *this;}
219 
224  inline BounceAction& WithStatusCode(const char* value) { SetStatusCode(value); return *this;}
225 
226 
230  inline const Aws::String& GetMessage() const{ return m_message; }
231 
235  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
236 
240  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
241 
245  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
246 
250  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
251 
255  inline BounceAction& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
256 
260  inline BounceAction& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
261 
265  inline BounceAction& WithMessage(const char* value) { SetMessage(value); return *this;}
266 
267 
272  inline const Aws::String& GetSender() const{ return m_sender; }
273 
278  inline bool SenderHasBeenSet() const { return m_senderHasBeenSet; }
279 
284  inline void SetSender(const Aws::String& value) { m_senderHasBeenSet = true; m_sender = value; }
285 
290  inline void SetSender(Aws::String&& value) { m_senderHasBeenSet = true; m_sender = std::move(value); }
291 
296  inline void SetSender(const char* value) { m_senderHasBeenSet = true; m_sender.assign(value); }
297 
302  inline BounceAction& WithSender(const Aws::String& value) { SetSender(value); return *this;}
303 
308  inline BounceAction& WithSender(Aws::String&& value) { SetSender(std::move(value)); return *this;}
309 
314  inline BounceAction& WithSender(const char* value) { SetSender(value); return *this;}
315 
316  private:
317 
318  Aws::String m_topicArn;
319  bool m_topicArnHasBeenSet;
320 
321  Aws::String m_smtpReplyCode;
322  bool m_smtpReplyCodeHasBeenSet;
323 
324  Aws::String m_statusCode;
325  bool m_statusCodeHasBeenSet;
326 
327  Aws::String m_message;
328  bool m_messageHasBeenSet;
329 
330  Aws::String m_sender;
331  bool m_senderHasBeenSet;
332  };
333 
334 } // namespace Model
335 } // namespace SES
336 } // namespace Aws
Aws::SES::Model::BounceAction::GetMessage
const Aws::String & GetMessage() const
Definition: BounceAction.h:230
Aws::SES::Model::BounceAction::GetSender
const Aws::String & GetSender() const
Definition: BounceAction.h:272
Aws::SES::Model::BounceAction::BounceAction
BounceAction()
Aws::SES::Model::BounceAction::WithSender
BounceAction & WithSender(const Aws::String &value)
Definition: BounceAction.h:302
Aws::SES::Model::BounceAction::SetMessage
void SetMessage(const Aws::String &value)
Definition: BounceAction.h:240
Aws::SES::Model::BounceAction::operator=
BounceAction & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SES::Model::BounceAction::GetStatusCode
const Aws::String & GetStatusCode() const
Definition: BounceAction.h:182
Aws::SES::Model::BounceAction::BounceAction
BounceAction(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SES::Model::BounceAction::SetSender
void SetSender(const char *value)
Definition: BounceAction.h:296
Aws::SES::Model::BounceAction::StatusCodeHasBeenSet
bool StatusCodeHasBeenSet() const
Definition: BounceAction.h:188
Aws::SES::Model::BounceAction::WithTopicArn
BounceAction & WithTopicArn(Aws::String &&value)
Definition: BounceAction.h:116
Aws::SES::Model::BounceAction::SetSmtpReplyCode
void SetSmtpReplyCode(Aws::String &&value)
Definition: BounceAction.h:151
Aws::SES::Model::BounceAction::SetSender
void SetSender(const Aws::String &value)
Definition: BounceAction.h:284
Aws::SES::Model::BounceAction::SetTopicArn
void SetTopicArn(const Aws::String &value)
Definition: BounceAction.h:76
Aws::SES::Model::BounceAction::WithStatusCode
BounceAction & WithStatusCode(const Aws::String &value)
Definition: BounceAction.h:212
Aws::SES::Model::BounceAction::WithSender
BounceAction & WithSender(Aws::String &&value)
Definition: BounceAction.h:308
AWSStreamFwd.h
Aws::SES::Model::BounceAction::WithSender
BounceAction & WithSender(const char *value)
Definition: BounceAction.h:314
Aws::SES::Model::BounceAction::WithMessage
BounceAction & WithMessage(Aws::String &&value)
Definition: BounceAction.h:260
Aws::SES::Model::BounceAction::WithTopicArn
BounceAction & WithTopicArn(const char *value)
Definition: BounceAction.h:126
Aws::SES::Model::BounceAction::WithSmtpReplyCode
BounceAction & WithSmtpReplyCode(const Aws::String &value)
Definition: BounceAction.h:163
Aws::SES::Model::BounceAction::SmtpReplyCodeHasBeenSet
bool SmtpReplyCodeHasBeenSet() const
Definition: BounceAction.h:139
Aws::SES::Model::BounceAction::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::SES::Model::BounceAction::WithStatusCode
BounceAction & WithStatusCode(Aws::String &&value)
Definition: BounceAction.h:218
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::SES::Model::BounceAction::GetSmtpReplyCode
const Aws::String & GetSmtpReplyCode() const
Definition: BounceAction.h:133
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::SES::Model::BounceAction::SetTopicArn
void SetTopicArn(const char *value)
Definition: BounceAction.h:96
Aws::SES::Model::BounceAction::SetSmtpReplyCode
void SetSmtpReplyCode(const Aws::String &value)
Definition: BounceAction.h:145
Aws::SES::Model::BounceAction::GetTopicArn
const Aws::String & GetTopicArn() const
Definition: BounceAction.h:56
Aws::SES::Model::BounceAction::WithSmtpReplyCode
BounceAction & WithSmtpReplyCode(const char *value)
Definition: BounceAction.h:175
AWSString.h
Aws::SES::Model::BounceAction::SetStatusCode
void SetStatusCode(Aws::String &&value)
Definition: BounceAction.h:200
SES_EXPORTS.h
AWS_SES_API
#define AWS_SES_API
Definition: SES_EXPORTS.h:28
Aws::SES::Model::BounceAction::SetStatusCode
void SetStatusCode(const char *value)
Definition: BounceAction.h:206
Aws::SES::Model::BounceAction::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: BounceAction.h:235
Aws::SES::Model::BounceAction::WithSmtpReplyCode
BounceAction & WithSmtpReplyCode(Aws::String &&value)
Definition: BounceAction.h:169
Aws::SES::Model::BounceAction::SetMessage
void SetMessage(Aws::String &&value)
Definition: BounceAction.h:245
Aws
Definition: AccessManagementClient.h:15
Aws::SES::Model::BounceAction::WithMessage
BounceAction & WithMessage(const Aws::String &value)
Definition: BounceAction.h:255
Aws::SES::Model::BounceAction
Definition: BounceAction.h:38
Aws::SES::Model::BounceAction::WithTopicArn
BounceAction & WithTopicArn(const Aws::String &value)
Definition: BounceAction.h:106
Aws::SES::Model::BounceAction::SenderHasBeenSet
bool SenderHasBeenSet() const
Definition: BounceAction.h:278
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:171
Aws::SES::Model::BounceAction::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::SES::Model::BounceAction::SetSender
void SetSender(Aws::String &&value)
Definition: BounceAction.h:290
Aws::SES::Model::BounceAction::SetTopicArn
void SetTopicArn(Aws::String &&value)
Definition: BounceAction.h:86
Aws::SES::Model::BounceAction::WithMessage
BounceAction & WithMessage(const char *value)
Definition: BounceAction.h:265
Aws::SES::Model::BounceAction::SetSmtpReplyCode
void SetSmtpReplyCode(const char *value)
Definition: BounceAction.h:157
Aws::SES::Model::BounceAction::WithStatusCode
BounceAction & WithStatusCode(const char *value)
Definition: BounceAction.h:224
Aws::SES::Model::BounceAction::SetStatusCode
void SetStatusCode(const Aws::String &value)
Definition: BounceAction.h:194
Aws::SES::Model::BounceAction::SetMessage
void SetMessage(const char *value)
Definition: BounceAction.h:250
Aws::SES::Model::BounceAction::TopicArnHasBeenSet
bool TopicArnHasBeenSet() const
Definition: BounceAction.h:66