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/ImpersonationRoleType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/workmail/model/ImpersonationRule.h>
46 template<
typename OrganizationIdT = Aws::String>
47 void SetOrganizationId(OrganizationIdT&& value) { m_organizationIdHasBeenSet =
true; m_organizationId = std::forward<OrganizationIdT>(value); }
48 template<
typename OrganizationIdT = Aws::String>
58 template<
typename ImpersonationRoleIdT = Aws::String>
59 void SetImpersonationRoleId(ImpersonationRoleIdT&& value) { m_impersonationRoleIdHasBeenSet =
true; m_impersonationRoleId = std::forward<ImpersonationRoleIdT>(value); }
60 template<
typename ImpersonationRoleIdT = Aws::String>
70 template<
typename NameT = Aws::String>
71 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
72 template<
typename NameT = Aws::String>
92 template<
typename DescriptionT = Aws::String>
93 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
94 template<
typename DescriptionT = Aws::String>
104 template<
typename RulesT = Aws::Vector<ImpersonationRule>>
105 void SetRules(RulesT&& value) { m_rulesHasBeenSet =
true; m_rules = std::forward<RulesT>(value); }
106 template<
typename RulesT = Aws::Vector<ImpersonationRule>>
108 template<
typename RulesT = ImpersonationRule>
114 bool m_organizationIdHasBeenSet =
false;
117 bool m_impersonationRoleIdHasBeenSet =
false;
120 bool m_nameHasBeenSet =
false;
123 bool m_typeHasBeenSet =
false;
126 bool m_descriptionHasBeenSet =
false;
129 bool m_rulesHasBeenSet =
false;
bool OrganizationIdHasBeenSet() const
UpdateImpersonationRoleRequest & WithDescription(DescriptionT &&value)
UpdateImpersonationRoleRequest & WithType(ImpersonationRoleType value)
UpdateImpersonationRoleRequest & WithRules(RulesT &&value)
const Aws::String & GetName() const
const Aws::Vector< ImpersonationRule > & GetRules() const
const Aws::String & GetImpersonationRoleId() const
UpdateImpersonationRoleRequest & WithName(NameT &&value)
const Aws::String & GetDescription() const
bool RulesHasBeenSet() const
UpdateImpersonationRoleRequest & WithImpersonationRoleId(ImpersonationRoleIdT &&value)
AWS_WORKMAIL_API UpdateImpersonationRoleRequest()=default
bool ImpersonationRoleIdHasBeenSet() const
void SetDescription(DescriptionT &&value)
bool TypeHasBeenSet() const
void SetRules(RulesT &&value)
void SetOrganizationId(OrganizationIdT &&value)
void SetImpersonationRoleId(ImpersonationRoleIdT &&value)
AWS_WORKMAIL_API Aws::String SerializePayload() const override
bool NameHasBeenSet() const
UpdateImpersonationRoleRequest & WithOrganizationId(OrganizationIdT &&value)
void SetType(ImpersonationRoleType value)
const Aws::String & GetOrganizationId() const
void SetName(NameT &&value)
ImpersonationRoleType GetType() const
virtual const char * GetServiceRequestName() const override
AWS_WORKMAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
bool DescriptionHasBeenSet() const
UpdateImpersonationRoleRequest & AddRules(RulesT &&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