AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
SimulatePrincipalPolicyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/iam/IAMRequest.h>
10#include <aws/iam/IAM_EXPORTS.h>
11#include <aws/iam/model/ContextEntry.h>
12
13#include <utility>
14
15namespace Aws {
16namespace IAM {
17namespace Model {
18
22 public:
23 AWS_IAM_API SimulatePrincipalPolicyRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "SimulatePrincipalPolicy"; }
30
31 AWS_IAM_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
53 inline const Aws::String& GetPolicySourceArn() const { return m_policySourceArn; }
54 inline bool PolicySourceArnHasBeenSet() const { return m_policySourceArnHasBeenSet; }
55 template <typename PolicySourceArnT = Aws::String>
56 void SetPolicySourceArn(PolicySourceArnT&& value) {
57 m_policySourceArnHasBeenSet = true;
58 m_policySourceArn = std::forward<PolicySourceArnT>(value);
59 }
60 template <typename PolicySourceArnT = Aws::String>
62 SetPolicySourceArn(std::forward<PolicySourceArnT>(value));
63 return *this;
64 }
66
68
80 inline const Aws::Vector<Aws::String>& GetPolicyInputList() const { return m_policyInputList; }
81 inline bool PolicyInputListHasBeenSet() const { return m_policyInputListHasBeenSet; }
82 template <typename PolicyInputListT = Aws::Vector<Aws::String>>
83 void SetPolicyInputList(PolicyInputListT&& value) {
84 m_policyInputListHasBeenSet = true;
85 m_policyInputList = std::forward<PolicyInputListT>(value);
86 }
87 template <typename PolicyInputListT = Aws::Vector<Aws::String>>
89 SetPolicyInputList(std::forward<PolicyInputListT>(value));
90 return *this;
91 }
92 template <typename PolicyInputListT = Aws::String>
94 m_policyInputListHasBeenSet = true;
95 m_policyInputList.emplace_back(std::forward<PolicyInputListT>(value));
96 return *this;
97 }
99
101
128 inline const Aws::Vector<Aws::String>& GetPermissionsBoundaryPolicyInputList() const { return m_permissionsBoundaryPolicyInputList; }
129 inline bool PermissionsBoundaryPolicyInputListHasBeenSet() const { return m_permissionsBoundaryPolicyInputListHasBeenSet; }
130 template <typename PermissionsBoundaryPolicyInputListT = Aws::Vector<Aws::String>>
131 void SetPermissionsBoundaryPolicyInputList(PermissionsBoundaryPolicyInputListT&& value) {
132 m_permissionsBoundaryPolicyInputListHasBeenSet = true;
133 m_permissionsBoundaryPolicyInputList = std::forward<PermissionsBoundaryPolicyInputListT>(value);
134 }
135 template <typename PermissionsBoundaryPolicyInputListT = Aws::Vector<Aws::String>>
136 SimulatePrincipalPolicyRequest& WithPermissionsBoundaryPolicyInputList(PermissionsBoundaryPolicyInputListT&& value) {
137 SetPermissionsBoundaryPolicyInputList(std::forward<PermissionsBoundaryPolicyInputListT>(value));
138 return *this;
139 }
140 template <typename PermissionsBoundaryPolicyInputListT = Aws::String>
141 SimulatePrincipalPolicyRequest& AddPermissionsBoundaryPolicyInputList(PermissionsBoundaryPolicyInputListT&& value) {
142 m_permissionsBoundaryPolicyInputListHasBeenSet = true;
143 m_permissionsBoundaryPolicyInputList.emplace_back(std::forward<PermissionsBoundaryPolicyInputListT>(value));
144 return *this;
145 }
147
149
154 inline const Aws::Vector<Aws::String>& GetActionNames() const { return m_actionNames; }
155 inline bool ActionNamesHasBeenSet() const { return m_actionNamesHasBeenSet; }
156 template <typename ActionNamesT = Aws::Vector<Aws::String>>
157 void SetActionNames(ActionNamesT&& value) {
158 m_actionNamesHasBeenSet = true;
159 m_actionNames = std::forward<ActionNamesT>(value);
160 }
161 template <typename ActionNamesT = Aws::Vector<Aws::String>>
163 SetActionNames(std::forward<ActionNamesT>(value));
164 return *this;
165 }
166 template <typename ActionNamesT = Aws::String>
168 m_actionNamesHasBeenSet = true;
169 m_actionNames.emplace_back(std::forward<ActionNamesT>(value));
170 return *this;
171 }
173
175
191 inline const Aws::Vector<Aws::String>& GetResourceArns() const { return m_resourceArns; }
192 inline bool ResourceArnsHasBeenSet() const { return m_resourceArnsHasBeenSet; }
193 template <typename ResourceArnsT = Aws::Vector<Aws::String>>
194 void SetResourceArns(ResourceArnsT&& value) {
195 m_resourceArnsHasBeenSet = true;
196 m_resourceArns = std::forward<ResourceArnsT>(value);
197 }
198 template <typename ResourceArnsT = Aws::Vector<Aws::String>>
200 SetResourceArns(std::forward<ResourceArnsT>(value));
201 return *this;
202 }
203 template <typename ResourceArnsT = Aws::String>
205 m_resourceArnsHasBeenSet = true;
206 m_resourceArns.emplace_back(std::forward<ResourceArnsT>(value));
207 return *this;
208 }
210
212
231 inline const Aws::String& GetResourcePolicy() const { return m_resourcePolicy; }
232 inline bool ResourcePolicyHasBeenSet() const { return m_resourcePolicyHasBeenSet; }
233 template <typename ResourcePolicyT = Aws::String>
234 void SetResourcePolicy(ResourcePolicyT&& value) {
235 m_resourcePolicyHasBeenSet = true;
236 m_resourcePolicy = std::forward<ResourcePolicyT>(value);
237 }
238 template <typename ResourcePolicyT = Aws::String>
240 SetResourcePolicy(std::forward<ResourcePolicyT>(value));
241 return *this;
242 }
244
246
259 inline const Aws::String& GetResourceOwner() const { return m_resourceOwner; }
260 inline bool ResourceOwnerHasBeenSet() const { return m_resourceOwnerHasBeenSet; }
261 template <typename ResourceOwnerT = Aws::String>
262 void SetResourceOwner(ResourceOwnerT&& value) {
263 m_resourceOwnerHasBeenSet = true;
264 m_resourceOwner = std::forward<ResourceOwnerT>(value);
265 }
266 template <typename ResourceOwnerT = Aws::String>
268 SetResourceOwner(std::forward<ResourceOwnerT>(value));
269 return *this;
270 }
272
274
294 inline const Aws::String& GetCallerArn() const { return m_callerArn; }
295 inline bool CallerArnHasBeenSet() const { return m_callerArnHasBeenSet; }
296 template <typename CallerArnT = Aws::String>
297 void SetCallerArn(CallerArnT&& value) {
298 m_callerArnHasBeenSet = true;
299 m_callerArn = std::forward<CallerArnT>(value);
300 }
301 template <typename CallerArnT = Aws::String>
303 SetCallerArn(std::forward<CallerArnT>(value));
304 return *this;
305 }
307
309
314 inline const Aws::Vector<ContextEntry>& GetContextEntries() const { return m_contextEntries; }
315 inline bool ContextEntriesHasBeenSet() const { return m_contextEntriesHasBeenSet; }
316 template <typename ContextEntriesT = Aws::Vector<ContextEntry>>
317 void SetContextEntries(ContextEntriesT&& value) {
318 m_contextEntriesHasBeenSet = true;
319 m_contextEntries = std::forward<ContextEntriesT>(value);
320 }
321 template <typename ContextEntriesT = Aws::Vector<ContextEntry>>
323 SetContextEntries(std::forward<ContextEntriesT>(value));
324 return *this;
325 }
326 template <typename ContextEntriesT = ContextEntry>
328 m_contextEntriesHasBeenSet = true;
329 m_contextEntries.emplace_back(std::forward<ContextEntriesT>(value));
330 return *this;
331 }
333
335
358 inline const Aws::String& GetResourceHandlingOption() const { return m_resourceHandlingOption; }
359 inline bool ResourceHandlingOptionHasBeenSet() const { return m_resourceHandlingOptionHasBeenSet; }
360 template <typename ResourceHandlingOptionT = Aws::String>
361 void SetResourceHandlingOption(ResourceHandlingOptionT&& value) {
362 m_resourceHandlingOptionHasBeenSet = true;
363 m_resourceHandlingOption = std::forward<ResourceHandlingOptionT>(value);
364 }
365 template <typename ResourceHandlingOptionT = Aws::String>
367 SetResourceHandlingOption(std::forward<ResourceHandlingOptionT>(value));
368 return *this;
369 }
371
373
383 inline int GetMaxItems() const { return m_maxItems; }
384 inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; }
385 inline void SetMaxItems(int value) {
386 m_maxItemsHasBeenSet = true;
387 m_maxItems = value;
388 }
390 SetMaxItems(value);
391 return *this;
392 }
394
396
402 inline const Aws::String& GetMarker() const { return m_marker; }
403 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
404 template <typename MarkerT = Aws::String>
405 void SetMarker(MarkerT&& value) {
406 m_markerHasBeenSet = true;
407 m_marker = std::forward<MarkerT>(value);
408 }
409 template <typename MarkerT = Aws::String>
411 SetMarker(std::forward<MarkerT>(value));
412 return *this;
413 }
415 private:
416 Aws::String m_policySourceArn;
417
418 Aws::Vector<Aws::String> m_policyInputList;
419
420 Aws::Vector<Aws::String> m_permissionsBoundaryPolicyInputList;
421
422 Aws::Vector<Aws::String> m_actionNames;
423
424 Aws::Vector<Aws::String> m_resourceArns;
425
426 Aws::String m_resourcePolicy;
427
428 Aws::String m_resourceOwner;
429
430 Aws::String m_callerArn;
431
432 Aws::Vector<ContextEntry> m_contextEntries;
433
434 Aws::String m_resourceHandlingOption;
435
436 int m_maxItems{0};
437
438 Aws::String m_marker;
439 bool m_policySourceArnHasBeenSet = false;
440 bool m_policyInputListHasBeenSet = false;
441 bool m_permissionsBoundaryPolicyInputListHasBeenSet = false;
442 bool m_actionNamesHasBeenSet = false;
443 bool m_resourceArnsHasBeenSet = false;
444 bool m_resourcePolicyHasBeenSet = false;
445 bool m_resourceOwnerHasBeenSet = false;
446 bool m_callerArnHasBeenSet = false;
447 bool m_contextEntriesHasBeenSet = false;
448 bool m_resourceHandlingOptionHasBeenSet = false;
449 bool m_maxItemsHasBeenSet = false;
450 bool m_markerHasBeenSet = false;
451};
452
453} // namespace Model
454} // namespace IAM
455} // namespace Aws
SimulatePrincipalPolicyRequest & AddResourceArns(ResourceArnsT &&value)
const Aws::Vector< Aws::String > & GetPermissionsBoundaryPolicyInputList() const
SimulatePrincipalPolicyRequest & WithMaxItems(int value)
const Aws::Vector< Aws::String > & GetResourceArns() const
SimulatePrincipalPolicyRequest & WithPolicyInputList(PolicyInputListT &&value)
SimulatePrincipalPolicyRequest & WithCallerArn(CallerArnT &&value)
SimulatePrincipalPolicyRequest & WithResourceHandlingOption(ResourceHandlingOptionT &&value)
SimulatePrincipalPolicyRequest & WithContextEntries(ContextEntriesT &&value)
SimulatePrincipalPolicyRequest & WithPolicySourceArn(PolicySourceArnT &&value)
virtual const char * GetServiceRequestName() const override
SimulatePrincipalPolicyRequest & AddActionNames(ActionNamesT &&value)
AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetPermissionsBoundaryPolicyInputList(PermissionsBoundaryPolicyInputListT &&value)
const Aws::Vector< ContextEntry > & GetContextEntries() const
SimulatePrincipalPolicyRequest & AddPermissionsBoundaryPolicyInputList(PermissionsBoundaryPolicyInputListT &&value)
SimulatePrincipalPolicyRequest & AddContextEntries(ContextEntriesT &&value)
SimulatePrincipalPolicyRequest & WithPermissionsBoundaryPolicyInputList(PermissionsBoundaryPolicyInputListT &&value)
SimulatePrincipalPolicyRequest & WithResourcePolicy(ResourcePolicyT &&value)
const Aws::Vector< Aws::String > & GetActionNames() const
void SetResourceHandlingOption(ResourceHandlingOptionT &&value)
SimulatePrincipalPolicyRequest & WithResourceOwner(ResourceOwnerT &&value)
SimulatePrincipalPolicyRequest & WithActionNames(ActionNamesT &&value)
const Aws::Vector< Aws::String > & GetPolicyInputList() const
SimulatePrincipalPolicyRequest & WithResourceArns(ResourceArnsT &&value)
SimulatePrincipalPolicyRequest & WithMarker(MarkerT &&value)
AWS_IAM_API Aws::String SerializePayload() const override
SimulatePrincipalPolicyRequest & AddPolicyInputList(PolicyInputListT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector