AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutAccessControlRuleRequest.h
1
6#pragma once
7#include <aws/workmail/WorkMail_EXPORTS.h>
8#include <aws/workmail/WorkMailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/workmail/model/AccessControlRuleEffect.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <utility>
13
14namespace Aws
15{
16namespace WorkMail
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_WORKMAIL_API PutAccessControlRuleRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "PutAccessControlRule"; }
33
34 AWS_WORKMAIL_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetName() const{ return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
46 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
47 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
48 inline PutAccessControlRuleRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
49 inline PutAccessControlRuleRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
50 inline PutAccessControlRuleRequest& WithName(const char* value) { SetName(value); return *this;}
52
54
57 inline const AccessControlRuleEffect& GetEffect() const{ return m_effect; }
58 inline bool EffectHasBeenSet() const { return m_effectHasBeenSet; }
59 inline void SetEffect(const AccessControlRuleEffect& value) { m_effectHasBeenSet = true; m_effect = value; }
60 inline void SetEffect(AccessControlRuleEffect&& value) { m_effectHasBeenSet = true; m_effect = std::move(value); }
61 inline PutAccessControlRuleRequest& WithEffect(const AccessControlRuleEffect& value) { SetEffect(value); return *this;}
62 inline PutAccessControlRuleRequest& WithEffect(AccessControlRuleEffect&& value) { SetEffect(std::move(value)); return *this;}
64
66
69 inline const Aws::String& GetDescription() const{ return m_description; }
70 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
71 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
72 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
73 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
74 inline PutAccessControlRuleRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
75 inline PutAccessControlRuleRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
76 inline PutAccessControlRuleRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
78
80
83 inline const Aws::Vector<Aws::String>& GetIpRanges() const{ return m_ipRanges; }
84 inline bool IpRangesHasBeenSet() const { return m_ipRangesHasBeenSet; }
85 inline void SetIpRanges(const Aws::Vector<Aws::String>& value) { m_ipRangesHasBeenSet = true; m_ipRanges = value; }
86 inline void SetIpRanges(Aws::Vector<Aws::String>&& value) { m_ipRangesHasBeenSet = true; m_ipRanges = std::move(value); }
88 inline PutAccessControlRuleRequest& WithIpRanges(Aws::Vector<Aws::String>&& value) { SetIpRanges(std::move(value)); return *this;}
89 inline PutAccessControlRuleRequest& AddIpRanges(const Aws::String& value) { m_ipRangesHasBeenSet = true; m_ipRanges.push_back(value); return *this; }
90 inline PutAccessControlRuleRequest& AddIpRanges(Aws::String&& value) { m_ipRangesHasBeenSet = true; m_ipRanges.push_back(std::move(value)); return *this; }
91 inline PutAccessControlRuleRequest& AddIpRanges(const char* value) { m_ipRangesHasBeenSet = true; m_ipRanges.push_back(value); return *this; }
93
95
98 inline const Aws::Vector<Aws::String>& GetNotIpRanges() const{ return m_notIpRanges; }
99 inline bool NotIpRangesHasBeenSet() const { return m_notIpRangesHasBeenSet; }
100 inline void SetNotIpRanges(const Aws::Vector<Aws::String>& value) { m_notIpRangesHasBeenSet = true; m_notIpRanges = value; }
101 inline void SetNotIpRanges(Aws::Vector<Aws::String>&& value) { m_notIpRangesHasBeenSet = true; m_notIpRanges = std::move(value); }
103 inline PutAccessControlRuleRequest& WithNotIpRanges(Aws::Vector<Aws::String>&& value) { SetNotIpRanges(std::move(value)); return *this;}
104 inline PutAccessControlRuleRequest& AddNotIpRanges(const Aws::String& value) { m_notIpRangesHasBeenSet = true; m_notIpRanges.push_back(value); return *this; }
105 inline PutAccessControlRuleRequest& AddNotIpRanges(Aws::String&& value) { m_notIpRangesHasBeenSet = true; m_notIpRanges.push_back(std::move(value)); return *this; }
106 inline PutAccessControlRuleRequest& AddNotIpRanges(const char* value) { m_notIpRangesHasBeenSet = true; m_notIpRanges.push_back(value); return *this; }
108
110
116 inline const Aws::Vector<Aws::String>& GetActions() const{ return m_actions; }
117 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
118 inline void SetActions(const Aws::Vector<Aws::String>& value) { m_actionsHasBeenSet = true; m_actions = value; }
119 inline void SetActions(Aws::Vector<Aws::String>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
120 inline PutAccessControlRuleRequest& WithActions(const Aws::Vector<Aws::String>& value) { SetActions(value); return *this;}
121 inline PutAccessControlRuleRequest& WithActions(Aws::Vector<Aws::String>&& value) { SetActions(std::move(value)); return *this;}
122 inline PutAccessControlRuleRequest& AddActions(const Aws::String& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
123 inline PutAccessControlRuleRequest& AddActions(Aws::String&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
124 inline PutAccessControlRuleRequest& AddActions(const char* value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
126
128
134 inline const Aws::Vector<Aws::String>& GetNotActions() const{ return m_notActions; }
135 inline bool NotActionsHasBeenSet() const { return m_notActionsHasBeenSet; }
136 inline void SetNotActions(const Aws::Vector<Aws::String>& value) { m_notActionsHasBeenSet = true; m_notActions = value; }
137 inline void SetNotActions(Aws::Vector<Aws::String>&& value) { m_notActionsHasBeenSet = true; m_notActions = std::move(value); }
139 inline PutAccessControlRuleRequest& WithNotActions(Aws::Vector<Aws::String>&& value) { SetNotActions(std::move(value)); return *this;}
140 inline PutAccessControlRuleRequest& AddNotActions(const Aws::String& value) { m_notActionsHasBeenSet = true; m_notActions.push_back(value); return *this; }
141 inline PutAccessControlRuleRequest& AddNotActions(Aws::String&& value) { m_notActionsHasBeenSet = true; m_notActions.push_back(std::move(value)); return *this; }
142 inline PutAccessControlRuleRequest& AddNotActions(const char* value) { m_notActionsHasBeenSet = true; m_notActions.push_back(value); return *this; }
144
146
149 inline const Aws::Vector<Aws::String>& GetUserIds() const{ return m_userIds; }
150 inline bool UserIdsHasBeenSet() const { return m_userIdsHasBeenSet; }
151 inline void SetUserIds(const Aws::Vector<Aws::String>& value) { m_userIdsHasBeenSet = true; m_userIds = value; }
152 inline void SetUserIds(Aws::Vector<Aws::String>&& value) { m_userIdsHasBeenSet = true; m_userIds = std::move(value); }
153 inline PutAccessControlRuleRequest& WithUserIds(const Aws::Vector<Aws::String>& value) { SetUserIds(value); return *this;}
154 inline PutAccessControlRuleRequest& WithUserIds(Aws::Vector<Aws::String>&& value) { SetUserIds(std::move(value)); return *this;}
155 inline PutAccessControlRuleRequest& AddUserIds(const Aws::String& value) { m_userIdsHasBeenSet = true; m_userIds.push_back(value); return *this; }
156 inline PutAccessControlRuleRequest& AddUserIds(Aws::String&& value) { m_userIdsHasBeenSet = true; m_userIds.push_back(std::move(value)); return *this; }
157 inline PutAccessControlRuleRequest& AddUserIds(const char* value) { m_userIdsHasBeenSet = true; m_userIds.push_back(value); return *this; }
159
161
164 inline const Aws::Vector<Aws::String>& GetNotUserIds() const{ return m_notUserIds; }
165 inline bool NotUserIdsHasBeenSet() const { return m_notUserIdsHasBeenSet; }
166 inline void SetNotUserIds(const Aws::Vector<Aws::String>& value) { m_notUserIdsHasBeenSet = true; m_notUserIds = value; }
167 inline void SetNotUserIds(Aws::Vector<Aws::String>&& value) { m_notUserIdsHasBeenSet = true; m_notUserIds = std::move(value); }
169 inline PutAccessControlRuleRequest& WithNotUserIds(Aws::Vector<Aws::String>&& value) { SetNotUserIds(std::move(value)); return *this;}
170 inline PutAccessControlRuleRequest& AddNotUserIds(const Aws::String& value) { m_notUserIdsHasBeenSet = true; m_notUserIds.push_back(value); return *this; }
171 inline PutAccessControlRuleRequest& AddNotUserIds(Aws::String&& value) { m_notUserIdsHasBeenSet = true; m_notUserIds.push_back(std::move(value)); return *this; }
172 inline PutAccessControlRuleRequest& AddNotUserIds(const char* value) { m_notUserIdsHasBeenSet = true; m_notUserIds.push_back(value); return *this; }
174
176
179 inline const Aws::String& GetOrganizationId() const{ return m_organizationId; }
180 inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
181 inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; }
182 inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); }
183 inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); }
185 inline PutAccessControlRuleRequest& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;}
186 inline PutAccessControlRuleRequest& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;}
188
190
193 inline const Aws::Vector<Aws::String>& GetImpersonationRoleIds() const{ return m_impersonationRoleIds; }
194 inline bool ImpersonationRoleIdsHasBeenSet() const { return m_impersonationRoleIdsHasBeenSet; }
195 inline void SetImpersonationRoleIds(const Aws::Vector<Aws::String>& value) { m_impersonationRoleIdsHasBeenSet = true; m_impersonationRoleIds = value; }
196 inline void SetImpersonationRoleIds(Aws::Vector<Aws::String>&& value) { m_impersonationRoleIdsHasBeenSet = true; m_impersonationRoleIds = std::move(value); }
199 inline PutAccessControlRuleRequest& AddImpersonationRoleIds(const Aws::String& value) { m_impersonationRoleIdsHasBeenSet = true; m_impersonationRoleIds.push_back(value); return *this; }
200 inline PutAccessControlRuleRequest& AddImpersonationRoleIds(Aws::String&& value) { m_impersonationRoleIdsHasBeenSet = true; m_impersonationRoleIds.push_back(std::move(value)); return *this; }
201 inline PutAccessControlRuleRequest& AddImpersonationRoleIds(const char* value) { m_impersonationRoleIdsHasBeenSet = true; m_impersonationRoleIds.push_back(value); return *this; }
203
205
208 inline const Aws::Vector<Aws::String>& GetNotImpersonationRoleIds() const{ return m_notImpersonationRoleIds; }
209 inline bool NotImpersonationRoleIdsHasBeenSet() const { return m_notImpersonationRoleIdsHasBeenSet; }
210 inline void SetNotImpersonationRoleIds(const Aws::Vector<Aws::String>& value) { m_notImpersonationRoleIdsHasBeenSet = true; m_notImpersonationRoleIds = value; }
211 inline void SetNotImpersonationRoleIds(Aws::Vector<Aws::String>&& value) { m_notImpersonationRoleIdsHasBeenSet = true; m_notImpersonationRoleIds = std::move(value); }
214 inline PutAccessControlRuleRequest& AddNotImpersonationRoleIds(const Aws::String& value) { m_notImpersonationRoleIdsHasBeenSet = true; m_notImpersonationRoleIds.push_back(value); return *this; }
215 inline PutAccessControlRuleRequest& AddNotImpersonationRoleIds(Aws::String&& value) { m_notImpersonationRoleIdsHasBeenSet = true; m_notImpersonationRoleIds.push_back(std::move(value)); return *this; }
216 inline PutAccessControlRuleRequest& AddNotImpersonationRoleIds(const char* value) { m_notImpersonationRoleIdsHasBeenSet = true; m_notImpersonationRoleIds.push_back(value); return *this; }
218 private:
219
220 Aws::String m_name;
221 bool m_nameHasBeenSet = false;
222
224 bool m_effectHasBeenSet = false;
225
226 Aws::String m_description;
227 bool m_descriptionHasBeenSet = false;
228
229 Aws::Vector<Aws::String> m_ipRanges;
230 bool m_ipRangesHasBeenSet = false;
231
232 Aws::Vector<Aws::String> m_notIpRanges;
233 bool m_notIpRangesHasBeenSet = false;
234
235 Aws::Vector<Aws::String> m_actions;
236 bool m_actionsHasBeenSet = false;
237
238 Aws::Vector<Aws::String> m_notActions;
239 bool m_notActionsHasBeenSet = false;
240
241 Aws::Vector<Aws::String> m_userIds;
242 bool m_userIdsHasBeenSet = false;
243
244 Aws::Vector<Aws::String> m_notUserIds;
245 bool m_notUserIdsHasBeenSet = false;
246
247 Aws::String m_organizationId;
248 bool m_organizationIdHasBeenSet = false;
249
250 Aws::Vector<Aws::String> m_impersonationRoleIds;
251 bool m_impersonationRoleIdsHasBeenSet = false;
252
253 Aws::Vector<Aws::String> m_notImpersonationRoleIds;
254 bool m_notImpersonationRoleIdsHasBeenSet = false;
255 };
256
257} // namespace Model
258} // namespace WorkMail
259} // namespace Aws
PutAccessControlRuleRequest & AddNotImpersonationRoleIds(Aws::String &&value)
PutAccessControlRuleRequest & AddUserIds(const char *value)
void SetEffect(const AccessControlRuleEffect &value)
void SetNotIpRanges(const Aws::Vector< Aws::String > &value)
PutAccessControlRuleRequest & WithNotIpRanges(const Aws::Vector< Aws::String > &value)
PutAccessControlRuleRequest & AddImpersonationRoleIds(Aws::String &&value)
PutAccessControlRuleRequest & WithActions(Aws::Vector< Aws::String > &&value)
PutAccessControlRuleRequest & WithUserIds(const Aws::Vector< Aws::String > &value)
void SetNotActions(Aws::Vector< Aws::String > &&value)
PutAccessControlRuleRequest & WithEffect(AccessControlRuleEffect &&value)
PutAccessControlRuleRequest & AddNotUserIds(const char *value)
void SetIpRanges(Aws::Vector< Aws::String > &&value)
PutAccessControlRuleRequest & AddIpRanges(const char *value)
void SetNotImpersonationRoleIds(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetActions() const
PutAccessControlRuleRequest & AddNotActions(const Aws::String &value)
void SetNotActions(const Aws::Vector< Aws::String > &value)
PutAccessControlRuleRequest & WithOrganizationId(const char *value)
PutAccessControlRuleRequest & WithNotImpersonationRoleIds(Aws::Vector< Aws::String > &&value)
void SetNotUserIds(const Aws::Vector< Aws::String > &value)
PutAccessControlRuleRequest & WithActions(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetImpersonationRoleIds() const
PutAccessControlRuleRequest & AddNotImpersonationRoleIds(const Aws::String &value)
PutAccessControlRuleRequest & WithNotIpRanges(Aws::Vector< Aws::String > &&value)
void SetIpRanges(const Aws::Vector< Aws::String > &value)
PutAccessControlRuleRequest & AddNotIpRanges(const char *value)
PutAccessControlRuleRequest & AddActions(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
PutAccessControlRuleRequest & WithIpRanges(const Aws::Vector< Aws::String > &value)
void SetUserIds(const Aws::Vector< Aws::String > &value)
PutAccessControlRuleRequest & AddNotUserIds(const Aws::String &value)
PutAccessControlRuleRequest & WithName(Aws::String &&value)
PutAccessControlRuleRequest & AddActions(const char *value)
PutAccessControlRuleRequest & WithNotActions(Aws::Vector< Aws::String > &&value)
PutAccessControlRuleRequest & AddActions(const Aws::String &value)
PutAccessControlRuleRequest & WithName(const Aws::String &value)
void SetNotIpRanges(Aws::Vector< Aws::String > &&value)
PutAccessControlRuleRequest & WithDescription(const Aws::String &value)
PutAccessControlRuleRequest & AddUserIds(Aws::String &&value)
PutAccessControlRuleRequest & WithNotUserIds(const Aws::Vector< Aws::String > &value)
AWS_WORKMAIL_API Aws::String SerializePayload() const override
void SetActions(const Aws::Vector< Aws::String > &value)
PutAccessControlRuleRequest & WithOrganizationId(Aws::String &&value)
PutAccessControlRuleRequest & AddNotIpRanges(const Aws::String &value)
const Aws::Vector< Aws::String > & GetNotIpRanges() const
PutAccessControlRuleRequest & AddNotActions(const char *value)
PutAccessControlRuleRequest & AddUserIds(const Aws::String &value)
PutAccessControlRuleRequest & WithImpersonationRoleIds(Aws::Vector< Aws::String > &&value)
PutAccessControlRuleRequest & WithIpRanges(Aws::Vector< Aws::String > &&value)
PutAccessControlRuleRequest & AddNotActions(Aws::String &&value)
PutAccessControlRuleRequest & AddImpersonationRoleIds(const Aws::String &value)
PutAccessControlRuleRequest & WithDescription(const char *value)
PutAccessControlRuleRequest & AddNotImpersonationRoleIds(const char *value)
PutAccessControlRuleRequest & AddIpRanges(Aws::String &&value)
void SetNotUserIds(Aws::Vector< Aws::String > &&value)
void SetNotImpersonationRoleIds(const Aws::Vector< Aws::String > &value)
PutAccessControlRuleRequest & WithName(const char *value)
const Aws::Vector< Aws::String > & GetNotImpersonationRoleIds() const
const Aws::Vector< Aws::String > & GetUserIds() const
PutAccessControlRuleRequest & AddImpersonationRoleIds(const char *value)
void SetImpersonationRoleIds(Aws::Vector< Aws::String > &&value)
PutAccessControlRuleRequest & WithEffect(const AccessControlRuleEffect &value)
PutAccessControlRuleRequest & WithImpersonationRoleIds(const Aws::Vector< Aws::String > &value)
PutAccessControlRuleRequest & WithNotImpersonationRoleIds(const Aws::Vector< Aws::String > &value)
PutAccessControlRuleRequest & WithUserIds(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetNotUserIds() const
PutAccessControlRuleRequest & WithDescription(Aws::String &&value)
PutAccessControlRuleRequest & AddNotUserIds(Aws::String &&value)
PutAccessControlRuleRequest & WithNotActions(const Aws::Vector< Aws::String > &value)
void SetImpersonationRoleIds(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetNotActions() const
PutAccessControlRuleRequest & WithNotUserIds(Aws::Vector< Aws::String > &&value)
PutAccessControlRuleRequest & AddNotIpRanges(Aws::String &&value)
AWS_WORKMAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutAccessControlRuleRequest & AddIpRanges(const Aws::String &value)
const Aws::Vector< Aws::String > & GetIpRanges() const
PutAccessControlRuleRequest & WithOrganizationId(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector