7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/workmail/WorkMail_EXPORTS.h>
11#include <aws/workmail/model/AccessControlRuleEffect.h>
44 template <
typename NameT = Aws::String>
46 m_nameHasBeenSet =
true;
47 m_name = std::forward<NameT>(value);
49 template <
typename NameT = Aws::String>
51 SetName(std::forward<NameT>(value));
63 m_effectHasBeenSet =
true;
78 template <
typename DescriptionT = Aws::String>
80 m_descriptionHasBeenSet =
true;
81 m_description = std::forward<DescriptionT>(value);
83 template <
typename DescriptionT = Aws::String>
96 template <
typename IpRangesT = Aws::Vector<Aws::String>>
98 m_ipRangesHasBeenSet =
true;
99 m_ipRanges = std::forward<IpRangesT>(value);
101 template <
typename IpRangesT = Aws::Vector<Aws::String>>
106 template <
typename IpRangesT = Aws::String>
108 m_ipRangesHasBeenSet =
true;
109 m_ipRanges.emplace_back(std::forward<IpRangesT>(value));
120 template <
typename NotIpRangesT = Aws::Vector<Aws::String>>
122 m_notIpRangesHasBeenSet =
true;
123 m_notIpRanges = std::forward<NotIpRangesT>(value);
125 template <
typename NotIpRangesT = Aws::Vector<Aws::String>>
130 template <
typename NotIpRangesT = Aws::String>
132 m_notIpRangesHasBeenSet =
true;
133 m_notIpRanges.emplace_back(std::forward<NotIpRangesT>(value));
147 template <
typename ActionsT = Aws::Vector<Aws::String>>
149 m_actionsHasBeenSet =
true;
150 m_actions = std::forward<ActionsT>(value);
152 template <
typename ActionsT = Aws::Vector<Aws::String>>
157 template <
typename ActionsT = Aws::String>
159 m_actionsHasBeenSet =
true;
160 m_actions.emplace_back(std::forward<ActionsT>(value));
174 template <
typename NotActionsT = Aws::Vector<Aws::String>>
176 m_notActionsHasBeenSet =
true;
177 m_notActions = std::forward<NotActionsT>(value);
179 template <
typename NotActionsT = Aws::Vector<Aws::String>>
184 template <
typename NotActionsT = Aws::String>
186 m_notActionsHasBeenSet =
true;
187 m_notActions.emplace_back(std::forward<NotActionsT>(value));
198 template <
typename UserIdsT = Aws::Vector<Aws::String>>
200 m_userIdsHasBeenSet =
true;
201 m_userIds = std::forward<UserIdsT>(value);
203 template <
typename UserIdsT = Aws::Vector<Aws::String>>
208 template <
typename UserIdsT = Aws::String>
210 m_userIdsHasBeenSet =
true;
211 m_userIds.emplace_back(std::forward<UserIdsT>(value));
222 template <
typename NotUserIdsT = Aws::Vector<Aws::String>>
224 m_notUserIdsHasBeenSet =
true;
225 m_notUserIds = std::forward<NotUserIdsT>(value);
227 template <
typename NotUserIdsT = Aws::Vector<Aws::String>>
232 template <
typename NotUserIdsT = Aws::String>
234 m_notUserIdsHasBeenSet =
true;
235 m_notUserIds.emplace_back(std::forward<NotUserIdsT>(value));
246 template <
typename DateCreatedT = Aws::Utils::DateTime>
248 m_dateCreatedHasBeenSet =
true;
249 m_dateCreated = std::forward<DateCreatedT>(value);
251 template <
typename DateCreatedT = Aws::Utils::DateTime>
264 template <
typename DateModifiedT = Aws::Utils::DateTime>
266 m_dateModifiedHasBeenSet =
true;
267 m_dateModified = std::forward<DateModifiedT>(value);
269 template <
typename DateModifiedT = Aws::Utils::DateTime>
282 template <
typename ImpersonationRoleIdsT = Aws::Vector<Aws::String>>
284 m_impersonationRoleIdsHasBeenSet =
true;
285 m_impersonationRoleIds = std::forward<ImpersonationRoleIdsT>(value);
287 template <
typename ImpersonationRoleIdsT = Aws::Vector<Aws::String>>
292 template <
typename ImpersonationRoleIdsT = Aws::String>
294 m_impersonationRoleIdsHasBeenSet =
true;
295 m_impersonationRoleIds.emplace_back(std::forward<ImpersonationRoleIdsT>(value));
306 template <
typename NotImpersonationRoleIdsT = Aws::Vector<Aws::String>>
308 m_notImpersonationRoleIdsHasBeenSet =
true;
309 m_notImpersonationRoleIds = std::forward<NotImpersonationRoleIdsT>(value);
311 template <
typename NotImpersonationRoleIdsT = Aws::Vector<Aws::String>>
316 template <
typename NotImpersonationRoleIdsT = Aws::String>
318 m_notImpersonationRoleIdsHasBeenSet =
true;
319 m_notImpersonationRoleIds.emplace_back(std::forward<NotImpersonationRoleIdsT>(value));
349 bool m_nameHasBeenSet =
false;
350 bool m_effectHasBeenSet =
false;
351 bool m_descriptionHasBeenSet =
false;
352 bool m_ipRangesHasBeenSet =
false;
353 bool m_notIpRangesHasBeenSet =
false;
354 bool m_actionsHasBeenSet =
false;
355 bool m_notActionsHasBeenSet =
false;
356 bool m_userIdsHasBeenSet =
false;
357 bool m_notUserIdsHasBeenSet =
false;
358 bool m_dateCreatedHasBeenSet =
false;
359 bool m_dateModifiedHasBeenSet =
false;
360 bool m_impersonationRoleIdsHasBeenSet =
false;
361 bool m_notImpersonationRoleIdsHasBeenSet =
false;
void SetDescription(DescriptionT &&value)
void SetNotActions(NotActionsT &&value)
AccessControlRule & AddUserIds(UserIdsT &&value)
AccessControlRule & WithName(NameT &&value)
AccessControlRule & AddNotActions(NotActionsT &&value)
const Aws::Vector< Aws::String > & GetNotImpersonationRoleIds() const
const Aws::Vector< Aws::String > & GetUserIds() const
void SetDateModified(DateModifiedT &&value)
void SetDateCreated(DateCreatedT &&value)
bool ImpersonationRoleIdsHasBeenSet() const
AccessControlRule & WithDateCreated(DateCreatedT &&value)
AccessControlRule & AddNotIpRanges(NotIpRangesT &&value)
bool DateModifiedHasBeenSet() const
AccessControlRule & AddImpersonationRoleIds(ImpersonationRoleIdsT &&value)
AccessControlRule & WithActions(ActionsT &&value)
const Aws::String & GetDescription() const
bool ActionsHasBeenSet() const
bool UserIdsHasBeenSet() const
AccessControlRule & WithDescription(DescriptionT &&value)
bool NotIpRangesHasBeenSet() const
const Aws::Vector< Aws::String > & GetIpRanges() const
bool DescriptionHasBeenSet() const
const Aws::Utils::DateTime & GetDateCreated() const
void SetNotImpersonationRoleIds(NotImpersonationRoleIdsT &&value)
AccessControlRule & WithNotImpersonationRoleIds(NotImpersonationRoleIdsT &&value)
void SetImpersonationRoleIds(ImpersonationRoleIdsT &&value)
AWS_WORKMAIL_API AccessControlRule & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEffect(AccessControlRuleEffect value)
const Aws::String & GetName() const
AccessControlRule & WithImpersonationRoleIds(ImpersonationRoleIdsT &&value)
bool NotActionsHasBeenSet() const
bool EffectHasBeenSet() const
AccessControlRule & WithIpRanges(IpRangesT &&value)
AccessControlRule & AddActions(ActionsT &&value)
AccessControlRuleEffect GetEffect() const
bool NotUserIdsHasBeenSet() const
AccessControlRule & AddNotUserIds(NotUserIdsT &&value)
bool NotImpersonationRoleIdsHasBeenSet() const
AccessControlRule & AddIpRanges(IpRangesT &&value)
AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
AccessControlRule & WithNotIpRanges(NotIpRangesT &&value)
const Aws::Vector< Aws::String > & GetNotActions() const
AccessControlRule & WithNotUserIds(NotUserIdsT &&value)
void SetNotUserIds(NotUserIdsT &&value)
bool IpRangesHasBeenSet() const
const Aws::Vector< Aws::String > & GetActions() const
AccessControlRule & WithNotActions(NotActionsT &&value)
AWS_WORKMAIL_API AccessControlRule()=default
void SetIpRanges(IpRangesT &&value)
AccessControlRule & WithDateModified(DateModifiedT &&value)
const Aws::Utils::DateTime & GetDateModified() const
AccessControlRule & AddNotImpersonationRoleIds(NotImpersonationRoleIdsT &&value)
bool DateCreatedHasBeenSet() const
bool NameHasBeenSet() const
void SetNotIpRanges(NotIpRangesT &&value)
void SetName(NameT &&value)
const Aws::Vector< Aws::String > & GetNotUserIds() const
AWS_WORKMAIL_API AccessControlRule(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetNotIpRanges() const
AccessControlRule & WithEffect(AccessControlRuleEffect value)
AccessControlRule & WithUserIds(UserIdsT &&value)
void SetActions(ActionsT &&value)
const Aws::Vector< Aws::String > & GetImpersonationRoleIds() const
void SetUserIds(UserIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue