AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ReceiptAction.h
1
6#pragma once
7#include <aws/email/SES_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/email/model/S3Action.h>
10#include <aws/email/model/BounceAction.h>
11#include <aws/email/model/WorkmailAction.h>
12#include <aws/email/model/LambdaAction.h>
13#include <aws/email/model/StopAction.h>
14#include <aws/email/model/AddHeaderAction.h>
15#include <aws/email/model/SNSAction.h>
16#include <aws/email/model/ConnectAction.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Xml
24{
25 class XmlNode;
26} // namespace Xml
27} // namespace Utils
28namespace SES
29{
30namespace Model
31{
32
44 {
45 public:
46 AWS_SES_API ReceiptAction() = default;
47 AWS_SES_API ReceiptAction(const Aws::Utils::Xml::XmlNode& xmlNode);
48 AWS_SES_API ReceiptAction& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
49
50 AWS_SES_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
51 AWS_SES_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
52
53
55
59 inline const S3Action& GetS3Action() const { return m_s3Action; }
60 inline bool S3ActionHasBeenSet() const { return m_s3ActionHasBeenSet; }
61 template<typename S3ActionT = S3Action>
62 void SetS3Action(S3ActionT&& value) { m_s3ActionHasBeenSet = true; m_s3Action = std::forward<S3ActionT>(value); }
63 template<typename S3ActionT = S3Action>
64 ReceiptAction& WithS3Action(S3ActionT&& value) { SetS3Action(std::forward<S3ActionT>(value)); return *this;}
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) { m_bounceActionHasBeenSet = true; m_bounceAction = std::forward<BounceActionT>(value); }
77 template<typename BounceActionT = BounceAction>
78 ReceiptAction& WithBounceAction(BounceActionT&& value) { SetBounceAction(std::forward<BounceActionT>(value)); return *this;}
80
82
86 inline const WorkmailAction& GetWorkmailAction() const { return m_workmailAction; }
87 inline bool WorkmailActionHasBeenSet() const { return m_workmailActionHasBeenSet; }
88 template<typename WorkmailActionT = WorkmailAction>
89 void SetWorkmailAction(WorkmailActionT&& value) { m_workmailActionHasBeenSet = true; m_workmailAction = std::forward<WorkmailActionT>(value); }
90 template<typename WorkmailActionT = WorkmailAction>
91 ReceiptAction& WithWorkmailAction(WorkmailActionT&& value) { SetWorkmailAction(std::forward<WorkmailActionT>(value)); return *this;}
93
95
99 inline const LambdaAction& GetLambdaAction() const { return m_lambdaAction; }
100 inline bool LambdaActionHasBeenSet() const { return m_lambdaActionHasBeenSet; }
101 template<typename LambdaActionT = LambdaAction>
102 void SetLambdaAction(LambdaActionT&& value) { m_lambdaActionHasBeenSet = true; m_lambdaAction = std::forward<LambdaActionT>(value); }
103 template<typename LambdaActionT = LambdaAction>
104 ReceiptAction& WithLambdaAction(LambdaActionT&& value) { SetLambdaAction(std::forward<LambdaActionT>(value)); return *this;}
106
108
112 inline const StopAction& GetStopAction() const { return m_stopAction; }
113 inline bool StopActionHasBeenSet() const { return m_stopActionHasBeenSet; }
114 template<typename StopActionT = StopAction>
115 void SetStopAction(StopActionT&& value) { m_stopActionHasBeenSet = true; m_stopAction = std::forward<StopActionT>(value); }
116 template<typename StopActionT = StopAction>
117 ReceiptAction& WithStopAction(StopActionT&& value) { SetStopAction(std::forward<StopActionT>(value)); return *this;}
119
121
124 inline const AddHeaderAction& GetAddHeaderAction() const { return m_addHeaderAction; }
125 inline bool AddHeaderActionHasBeenSet() const { return m_addHeaderActionHasBeenSet; }
126 template<typename AddHeaderActionT = AddHeaderAction>
127 void SetAddHeaderAction(AddHeaderActionT&& value) { m_addHeaderActionHasBeenSet = true; m_addHeaderAction = std::forward<AddHeaderActionT>(value); }
128 template<typename AddHeaderActionT = AddHeaderAction>
129 ReceiptAction& WithAddHeaderAction(AddHeaderActionT&& value) { SetAddHeaderAction(std::forward<AddHeaderActionT>(value)); return *this;}
131
133
136 inline const SNSAction& GetSNSAction() const { return m_sNSAction; }
137 inline bool SNSActionHasBeenSet() const { return m_sNSActionHasBeenSet; }
138 template<typename SNSActionT = SNSAction>
139 void SetSNSAction(SNSActionT&& value) { m_sNSActionHasBeenSet = true; m_sNSAction = std::forward<SNSActionT>(value); }
140 template<typename SNSActionT = SNSAction>
141 ReceiptAction& WithSNSAction(SNSActionT&& value) { SetSNSAction(std::forward<SNSActionT>(value)); return *this;}
143
145
149 inline const ConnectAction& GetConnectAction() const { return m_connectAction; }
150 inline bool ConnectActionHasBeenSet() const { return m_connectActionHasBeenSet; }
151 template<typename ConnectActionT = ConnectAction>
152 void SetConnectAction(ConnectActionT&& value) { m_connectActionHasBeenSet = true; m_connectAction = std::forward<ConnectActionT>(value); }
153 template<typename ConnectActionT = ConnectAction>
154 ReceiptAction& WithConnectAction(ConnectActionT&& value) { SetConnectAction(std::forward<ConnectActionT>(value)); return *this;}
156 private:
157
158 S3Action m_s3Action;
159 bool m_s3ActionHasBeenSet = false;
160
161 BounceAction m_bounceAction;
162 bool m_bounceActionHasBeenSet = false;
163
164 WorkmailAction m_workmailAction;
165 bool m_workmailActionHasBeenSet = false;
166
167 LambdaAction m_lambdaAction;
168 bool m_lambdaActionHasBeenSet = false;
169
170 StopAction m_stopAction;
171 bool m_stopActionHasBeenSet = false;
172
173 AddHeaderAction m_addHeaderAction;
174 bool m_addHeaderActionHasBeenSet = false;
175
176 SNSAction m_sNSAction;
177 bool m_sNSActionHasBeenSet = false;
178
179 ConnectAction m_connectAction;
180 bool m_connectActionHasBeenSet = false;
181 };
182
183} // namespace Model
184} // namespace SES
185} // 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