AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BounceAction.h
1
6#pragma once
7#include <aws/email/SES_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace SES
22{
23namespace Model
24{
25
38 {
39 public:
40 AWS_SES_API BounceAction();
41 AWS_SES_API BounceAction(const Aws::Utils::Xml::XmlNode& xmlNode);
42 AWS_SES_API BounceAction& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43
44 AWS_SES_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45 AWS_SES_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
46
47
49
58 inline const Aws::String& GetTopicArn() const{ return m_topicArn; }
59 inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; }
60 inline void SetTopicArn(const Aws::String& value) { m_topicArnHasBeenSet = true; m_topicArn = value; }
61 inline void SetTopicArn(Aws::String&& value) { m_topicArnHasBeenSet = true; m_topicArn = std::move(value); }
62 inline void SetTopicArn(const char* value) { m_topicArnHasBeenSet = true; m_topicArn.assign(value); }
63 inline BounceAction& WithTopicArn(const Aws::String& value) { SetTopicArn(value); return *this;}
64 inline BounceAction& WithTopicArn(Aws::String&& value) { SetTopicArn(std::move(value)); return *this;}
65 inline BounceAction& WithTopicArn(const char* value) { SetTopicArn(value); return *this;}
67
69
73 inline const Aws::String& GetSmtpReplyCode() const{ return m_smtpReplyCode; }
74 inline bool SmtpReplyCodeHasBeenSet() const { return m_smtpReplyCodeHasBeenSet; }
75 inline void SetSmtpReplyCode(const Aws::String& value) { m_smtpReplyCodeHasBeenSet = true; m_smtpReplyCode = value; }
76 inline void SetSmtpReplyCode(Aws::String&& value) { m_smtpReplyCodeHasBeenSet = true; m_smtpReplyCode = std::move(value); }
77 inline void SetSmtpReplyCode(const char* value) { m_smtpReplyCodeHasBeenSet = true; m_smtpReplyCode.assign(value); }
78 inline BounceAction& WithSmtpReplyCode(const Aws::String& value) { SetSmtpReplyCode(value); return *this;}
79 inline BounceAction& WithSmtpReplyCode(Aws::String&& value) { SetSmtpReplyCode(std::move(value)); return *this;}
80 inline BounceAction& WithSmtpReplyCode(const char* value) { SetSmtpReplyCode(value); return *this;}
82
84
88 inline const Aws::String& GetStatusCode() const{ return m_statusCode; }
89 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
90 inline void SetStatusCode(const Aws::String& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
91 inline void SetStatusCode(Aws::String&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); }
92 inline void SetStatusCode(const char* value) { m_statusCodeHasBeenSet = true; m_statusCode.assign(value); }
93 inline BounceAction& WithStatusCode(const Aws::String& value) { SetStatusCode(value); return *this;}
94 inline BounceAction& WithStatusCode(Aws::String&& value) { SetStatusCode(std::move(value)); return *this;}
95 inline BounceAction& WithStatusCode(const char* value) { SetStatusCode(value); return *this;}
97
99
102 inline const Aws::String& GetMessage() const{ return m_message; }
103 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
104 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
105 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
106 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
107 inline BounceAction& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
108 inline BounceAction& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
109 inline BounceAction& WithMessage(const char* value) { SetMessage(value); return *this;}
111
113
117 inline const Aws::String& GetSender() const{ return m_sender; }
118 inline bool SenderHasBeenSet() const { return m_senderHasBeenSet; }
119 inline void SetSender(const Aws::String& value) { m_senderHasBeenSet = true; m_sender = value; }
120 inline void SetSender(Aws::String&& value) { m_senderHasBeenSet = true; m_sender = std::move(value); }
121 inline void SetSender(const char* value) { m_senderHasBeenSet = true; m_sender.assign(value); }
122 inline BounceAction& WithSender(const Aws::String& value) { SetSender(value); return *this;}
123 inline BounceAction& WithSender(Aws::String&& value) { SetSender(std::move(value)); return *this;}
124 inline BounceAction& WithSender(const char* value) { SetSender(value); return *this;}
126 private:
127
128 Aws::String m_topicArn;
129 bool m_topicArnHasBeenSet = false;
130
131 Aws::String m_smtpReplyCode;
132 bool m_smtpReplyCodeHasBeenSet = false;
133
134 Aws::String m_statusCode;
135 bool m_statusCodeHasBeenSet = false;
136
137 Aws::String m_message;
138 bool m_messageHasBeenSet = false;
139
140 Aws::String m_sender;
141 bool m_senderHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace SES
146} // namespace Aws
void SetMessage(Aws::String &&value)
void SetTopicArn(const Aws::String &value)
BounceAction & WithSender(const char *value)
void SetSmtpReplyCode(const Aws::String &value)
BounceAction & WithMessage(const char *value)
BounceAction & WithSender(Aws::String &&value)
BounceAction & WithSmtpReplyCode(Aws::String &&value)
BounceAction & WithSmtpReplyCode(const Aws::String &value)
const Aws::String & GetSender() const
void SetTopicArn(const char *value)
BounceAction & WithStatusCode(const Aws::String &value)
const Aws::String & GetStatusCode() const
const Aws::String & GetTopicArn() const
void SetSender(const Aws::String &value)
BounceAction & WithMessage(const Aws::String &value)
void SetStatusCode(const char *value)
BounceAction & WithTopicArn(const char *value)
void SetStatusCode(const Aws::String &value)
BounceAction & WithStatusCode(const char *value)
BounceAction & WithSmtpReplyCode(const char *value)
void SetMessage(const char *value)
void SetMessage(const Aws::String &value)
void SetSmtpReplyCode(Aws::String &&value)
AWS_SES_API void OutputToStream(Aws::OStream &oStream, const char *location) const
BounceAction & WithSender(const Aws::String &value)
BounceAction & WithMessage(Aws::String &&value)
BounceAction & WithTopicArn(Aws::String &&value)
AWS_SES_API BounceAction(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetSmtpReplyCode() const
void SetSender(Aws::String &&value)
AWS_SES_API BounceAction & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_SES_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
BounceAction & WithStatusCode(Aws::String &&value)
void SetSmtpReplyCode(const char *value)
void SetStatusCode(Aws::String &&value)
void SetSender(const char *value)
BounceAction & WithTopicArn(const Aws::String &value)
void SetTopicArn(Aws::String &&value)
const Aws::String & GetMessage() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream