7#include <aws/workmail/WorkMail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/workmail/model/AccessEffect.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
48 template<
typename ImpersonationRuleIdT = Aws::String>
49 void SetImpersonationRuleId(ImpersonationRuleIdT&& value) { m_impersonationRuleIdHasBeenSet =
true; m_impersonationRuleId = std::forward<ImpersonationRuleIdT>(value); }
50 template<
typename ImpersonationRuleIdT = Aws::String>
60 template<
typename NameT = Aws::String>
61 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
62 template<
typename NameT = Aws::String>
72 template<
typename DescriptionT = Aws::String>
73 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
74 template<
typename DescriptionT = Aws::String>
95 template<
typename TargetUsersT = Aws::Vector<Aws::String>>
96 void SetTargetUsers(TargetUsersT&& value) { m_targetUsersHasBeenSet =
true; m_targetUsers = std::forward<TargetUsersT>(value); }
97 template<
typename TargetUsersT = Aws::Vector<Aws::String>>
99 template<
typename TargetUsersT = Aws::String>
100 ImpersonationRule&
AddTargetUsers(TargetUsersT&& value) { m_targetUsersHasBeenSet =
true; m_targetUsers.emplace_back(std::forward<TargetUsersT>(value));
return *
this; }
109 template<
typename NotTargetUsersT = Aws::Vector<Aws::String>>
110 void SetNotTargetUsers(NotTargetUsersT&& value) { m_notTargetUsersHasBeenSet =
true; m_notTargetUsers = std::forward<NotTargetUsersT>(value); }
111 template<
typename NotTargetUsersT = Aws::Vector<Aws::String>>
113 template<
typename NotTargetUsersT = Aws::String>
114 ImpersonationRule&
AddNotTargetUsers(NotTargetUsersT&& value) { m_notTargetUsersHasBeenSet =
true; m_notTargetUsers.emplace_back(std::forward<NotTargetUsersT>(value));
return *
this; }
119 bool m_impersonationRuleIdHasBeenSet =
false;
122 bool m_nameHasBeenSet =
false;
125 bool m_descriptionHasBeenSet =
false;
128 bool m_effectHasBeenSet =
false;
131 bool m_targetUsersHasBeenSet =
false;
134 bool m_notTargetUsersHasBeenSet =
false;
bool DescriptionHasBeenSet() const
void SetEffect(AccessEffect value)
ImpersonationRule & WithImpersonationRuleId(ImpersonationRuleIdT &&value)
AWS_WORKMAIL_API ImpersonationRule()=default
AWS_WORKMAIL_API ImpersonationRule(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
const Aws::Vector< Aws::String > & GetTargetUsers() const
ImpersonationRule & AddNotTargetUsers(NotTargetUsersT &&value)
bool TargetUsersHasBeenSet() const
void SetTargetUsers(TargetUsersT &&value)
void SetImpersonationRuleId(ImpersonationRuleIdT &&value)
AccessEffect GetEffect() const
bool NotTargetUsersHasBeenSet() const
ImpersonationRule & WithDescription(DescriptionT &&value)
AWS_WORKMAIL_API ImpersonationRule & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDescription(DescriptionT &&value)
ImpersonationRule & WithTargetUsers(TargetUsersT &&value)
ImpersonationRule & WithName(NameT &&value)
ImpersonationRule & WithNotTargetUsers(NotTargetUsersT &&value)
bool ImpersonationRuleIdHasBeenSet() const
ImpersonationRule & AddTargetUsers(TargetUsersT &&value)
ImpersonationRule & WithEffect(AccessEffect value)
const Aws::Vector< Aws::String > & GetNotTargetUsers() const
AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(NameT &&value)
const Aws::String & GetDescription() const
const Aws::String & GetImpersonationRuleId() const
bool EffectHasBeenSet() const
bool NameHasBeenSet() const
void SetNotTargetUsers(NotTargetUsersT &&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