AWS SDK for C++

AWS SDK for C++ Version 1.11.767

Loading...
Searching...
No Matches
BounceAction.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/email/SES_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace SES {
20namespace Model {
21
34 public:
35 AWS_SES_API BounceAction() = default;
36 AWS_SES_API BounceAction(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_SES_API BounceAction& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_SES_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_SES_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
43
52 inline const Aws::String& GetTopicArn() const { return m_topicArn; }
53 inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; }
54 template <typename TopicArnT = Aws::String>
55 void SetTopicArn(TopicArnT&& value) {
56 m_topicArnHasBeenSet = true;
57 m_topicArn = std::forward<TopicArnT>(value);
58 }
59 template <typename TopicArnT = Aws::String>
60 BounceAction& WithTopicArn(TopicArnT&& value) {
61 SetTopicArn(std::forward<TopicArnT>(value));
62 return *this;
63 }
65
67
71 inline const Aws::String& GetSmtpReplyCode() const { return m_smtpReplyCode; }
72 inline bool SmtpReplyCodeHasBeenSet() const { return m_smtpReplyCodeHasBeenSet; }
73 template <typename SmtpReplyCodeT = Aws::String>
74 void SetSmtpReplyCode(SmtpReplyCodeT&& value) {
75 m_smtpReplyCodeHasBeenSet = true;
76 m_smtpReplyCode = std::forward<SmtpReplyCodeT>(value);
77 }
78 template <typename SmtpReplyCodeT = Aws::String>
79 BounceAction& WithSmtpReplyCode(SmtpReplyCodeT&& value) {
80 SetSmtpReplyCode(std::forward<SmtpReplyCodeT>(value));
81 return *this;
82 }
84
86
90 inline const Aws::String& GetStatusCode() const { return m_statusCode; }
91 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
92 template <typename StatusCodeT = Aws::String>
93 void SetStatusCode(StatusCodeT&& value) {
94 m_statusCodeHasBeenSet = true;
95 m_statusCode = std::forward<StatusCodeT>(value);
96 }
97 template <typename StatusCodeT = Aws::String>
98 BounceAction& WithStatusCode(StatusCodeT&& value) {
99 SetStatusCode(std::forward<StatusCodeT>(value));
100 return *this;
101 }
103
105
108 inline const Aws::String& GetMessage() const { return m_message; }
109 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
110 template <typename MessageT = Aws::String>
111 void SetMessage(MessageT&& value) {
112 m_messageHasBeenSet = true;
113 m_message = std::forward<MessageT>(value);
114 }
115 template <typename MessageT = Aws::String>
116 BounceAction& WithMessage(MessageT&& value) {
117 SetMessage(std::forward<MessageT>(value));
118 return *this;
119 }
121
123
127 inline const Aws::String& GetSender() const { return m_sender; }
128 inline bool SenderHasBeenSet() const { return m_senderHasBeenSet; }
129 template <typename SenderT = Aws::String>
130 void SetSender(SenderT&& value) {
131 m_senderHasBeenSet = true;
132 m_sender = std::forward<SenderT>(value);
133 }
134 template <typename SenderT = Aws::String>
135 BounceAction& WithSender(SenderT&& value) {
136 SetSender(std::forward<SenderT>(value));
137 return *this;
138 }
140 private:
141 Aws::String m_topicArn;
142
143 Aws::String m_smtpReplyCode;
144
145 Aws::String m_statusCode;
146
147 Aws::String m_message;
148
149 Aws::String m_sender;
150 bool m_topicArnHasBeenSet = false;
151 bool m_smtpReplyCodeHasBeenSet = false;
152 bool m_statusCodeHasBeenSet = false;
153 bool m_messageHasBeenSet = false;
154 bool m_senderHasBeenSet = false;
155};
156
157} // namespace Model
158} // namespace SES
159} // namespace Aws
BounceAction & WithSender(SenderT &&value)
const Aws::String & GetSender() const
const Aws::String & GetStatusCode() const
const Aws::String & GetTopicArn() const
BounceAction & WithStatusCode(StatusCodeT &&value)
AWS_SES_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_SES_API BounceAction()=default
BounceAction & WithMessage(MessageT &&value)
void SetMessage(MessageT &&value)
void SetSender(SenderT &&value)
AWS_SES_API BounceAction(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSmtpReplyCode(SmtpReplyCodeT &&value)
BounceAction & WithTopicArn(TopicArnT &&value)
const Aws::String & GetSmtpReplyCode() const
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
void SetStatusCode(StatusCodeT &&value)
BounceAction & WithSmtpReplyCode(SmtpReplyCodeT &&value)
void SetTopicArn(TopicArnT &&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