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>
14#include <aws/core/utils/UUID.h>
49 inline void SetClientToken(
const char* value) { m_clientTokenHasBeenSet =
true; m_clientToken.assign(value); }
63 inline void SetOrganizationId(
const char* value) { m_organizationIdHasBeenSet =
true; m_organizationId.assign(value); }
77 inline void SetName(
const char* value) { m_nameHasBeenSet =
true; m_name.assign(value); }
104 inline void SetDescription(
const char* value) { m_descriptionHasBeenSet =
true; m_description.assign(value); }
126 bool m_clientTokenHasBeenSet =
false;
129 bool m_organizationIdHasBeenSet =
false;
132 bool m_nameHasBeenSet =
false;
135 bool m_typeHasBeenSet =
false;
138 bool m_descriptionHasBeenSet =
false;
141 bool m_rulesHasBeenSet =
false;
CreateImpersonationRoleRequest & WithName(Aws::String &&value)
void SetDescription(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
bool OrganizationIdHasBeenSet() const
void SetRules(Aws::Vector< ImpersonationRule > &&value)
void SetOrganizationId(Aws::String &&value)
void SetOrganizationId(const char *value)
CreateImpersonationRoleRequest & WithClientToken(Aws::String &&value)
CreateImpersonationRoleRequest & WithClientToken(const Aws::String &value)
const Aws::String & GetName() const
CreateImpersonationRoleRequest & WithOrganizationId(const Aws::String &value)
CreateImpersonationRoleRequest & WithRules(const Aws::Vector< ImpersonationRule > &value)
CreateImpersonationRoleRequest & WithOrganizationId(const char *value)
void SetClientToken(const char *value)
CreateImpersonationRoleRequest & WithDescription(const Aws::String &value)
bool DescriptionHasBeenSet() const
CreateImpersonationRoleRequest & WithType(const ImpersonationRoleType &value)
void SetType(const ImpersonationRoleType &value)
void SetClientToken(const Aws::String &value)
void SetClientToken(Aws::String &&value)
const ImpersonationRoleType & GetType() const
bool RulesHasBeenSet() const
CreateImpersonationRoleRequest & WithName(const Aws::String &value)
void SetDescription(const char *value)
AWS_WORKMAIL_API Aws::String SerializePayload() const override
CreateImpersonationRoleRequest & WithClientToken(const char *value)
void SetType(ImpersonationRoleType &&value)
bool ClientTokenHasBeenSet() const
CreateImpersonationRoleRequest & AddRules(const ImpersonationRule &value)
const Aws::Vector< ImpersonationRule > & GetRules() const
CreateImpersonationRoleRequest & AddRules(ImpersonationRule &&value)
const Aws::String & GetDescription() const
bool TypeHasBeenSet() const
void SetOrganizationId(const Aws::String &value)
AWS_WORKMAIL_API CreateImpersonationRoleRequest()
CreateImpersonationRoleRequest & WithDescription(Aws::String &&value)
const Aws::String & GetClientToken() const
void SetRules(const Aws::Vector< ImpersonationRule > &value)
void SetName(const Aws::String &value)
CreateImpersonationRoleRequest & WithName(const char *value)
CreateImpersonationRoleRequest & WithDescription(const char *value)
const Aws::String & GetOrganizationId() const
CreateImpersonationRoleRequest & WithType(ImpersonationRoleType &&value)
void SetDescription(Aws::String &&value)
bool NameHasBeenSet() const
AWS_WORKMAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateImpersonationRoleRequest & WithRules(Aws::Vector< ImpersonationRule > &&value)
void SetName(const char *value)
void SetName(Aws::String &&value)
CreateImpersonationRoleRequest & WithOrganizationId(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