AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RuleAction.h
1
6#pragma once
7#include <aws/mailmanager/MailManager_EXPORTS.h>
8#include <aws/mailmanager/model/DropAction.h>
9#include <aws/mailmanager/model/RelayAction.h>
10#include <aws/mailmanager/model/ArchiveAction.h>
11#include <aws/mailmanager/model/S3Action.h>
12#include <aws/mailmanager/model/SendAction.h>
13#include <aws/mailmanager/model/AddHeaderAction.h>
14#include <aws/mailmanager/model/ReplaceRecipientAction.h>
15#include <aws/mailmanager/model/DeliverToMailboxAction.h>
16#include <aws/mailmanager/model/DeliverToQBusinessAction.h>
17#include <aws/mailmanager/model/SnsAction.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27 class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace MailManager
31{
32namespace Model
33{
34
42 {
43 public:
44 AWS_MAILMANAGER_API RuleAction() = default;
45 AWS_MAILMANAGER_API RuleAction(Aws::Utils::Json::JsonView jsonValue);
46 AWS_MAILMANAGER_API RuleAction& operator=(Aws::Utils::Json::JsonView jsonValue);
47 AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
54 inline const DropAction& GetDrop() const { return m_drop; }
55 inline bool DropHasBeenSet() const { return m_dropHasBeenSet; }
56 template<typename DropT = DropAction>
57 void SetDrop(DropT&& value) { m_dropHasBeenSet = true; m_drop = std::forward<DropT>(value); }
58 template<typename DropT = DropAction>
59 RuleAction& WithDrop(DropT&& value) { SetDrop(std::forward<DropT>(value)); return *this;}
61
63
66 inline const RelayAction& GetRelay() const { return m_relay; }
67 inline bool RelayHasBeenSet() const { return m_relayHasBeenSet; }
68 template<typename RelayT = RelayAction>
69 void SetRelay(RelayT&& value) { m_relayHasBeenSet = true; m_relay = std::forward<RelayT>(value); }
70 template<typename RelayT = RelayAction>
71 RuleAction& WithRelay(RelayT&& value) { SetRelay(std::forward<RelayT>(value)); return *this;}
73
75
79 inline const ArchiveAction& GetArchive() const { return m_archive; }
80 inline bool ArchiveHasBeenSet() const { return m_archiveHasBeenSet; }
81 template<typename ArchiveT = ArchiveAction>
82 void SetArchive(ArchiveT&& value) { m_archiveHasBeenSet = true; m_archive = std::forward<ArchiveT>(value); }
83 template<typename ArchiveT = ArchiveAction>
84 RuleAction& WithArchive(ArchiveT&& value) { SetArchive(std::forward<ArchiveT>(value)); return *this;}
86
88
91 inline const S3Action& GetWriteToS3() const { return m_writeToS3; }
92 inline bool WriteToS3HasBeenSet() const { return m_writeToS3HasBeenSet; }
93 template<typename WriteToS3T = S3Action>
94 void SetWriteToS3(WriteToS3T&& value) { m_writeToS3HasBeenSet = true; m_writeToS3 = std::forward<WriteToS3T>(value); }
95 template<typename WriteToS3T = S3Action>
96 RuleAction& WithWriteToS3(WriteToS3T&& value) { SetWriteToS3(std::forward<WriteToS3T>(value)); return *this;}
98
100
103 inline const SendAction& GetSend() const { return m_send; }
104 inline bool SendHasBeenSet() const { return m_sendHasBeenSet; }
105 template<typename SendT = SendAction>
106 void SetSend(SendT&& value) { m_sendHasBeenSet = true; m_send = std::forward<SendT>(value); }
107 template<typename SendT = SendAction>
108 RuleAction& WithSend(SendT&& value) { SetSend(std::forward<SendT>(value)); return *this;}
110
112
116 inline const AddHeaderAction& GetAddHeader() const { return m_addHeader; }
117 inline bool AddHeaderHasBeenSet() const { return m_addHeaderHasBeenSet; }
118 template<typename AddHeaderT = AddHeaderAction>
119 void SetAddHeader(AddHeaderT&& value) { m_addHeaderHasBeenSet = true; m_addHeader = std::forward<AddHeaderT>(value); }
120 template<typename AddHeaderT = AddHeaderAction>
121 RuleAction& WithAddHeader(AddHeaderT&& value) { SetAddHeader(std::forward<AddHeaderT>(value)); return *this;}
123
125
129 inline const ReplaceRecipientAction& GetReplaceRecipient() const { return m_replaceRecipient; }
130 inline bool ReplaceRecipientHasBeenSet() const { return m_replaceRecipientHasBeenSet; }
131 template<typename ReplaceRecipientT = ReplaceRecipientAction>
132 void SetReplaceRecipient(ReplaceRecipientT&& value) { m_replaceRecipientHasBeenSet = true; m_replaceRecipient = std::forward<ReplaceRecipientT>(value); }
133 template<typename ReplaceRecipientT = ReplaceRecipientAction>
134 RuleAction& WithReplaceRecipient(ReplaceRecipientT&& value) { SetReplaceRecipient(std::forward<ReplaceRecipientT>(value)); return *this;}
136
138
141 inline const DeliverToMailboxAction& GetDeliverToMailbox() const { return m_deliverToMailbox; }
142 inline bool DeliverToMailboxHasBeenSet() const { return m_deliverToMailboxHasBeenSet; }
143 template<typename DeliverToMailboxT = DeliverToMailboxAction>
144 void SetDeliverToMailbox(DeliverToMailboxT&& value) { m_deliverToMailboxHasBeenSet = true; m_deliverToMailbox = std::forward<DeliverToMailboxT>(value); }
145 template<typename DeliverToMailboxT = DeliverToMailboxAction>
146 RuleAction& WithDeliverToMailbox(DeliverToMailboxT&& value) { SetDeliverToMailbox(std::forward<DeliverToMailboxT>(value)); return *this;}
148
150
154 inline const DeliverToQBusinessAction& GetDeliverToQBusiness() const { return m_deliverToQBusiness; }
155 inline bool DeliverToQBusinessHasBeenSet() const { return m_deliverToQBusinessHasBeenSet; }
156 template<typename DeliverToQBusinessT = DeliverToQBusinessAction>
157 void SetDeliverToQBusiness(DeliverToQBusinessT&& value) { m_deliverToQBusinessHasBeenSet = true; m_deliverToQBusiness = std::forward<DeliverToQBusinessT>(value); }
158 template<typename DeliverToQBusinessT = DeliverToQBusinessAction>
159 RuleAction& WithDeliverToQBusiness(DeliverToQBusinessT&& value) { SetDeliverToQBusiness(std::forward<DeliverToQBusinessT>(value)); return *this;}
161
163
166 inline const SnsAction& GetPublishToSns() const { return m_publishToSns; }
167 inline bool PublishToSnsHasBeenSet() const { return m_publishToSnsHasBeenSet; }
168 template<typename PublishToSnsT = SnsAction>
169 void SetPublishToSns(PublishToSnsT&& value) { m_publishToSnsHasBeenSet = true; m_publishToSns = std::forward<PublishToSnsT>(value); }
170 template<typename PublishToSnsT = SnsAction>
171 RuleAction& WithPublishToSns(PublishToSnsT&& value) { SetPublishToSns(std::forward<PublishToSnsT>(value)); return *this;}
173 private:
174
175 DropAction m_drop;
176 bool m_dropHasBeenSet = false;
177
178 RelayAction m_relay;
179 bool m_relayHasBeenSet = false;
180
181 ArchiveAction m_archive;
182 bool m_archiveHasBeenSet = false;
183
184 S3Action m_writeToS3;
185 bool m_writeToS3HasBeenSet = false;
186
187 SendAction m_send;
188 bool m_sendHasBeenSet = false;
189
190 AddHeaderAction m_addHeader;
191 bool m_addHeaderHasBeenSet = false;
192
193 ReplaceRecipientAction m_replaceRecipient;
194 bool m_replaceRecipientHasBeenSet = false;
195
196 DeliverToMailboxAction m_deliverToMailbox;
197 bool m_deliverToMailboxHasBeenSet = false;
198
199 DeliverToQBusinessAction m_deliverToQBusiness;
200 bool m_deliverToQBusinessHasBeenSet = false;
201
202 SnsAction m_publishToSns;
203 bool m_publishToSnsHasBeenSet = false;
204 };
205
206} // namespace Model
207} // namespace MailManager
208} // namespace Aws
const SendAction & GetSend() const
Definition RuleAction.h:103
RuleAction & WithDeliverToMailbox(DeliverToMailboxT &&value)
Definition RuleAction.h:146
RuleAction & WithDeliverToQBusiness(DeliverToQBusinessT &&value)
Definition RuleAction.h:159
AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
const SnsAction & GetPublishToSns() const
Definition RuleAction.h:166
RuleAction & WithAddHeader(AddHeaderT &&value)
Definition RuleAction.h:121
void SetDeliverToMailbox(DeliverToMailboxT &&value)
Definition RuleAction.h:144
void SetDeliverToQBusiness(DeliverToQBusinessT &&value)
Definition RuleAction.h:157
void SetReplaceRecipient(ReplaceRecipientT &&value)
Definition RuleAction.h:132
void SetArchive(ArchiveT &&value)
Definition RuleAction.h:82
RuleAction & WithWriteToS3(WriteToS3T &&value)
Definition RuleAction.h:96
const AddHeaderAction & GetAddHeader() const
Definition RuleAction.h:116
const ReplaceRecipientAction & GetReplaceRecipient() const
Definition RuleAction.h:129
const S3Action & GetWriteToS3() const
Definition RuleAction.h:91
RuleAction & WithDrop(DropT &&value)
Definition RuleAction.h:59
RuleAction & WithPublishToSns(PublishToSnsT &&value)
Definition RuleAction.h:171
void SetAddHeader(AddHeaderT &&value)
Definition RuleAction.h:119
const ArchiveAction & GetArchive() const
Definition RuleAction.h:79
AWS_MAILMANAGER_API RuleAction()=default
const RelayAction & GetRelay() const
Definition RuleAction.h:66
RuleAction & WithRelay(RelayT &&value)
Definition RuleAction.h:71
void SetRelay(RelayT &&value)
Definition RuleAction.h:69
RuleAction & WithReplaceRecipient(ReplaceRecipientT &&value)
Definition RuleAction.h:134
const DeliverToQBusinessAction & GetDeliverToQBusiness() const
Definition RuleAction.h:154
const DeliverToMailboxAction & GetDeliverToMailbox() const
Definition RuleAction.h:141
void SetWriteToS3(WriteToS3T &&value)
Definition RuleAction.h:94
void SetPublishToSns(PublishToSnsT &&value)
Definition RuleAction.h:169
AWS_MAILMANAGER_API RuleAction(Aws::Utils::Json::JsonView jsonValue)
AWS_MAILMANAGER_API RuleAction & operator=(Aws::Utils::Json::JsonView jsonValue)
RuleAction & WithArchive(ArchiveT &&value)
Definition RuleAction.h:84
const DropAction & GetDrop() const
Definition RuleAction.h:54
RuleAction & WithSend(SendT &&value)
Definition RuleAction.h:108
Aws::Utils::Json::JsonValue JsonValue