AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateImpersonationRoleRequest.h
1
6#pragma once
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>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace WorkMail
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_WORKMAIL_API CreateImpersonationRoleRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateImpersonationRole"; }
35
36 AWS_WORKMAIL_API Aws::String SerializePayload() const override;
37
39
40
42
45 inline const Aws::String& GetClientToken() const { return m_clientToken; }
46 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
47 template<typename ClientTokenT = Aws::String>
48 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
49 template<typename ClientTokenT = Aws::String>
50 CreateImpersonationRoleRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
52
54
57 inline const Aws::String& GetOrganizationId() const { return m_organizationId; }
58 inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
59 template<typename OrganizationIdT = Aws::String>
60 void SetOrganizationId(OrganizationIdT&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::forward<OrganizationIdT>(value); }
61 template<typename OrganizationIdT = Aws::String>
62 CreateImpersonationRoleRequest& WithOrganizationId(OrganizationIdT&& value) { SetOrganizationId(std::forward<OrganizationIdT>(value)); return *this;}
64
66
69 inline const Aws::String& GetName() const { return m_name; }
70 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
71 template<typename NameT = Aws::String>
72 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
73 template<typename NameT = Aws::String>
74 CreateImpersonationRoleRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
76
78
82 inline ImpersonationRoleType GetType() const { return m_type; }
83 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
84 inline void SetType(ImpersonationRoleType value) { m_typeHasBeenSet = true; m_type = value; }
87
89
92 inline const Aws::String& GetDescription() const { return m_description; }
93 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
94 template<typename DescriptionT = Aws::String>
95 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
96 template<typename DescriptionT = Aws::String>
97 CreateImpersonationRoleRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
99
101
104 inline const Aws::Vector<ImpersonationRule>& GetRules() const { return m_rules; }
105 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
106 template<typename RulesT = Aws::Vector<ImpersonationRule>>
107 void SetRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules = std::forward<RulesT>(value); }
108 template<typename RulesT = Aws::Vector<ImpersonationRule>>
109 CreateImpersonationRoleRequest& WithRules(RulesT&& value) { SetRules(std::forward<RulesT>(value)); return *this;}
110 template<typename RulesT = ImpersonationRule>
111 CreateImpersonationRoleRequest& AddRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules.emplace_back(std::forward<RulesT>(value)); return *this; }
113 private:
114
116 bool m_clientTokenHasBeenSet = true;
117
118 Aws::String m_organizationId;
119 bool m_organizationIdHasBeenSet = false;
120
121 Aws::String m_name;
122 bool m_nameHasBeenSet = false;
123
125 bool m_typeHasBeenSet = false;
126
127 Aws::String m_description;
128 bool m_descriptionHasBeenSet = false;
129
131 bool m_rulesHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace WorkMail
136} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
CreateImpersonationRoleRequest & WithRules(RulesT &&value)
CreateImpersonationRoleRequest & WithClientToken(ClientTokenT &&value)
AWS_WORKMAIL_API CreateImpersonationRoleRequest()=default
AWS_WORKMAIL_API Aws::String SerializePayload() const override
CreateImpersonationRoleRequest & WithType(ImpersonationRoleType value)
const Aws::Vector< ImpersonationRule > & GetRules() const
CreateImpersonationRoleRequest & WithOrganizationId(OrganizationIdT &&value)
CreateImpersonationRoleRequest & WithDescription(DescriptionT &&value)
CreateImpersonationRoleRequest & WithName(NameT &&value)
AWS_WORKMAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateImpersonationRoleRequest & 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