AWS SDK for C++

AWS SDK for C++ Version 1.11.766

Loading...
Searching...
No Matches
ReceiptAction.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/email/SES_EXPORTS.h>
9#include <aws/email/model/AddHeaderAction.h>
10#include <aws/email/model/BounceAction.h>
11#include <aws/email/model/ConnectAction.h>
12#include <aws/email/model/LambdaAction.h>
13#include <aws/email/model/S3Action.h>
14#include <aws/email/model/SNSAction.h>
15#include <aws/email/model/StopAction.h>
16#include <aws/email/model/WorkmailAction.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Xml {
23class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace SES {
27namespace Model {
28
40 public:
41 AWS_SES_API ReceiptAction() = default;
42 AWS_SES_API ReceiptAction(const Aws::Utils::Xml::XmlNode& xmlNode);
43 AWS_SES_API ReceiptAction& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44
45 AWS_SES_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46 AWS_SES_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
47
49
53 inline const S3Action& GetS3Action() const { return m_s3Action; }
54 inline bool S3ActionHasBeenSet() const { return m_s3ActionHasBeenSet; }
55 template <typename S3ActionT = S3Action>
56 void SetS3Action(S3ActionT&& value) {
57 m_s3ActionHasBeenSet = true;
58 m_s3Action = std::forward<S3ActionT>(value);
59 }
60 template <typename S3ActionT = S3Action>
61 ReceiptAction& WithS3Action(S3ActionT&& value) {
62 SetS3Action(std::forward<S3ActionT>(value));
63 return *this;
64 }
66
68
73 inline const BounceAction& GetBounceAction() const { return m_bounceAction; }
74 inline bool BounceActionHasBeenSet() const { return m_bounceActionHasBeenSet; }
75 template <typename BounceActionT = BounceAction>
76 void SetBounceAction(BounceActionT&& value) {
77 m_bounceActionHasBeenSet = true;
78 m_bounceAction = std::forward<BounceActionT>(value);
79 }
80 template <typename BounceActionT = BounceAction>
81 ReceiptAction& WithBounceAction(BounceActionT&& value) {
82 SetBounceAction(std::forward<BounceActionT>(value));
83 return *this;
84 }
86
88
92 inline const WorkmailAction& GetWorkmailAction() const { return m_workmailAction; }
93 inline bool WorkmailActionHasBeenSet() const { return m_workmailActionHasBeenSet; }
94 template <typename WorkmailActionT = WorkmailAction>
95 void SetWorkmailAction(WorkmailActionT&& value) {
96 m_workmailActionHasBeenSet = true;
97 m_workmailAction = std::forward<WorkmailActionT>(value);
98 }
99 template <typename WorkmailActionT = WorkmailAction>
100 ReceiptAction& WithWorkmailAction(WorkmailActionT&& value) {
101 SetWorkmailAction(std::forward<WorkmailActionT>(value));
102 return *this;
103 }
105
107
111 inline const LambdaAction& GetLambdaAction() const { return m_lambdaAction; }
112 inline bool LambdaActionHasBeenSet() const { return m_lambdaActionHasBeenSet; }
113 template <typename LambdaActionT = LambdaAction>
114 void SetLambdaAction(LambdaActionT&& value) {
115 m_lambdaActionHasBeenSet = true;
116 m_lambdaAction = std::forward<LambdaActionT>(value);
117 }
118 template <typename LambdaActionT = LambdaAction>
119 ReceiptAction& WithLambdaAction(LambdaActionT&& value) {
120 SetLambdaAction(std::forward<LambdaActionT>(value));
121 return *this;
122 }
124
126
130 inline const StopAction& GetStopAction() const { return m_stopAction; }
131 inline bool StopActionHasBeenSet() const { return m_stopActionHasBeenSet; }
132 template <typename StopActionT = StopAction>
133 void SetStopAction(StopActionT&& value) {
134 m_stopActionHasBeenSet = true;
135 m_stopAction = std::forward<StopActionT>(value);
136 }
137 template <typename StopActionT = StopAction>
138 ReceiptAction& WithStopAction(StopActionT&& value) {
139 SetStopAction(std::forward<StopActionT>(value));
140 return *this;
141 }
143
145
148 inline const AddHeaderAction& GetAddHeaderAction() const { return m_addHeaderAction; }
149 inline bool AddHeaderActionHasBeenSet() const { return m_addHeaderActionHasBeenSet; }
150 template <typename AddHeaderActionT = AddHeaderAction>
151 void SetAddHeaderAction(AddHeaderActionT&& value) {
152 m_addHeaderActionHasBeenSet = true;
153 m_addHeaderAction = std::forward<AddHeaderActionT>(value);
154 }
155 template <typename AddHeaderActionT = AddHeaderAction>
156 ReceiptAction& WithAddHeaderAction(AddHeaderActionT&& value) {
157 SetAddHeaderAction(std::forward<AddHeaderActionT>(value));
158 return *this;
159 }
161
163
166 inline const SNSAction& GetSNSAction() const { return m_sNSAction; }
167 inline bool SNSActionHasBeenSet() const { return m_sNSActionHasBeenSet; }
168 template <typename SNSActionT = SNSAction>
169 void SetSNSAction(SNSActionT&& value) {
170 m_sNSActionHasBeenSet = true;
171 m_sNSAction = std::forward<SNSActionT>(value);
172 }
173 template <typename SNSActionT = SNSAction>
174 ReceiptAction& WithSNSAction(SNSActionT&& value) {
175 SetSNSAction(std::forward<SNSActionT>(value));
176 return *this;
177 }
179
181
185 inline const ConnectAction& GetConnectAction() const { return m_connectAction; }
186 inline bool ConnectActionHasBeenSet() const { return m_connectActionHasBeenSet; }
187 template <typename ConnectActionT = ConnectAction>
188 void SetConnectAction(ConnectActionT&& value) {
189 m_connectActionHasBeenSet = true;
190 m_connectAction = std::forward<ConnectActionT>(value);
191 }
192 template <typename ConnectActionT = ConnectAction>
193 ReceiptAction& WithConnectAction(ConnectActionT&& value) {
194 SetConnectAction(std::forward<ConnectActionT>(value));
195 return *this;
196 }
198 private:
199 S3Action m_s3Action;
200
201 BounceAction m_bounceAction;
202
203 WorkmailAction m_workmailAction;
204
205 LambdaAction m_lambdaAction;
206
207 StopAction m_stopAction;
208
209 AddHeaderAction m_addHeaderAction;
210
211 SNSAction m_sNSAction;
212
213 ConnectAction m_connectAction;
214 bool m_s3ActionHasBeenSet = false;
215 bool m_bounceActionHasBeenSet = false;
216 bool m_workmailActionHasBeenSet = false;
217 bool m_lambdaActionHasBeenSet = false;
218 bool m_stopActionHasBeenSet = false;
219 bool m_addHeaderActionHasBeenSet = false;
220 bool m_sNSActionHasBeenSet = false;
221 bool m_connectActionHasBeenSet = false;
222};
223
224} // namespace Model
225} // namespace SES
226} // namespace Aws
const LambdaAction & GetLambdaAction() const
ReceiptAction & WithStopAction(StopActionT &&value)
ReceiptAction & WithSNSAction(SNSActionT &&value)
const WorkmailAction & GetWorkmailAction() const
ReceiptAction & WithLambdaAction(LambdaActionT &&value)
void SetWorkmailAction(WorkmailActionT &&value)
ReceiptAction & WithBounceAction(BounceActionT &&value)
ReceiptAction & WithS3Action(S3ActionT &&value)
const S3Action & GetS3Action() const
const AddHeaderAction & GetAddHeaderAction() const
void SetSNSAction(SNSActionT &&value)
void SetLambdaAction(LambdaActionT &&value)
AWS_SES_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetBounceAction(BounceActionT &&value)
const SNSAction & GetSNSAction() const
void SetAddHeaderAction(AddHeaderActionT &&value)
ReceiptAction & WithAddHeaderAction(AddHeaderActionT &&value)
const StopAction & GetStopAction() const
const BounceAction & GetBounceAction() const
AWS_SES_API ReceiptAction & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetS3Action(S3ActionT &&value)
ReceiptAction & WithWorkmailAction(WorkmailActionT &&value)
AWS_SES_API ReceiptAction(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetConnectAction(ConnectActionT &&value)
ReceiptAction & WithConnectAction(ConnectActionT &&value)
const ConnectAction & GetConnectAction() const
AWS_SES_API ReceiptAction()=default
void SetStopAction(StopActionT &&value)
AWS_SES_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::basic_ostream< char, std::char_traits< char > > OStream