AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CreateImpersonationRoleRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/workmail/WorkMailRequest.h>
11#include <aws/workmail/WorkMail_EXPORTS.h>
12#include <aws/workmail/model/ImpersonationRoleType.h>
13#include <aws/workmail/model/ImpersonationRule.h>
14
15#include <utility>
16
17namespace Aws {
18namespace WorkMail {
19namespace Model {
20
24 public:
25 AWS_WORKMAIL_API CreateImpersonationRoleRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateImpersonationRole"; }
32
33 AWS_WORKMAIL_API Aws::String SerializePayload() const override;
34
36
38
41 inline const Aws::String& GetClientToken() const { return m_clientToken; }
42 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
43 template <typename ClientTokenT = Aws::String>
44 void SetClientToken(ClientTokenT&& value) {
45 m_clientTokenHasBeenSet = true;
46 m_clientToken = std::forward<ClientTokenT>(value);
47 }
48 template <typename ClientTokenT = Aws::String>
50 SetClientToken(std::forward<ClientTokenT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetOrganizationId() const { return m_organizationId; }
60 inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
61 template <typename OrganizationIdT = Aws::String>
62 void SetOrganizationId(OrganizationIdT&& value) {
63 m_organizationIdHasBeenSet = true;
64 m_organizationId = std::forward<OrganizationIdT>(value);
65 }
66 template <typename OrganizationIdT = Aws::String>
68 SetOrganizationId(std::forward<OrganizationIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetName() const { return m_name; }
78 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
79 template <typename NameT = Aws::String>
80 void SetName(NameT&& value) {
81 m_nameHasBeenSet = true;
82 m_name = std::forward<NameT>(value);
83 }
84 template <typename NameT = Aws::String>
86 SetName(std::forward<NameT>(value));
87 return *this;
88 }
90
92
96 inline ImpersonationRoleType GetType() const { return m_type; }
97 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
98 inline void SetType(ImpersonationRoleType value) {
99 m_typeHasBeenSet = true;
100 m_type = value;
101 }
103 SetType(value);
104 return *this;
105 }
107
109
112 inline const Aws::String& GetDescription() const { return m_description; }
113 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
114 template <typename DescriptionT = Aws::String>
115 void SetDescription(DescriptionT&& value) {
116 m_descriptionHasBeenSet = true;
117 m_description = std::forward<DescriptionT>(value);
118 }
119 template <typename DescriptionT = Aws::String>
121 SetDescription(std::forward<DescriptionT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::Vector<ImpersonationRule>& GetRules() const { return m_rules; }
131 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
132 template <typename RulesT = Aws::Vector<ImpersonationRule>>
133 void SetRules(RulesT&& value) {
134 m_rulesHasBeenSet = true;
135 m_rules = std::forward<RulesT>(value);
136 }
137 template <typename RulesT = Aws::Vector<ImpersonationRule>>
139 SetRules(std::forward<RulesT>(value));
140 return *this;
141 }
142 template <typename RulesT = ImpersonationRule>
144 m_rulesHasBeenSet = true;
145 m_rules.emplace_back(std::forward<RulesT>(value));
146 return *this;
147 }
149 private:
151
152 Aws::String m_organizationId;
153
154 Aws::String m_name;
155
157
158 Aws::String m_description;
159
161 bool m_clientTokenHasBeenSet = true;
162 bool m_organizationIdHasBeenSet = false;
163 bool m_nameHasBeenSet = false;
164 bool m_typeHasBeenSet = false;
165 bool m_descriptionHasBeenSet = false;
166 bool m_rulesHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace WorkMail
171} // 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