AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename TopicArnT = Aws::String>
61 void SetTopicArn(TopicArnT&& value) { m_topicArnHasBeenSet = true; m_topicArn = std::forward<TopicArnT>(value); }
62 template<typename TopicArnT = Aws::String>
63 BounceAction& WithTopicArn(TopicArnT&& value) { SetTopicArn(std::forward<TopicArnT>(value)); return *this;}
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) { m_smtpReplyCodeHasBeenSet = true; m_smtpReplyCode = std::forward<SmtpReplyCodeT>(value); }
75 template<typename SmtpReplyCodeT = Aws::String>
76 BounceAction& WithSmtpReplyCode(SmtpReplyCodeT&& value) { SetSmtpReplyCode(std::forward<SmtpReplyCodeT>(value)); return *this;}
78
80
84 inline const Aws::String& GetStatusCode() const { return m_statusCode; }
85 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
86 template<typename StatusCodeT = Aws::String>
87 void SetStatusCode(StatusCodeT&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::forward<StatusCodeT>(value); }
88 template<typename StatusCodeT = Aws::String>
89 BounceAction& WithStatusCode(StatusCodeT&& value) { SetStatusCode(std::forward<StatusCodeT>(value)); return *this;}
91
93
96 inline const Aws::String& GetMessage() const { return m_message; }
97 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
98 template<typename MessageT = Aws::String>
99 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
100 template<typename MessageT = Aws::String>
101 BounceAction& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
103
105
109 inline const Aws::String& GetSender() const { return m_sender; }
110 inline bool SenderHasBeenSet() const { return m_senderHasBeenSet; }
111 template<typename SenderT = Aws::String>
112 void SetSender(SenderT&& value) { m_senderHasBeenSet = true; m_sender = std::forward<SenderT>(value); }
113 template<typename SenderT = Aws::String>
114 BounceAction& WithSender(SenderT&& value) { SetSender(std::forward<SenderT>(value)); return *this;}
116 private:
117
118 Aws::String m_topicArn;
119 bool m_topicArnHasBeenSet = false;
120
121 Aws::String m_smtpReplyCode;
122 bool m_smtpReplyCodeHasBeenSet = false;
123
124 Aws::String m_statusCode;
125 bool m_statusCodeHasBeenSet = false;
126
127 Aws::String m_message;
128 bool m_messageHasBeenSet = false;
129
130 Aws::String m_sender;
131 bool m_senderHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace SES
136} // 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