7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/workmail/WorkMail_EXPORTS.h>
10#include <aws/workmail/model/AccessEffect.h>
42 template <
typename ImpersonationRuleIdT = Aws::String>
44 m_impersonationRuleIdHasBeenSet =
true;
45 m_impersonationRuleId = std::forward<ImpersonationRuleIdT>(value);
47 template <
typename ImpersonationRuleIdT = Aws::String>
60 template <
typename NameT = Aws::String>
62 m_nameHasBeenSet =
true;
63 m_name = std::forward<NameT>(value);
65 template <
typename NameT = Aws::String>
67 SetName(std::forward<NameT>(value));
78 template <
typename DescriptionT = Aws::String>
80 m_descriptionHasBeenSet =
true;
81 m_description = std::forward<DescriptionT>(value);
83 template <
typename DescriptionT = Aws::String>
98 m_effectHasBeenSet =
true;
113 template <
typename TargetUsersT = Aws::Vector<Aws::String>>
115 m_targetUsersHasBeenSet =
true;
116 m_targetUsers = std::forward<TargetUsersT>(value);
118 template <
typename TargetUsersT = Aws::Vector<Aws::String>>
123 template <
typename TargetUsersT = Aws::String>
125 m_targetUsersHasBeenSet =
true;
126 m_targetUsers.emplace_back(std::forward<TargetUsersT>(value));
137 template <
typename NotTargetUsersT = Aws::Vector<Aws::String>>
139 m_notTargetUsersHasBeenSet =
true;
140 m_notTargetUsers = std::forward<NotTargetUsersT>(value);
142 template <
typename NotTargetUsersT = Aws::Vector<Aws::String>>
147 template <
typename NotTargetUsersT = Aws::String>
149 m_notTargetUsersHasBeenSet =
true;
150 m_notTargetUsers.emplace_back(std::forward<NotTargetUsersT>(value));
166 bool m_impersonationRuleIdHasBeenSet =
false;
167 bool m_nameHasBeenSet =
false;
168 bool m_descriptionHasBeenSet =
false;
169 bool m_effectHasBeenSet =
false;
170 bool m_targetUsersHasBeenSet =
false;
171 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