AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RuleAction.h
1
6#pragma once
7#include <aws/mailmanager/MailManager_EXPORTS.h>
8#include <aws/mailmanager/model/AddHeaderAction.h>
9#include <aws/mailmanager/model/ArchiveAction.h>
10#include <aws/mailmanager/model/DeliverToMailboxAction.h>
11#include <aws/mailmanager/model/DropAction.h>
12#include <aws/mailmanager/model/RelayAction.h>
13#include <aws/mailmanager/model/ReplaceRecipientAction.h>
14#include <aws/mailmanager/model/SendAction.h>
15#include <aws/mailmanager/model/S3Action.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace MailManager
29{
30namespace Model
31{
32
40 {
41 public:
42 AWS_MAILMANAGER_API RuleAction();
43 AWS_MAILMANAGER_API RuleAction(Aws::Utils::Json::JsonView jsonValue);
44 AWS_MAILMANAGER_API RuleAction& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
53 inline const AddHeaderAction& GetAddHeader() const{ return m_addHeader; }
54 inline bool AddHeaderHasBeenSet() const { return m_addHeaderHasBeenSet; }
55 inline void SetAddHeader(const AddHeaderAction& value) { m_addHeaderHasBeenSet = true; m_addHeader = value; }
56 inline void SetAddHeader(AddHeaderAction&& value) { m_addHeaderHasBeenSet = true; m_addHeader = std::move(value); }
57 inline RuleAction& WithAddHeader(const AddHeaderAction& value) { SetAddHeader(value); return *this;}
58 inline RuleAction& WithAddHeader(AddHeaderAction&& value) { SetAddHeader(std::move(value)); return *this;}
60
62
66 inline const ArchiveAction& GetArchive() const{ return m_archive; }
67 inline bool ArchiveHasBeenSet() const { return m_archiveHasBeenSet; }
68 inline void SetArchive(const ArchiveAction& value) { m_archiveHasBeenSet = true; m_archive = value; }
69 inline void SetArchive(ArchiveAction&& value) { m_archiveHasBeenSet = true; m_archive = std::move(value); }
70 inline RuleAction& WithArchive(const ArchiveAction& value) { SetArchive(value); return *this;}
71 inline RuleAction& WithArchive(ArchiveAction&& value) { SetArchive(std::move(value)); return *this;}
73
75
78 inline const DeliverToMailboxAction& GetDeliverToMailbox() const{ return m_deliverToMailbox; }
79 inline bool DeliverToMailboxHasBeenSet() const { return m_deliverToMailboxHasBeenSet; }
80 inline void SetDeliverToMailbox(const DeliverToMailboxAction& value) { m_deliverToMailboxHasBeenSet = true; m_deliverToMailbox = value; }
81 inline void SetDeliverToMailbox(DeliverToMailboxAction&& value) { m_deliverToMailboxHasBeenSet = true; m_deliverToMailbox = std::move(value); }
82 inline RuleAction& WithDeliverToMailbox(const DeliverToMailboxAction& value) { SetDeliverToMailbox(value); return *this;}
83 inline RuleAction& WithDeliverToMailbox(DeliverToMailboxAction&& value) { SetDeliverToMailbox(std::move(value)); return *this;}
85
87
90 inline const DropAction& GetDrop() const{ return m_drop; }
91 inline bool DropHasBeenSet() const { return m_dropHasBeenSet; }
92 inline void SetDrop(const DropAction& value) { m_dropHasBeenSet = true; m_drop = value; }
93 inline void SetDrop(DropAction&& value) { m_dropHasBeenSet = true; m_drop = std::move(value); }
94 inline RuleAction& WithDrop(const DropAction& value) { SetDrop(value); return *this;}
95 inline RuleAction& WithDrop(DropAction&& value) { SetDrop(std::move(value)); return *this;}
97
99
102 inline const RelayAction& GetRelay() const{ return m_relay; }
103 inline bool RelayHasBeenSet() const { return m_relayHasBeenSet; }
104 inline void SetRelay(const RelayAction& value) { m_relayHasBeenSet = true; m_relay = value; }
105 inline void SetRelay(RelayAction&& value) { m_relayHasBeenSet = true; m_relay = std::move(value); }
106 inline RuleAction& WithRelay(const RelayAction& value) { SetRelay(value); return *this;}
107 inline RuleAction& WithRelay(RelayAction&& value) { SetRelay(std::move(value)); return *this;}
109
111
115 inline const ReplaceRecipientAction& GetReplaceRecipient() const{ return m_replaceRecipient; }
116 inline bool ReplaceRecipientHasBeenSet() const { return m_replaceRecipientHasBeenSet; }
117 inline void SetReplaceRecipient(const ReplaceRecipientAction& value) { m_replaceRecipientHasBeenSet = true; m_replaceRecipient = value; }
118 inline void SetReplaceRecipient(ReplaceRecipientAction&& value) { m_replaceRecipientHasBeenSet = true; m_replaceRecipient = std::move(value); }
119 inline RuleAction& WithReplaceRecipient(const ReplaceRecipientAction& value) { SetReplaceRecipient(value); return *this;}
120 inline RuleAction& WithReplaceRecipient(ReplaceRecipientAction&& value) { SetReplaceRecipient(std::move(value)); return *this;}
122
124
127 inline const SendAction& GetSend() const{ return m_send; }
128 inline bool SendHasBeenSet() const { return m_sendHasBeenSet; }
129 inline void SetSend(const SendAction& value) { m_sendHasBeenSet = true; m_send = value; }
130 inline void SetSend(SendAction&& value) { m_sendHasBeenSet = true; m_send = std::move(value); }
131 inline RuleAction& WithSend(const SendAction& value) { SetSend(value); return *this;}
132 inline RuleAction& WithSend(SendAction&& value) { SetSend(std::move(value)); return *this;}
134
136
139 inline const S3Action& GetWriteToS3() const{ return m_writeToS3; }
140 inline bool WriteToS3HasBeenSet() const { return m_writeToS3HasBeenSet; }
141 inline void SetWriteToS3(const S3Action& value) { m_writeToS3HasBeenSet = true; m_writeToS3 = value; }
142 inline void SetWriteToS3(S3Action&& value) { m_writeToS3HasBeenSet = true; m_writeToS3 = std::move(value); }
143 inline RuleAction& WithWriteToS3(const S3Action& value) { SetWriteToS3(value); return *this;}
144 inline RuleAction& WithWriteToS3(S3Action&& value) { SetWriteToS3(std::move(value)); return *this;}
146 private:
147
148 AddHeaderAction m_addHeader;
149 bool m_addHeaderHasBeenSet = false;
150
151 ArchiveAction m_archive;
152 bool m_archiveHasBeenSet = false;
153
154 DeliverToMailboxAction m_deliverToMailbox;
155 bool m_deliverToMailboxHasBeenSet = false;
156
157 DropAction m_drop;
158 bool m_dropHasBeenSet = false;
159
160 RelayAction m_relay;
161 bool m_relayHasBeenSet = false;
162
163 ReplaceRecipientAction m_replaceRecipient;
164 bool m_replaceRecipientHasBeenSet = false;
165
166 SendAction m_send;
167 bool m_sendHasBeenSet = false;
168
169 S3Action m_writeToS3;
170 bool m_writeToS3HasBeenSet = false;
171 };
172
173} // namespace Model
174} // namespace MailManager
175} // namespace Aws
const SendAction & GetSend() const
Definition RuleAction.h:127
void SetSend(SendAction &&value)
Definition RuleAction.h:130
RuleAction & WithWriteToS3(S3Action &&value)
Definition RuleAction.h:144
void SetDrop(DropAction &&value)
Definition RuleAction.h:93
AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
RuleAction & WithAddHeader(AddHeaderAction &&value)
Definition RuleAction.h:58
RuleAction & WithSend(const SendAction &value)
Definition RuleAction.h:131
RuleAction & WithDeliverToMailbox(const DeliverToMailboxAction &value)
Definition RuleAction.h:82
void SetDeliverToMailbox(const DeliverToMailboxAction &value)
Definition RuleAction.h:80
RuleAction & WithReplaceRecipient(const ReplaceRecipientAction &value)
Definition RuleAction.h:119
RuleAction & WithWriteToS3(const S3Action &value)
Definition RuleAction.h:143
void SetDeliverToMailbox(DeliverToMailboxAction &&value)
Definition RuleAction.h:81
void SetRelay(const RelayAction &value)
Definition RuleAction.h:104
const AddHeaderAction & GetAddHeader() const
Definition RuleAction.h:53
const ReplaceRecipientAction & GetReplaceRecipient() const
Definition RuleAction.h:115
RuleAction & WithArchive(const ArchiveAction &value)
Definition RuleAction.h:70
RuleAction & WithAddHeader(const AddHeaderAction &value)
Definition RuleAction.h:57
RuleAction & WithRelay(RelayAction &&value)
Definition RuleAction.h:107
void SetDrop(const DropAction &value)
Definition RuleAction.h:92
const S3Action & GetWriteToS3() const
Definition RuleAction.h:139
RuleAction & WithSend(SendAction &&value)
Definition RuleAction.h:132
void SetReplaceRecipient(const ReplaceRecipientAction &value)
Definition RuleAction.h:117
RuleAction & WithArchive(ArchiveAction &&value)
Definition RuleAction.h:71
const ArchiveAction & GetArchive() const
Definition RuleAction.h:66
void SetWriteToS3(const S3Action &value)
Definition RuleAction.h:141
void SetWriteToS3(S3Action &&value)
Definition RuleAction.h:142
const RelayAction & GetRelay() const
Definition RuleAction.h:102
AWS_MAILMANAGER_API RuleAction()
void SetReplaceRecipient(ReplaceRecipientAction &&value)
Definition RuleAction.h:118
void SetRelay(RelayAction &&value)
Definition RuleAction.h:105
const DeliverToMailboxAction & GetDeliverToMailbox() const
Definition RuleAction.h:78
void SetSend(const SendAction &value)
Definition RuleAction.h:129
void SetArchive(ArchiveAction &&value)
Definition RuleAction.h:69
AWS_MAILMANAGER_API RuleAction(Aws::Utils::Json::JsonView jsonValue)
AWS_MAILMANAGER_API RuleAction & operator=(Aws::Utils::Json::JsonView jsonValue)
RuleAction & WithDrop(DropAction &&value)
Definition RuleAction.h:95
RuleAction & WithReplaceRecipient(ReplaceRecipientAction &&value)
Definition RuleAction.h:120
const DropAction & GetDrop() const
Definition RuleAction.h:90
void SetArchive(const ArchiveAction &value)
Definition RuleAction.h:68
void SetAddHeader(AddHeaderAction &&value)
Definition RuleAction.h:56
RuleAction & WithDrop(const DropAction &value)
Definition RuleAction.h:94
RuleAction & WithRelay(const RelayAction &value)
Definition RuleAction.h:106
RuleAction & WithDeliverToMailbox(DeliverToMailboxAction &&value)
Definition RuleAction.h:83
void SetAddHeader(const AddHeaderAction &value)
Definition RuleAction.h:55
Aws::Utils::Json::JsonValue JsonValue