AWS SDK for C++

AWS SDK for C++ Version 1.11.867

Loading...
Searching...
No Matches
SimulateCustomPolicyRequest.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#include <aws/iam/model/OrderedOrganizationPolicyType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace IAM {
18namespace Model {
19
23 public:
24 AWS_IAM_API SimulateCustomPolicyRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "SimulateCustomPolicy"; }
31
32 AWS_IAM_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
36
37 public:
39
65 inline const Aws::Vector<Aws::String>& GetPolicyInputList() const { return m_policyInputList; }
66 inline bool PolicyInputListHasBeenSet() const { return m_policyInputListHasBeenSet; }
67 template <typename PolicyInputListT = Aws::Vector<Aws::String>>
68 void SetPolicyInputList(PolicyInputListT&& value) {
69 m_policyInputListHasBeenSet = true;
70 m_policyInputList = std::forward<PolicyInputListT>(value);
71 }
72 template <typename PolicyInputListT = Aws::Vector<Aws::String>>
74 SetPolicyInputList(std::forward<PolicyInputListT>(value));
75 return *this;
76 }
77 template <typename PolicyInputListT = Aws::String>
79 m_policyInputListHasBeenSet = true;
80 m_policyInputList.emplace_back(std::forward<PolicyInputListT>(value));
81 return *this;
82 }
84
86
109 inline const Aws::Vector<Aws::String>& GetPermissionsBoundaryPolicyInputList() const { return m_permissionsBoundaryPolicyInputList; }
110 inline bool PermissionsBoundaryPolicyInputListHasBeenSet() const { return m_permissionsBoundaryPolicyInputListHasBeenSet; }
111 template <typename PermissionsBoundaryPolicyInputListT = Aws::Vector<Aws::String>>
112 void SetPermissionsBoundaryPolicyInputList(PermissionsBoundaryPolicyInputListT&& value) {
113 m_permissionsBoundaryPolicyInputListHasBeenSet = true;
114 m_permissionsBoundaryPolicyInputList = std::forward<PermissionsBoundaryPolicyInputListT>(value);
115 }
116 template <typename PermissionsBoundaryPolicyInputListT = Aws::Vector<Aws::String>>
117 SimulateCustomPolicyRequest& WithPermissionsBoundaryPolicyInputList(PermissionsBoundaryPolicyInputListT&& value) {
118 SetPermissionsBoundaryPolicyInputList(std::forward<PermissionsBoundaryPolicyInputListT>(value));
119 return *this;
120 }
121 template <typename PermissionsBoundaryPolicyInputListT = Aws::String>
122 SimulateCustomPolicyRequest& AddPermissionsBoundaryPolicyInputList(PermissionsBoundaryPolicyInputListT&& value) {
123 m_permissionsBoundaryPolicyInputListHasBeenSet = true;
124 m_permissionsBoundaryPolicyInputList.emplace_back(std::forward<PermissionsBoundaryPolicyInputListT>(value));
125 return *this;
126 }
128
130
142 return m_orderedOrganizationPolicyInputList;
143 }
144 inline bool OrderedOrganizationPolicyInputListHasBeenSet() const { return m_orderedOrganizationPolicyInputListHasBeenSet; }
145 template <typename OrderedOrganizationPolicyInputListT = Aws::Vector<OrderedOrganizationPolicyType>>
146 void SetOrderedOrganizationPolicyInputList(OrderedOrganizationPolicyInputListT&& value) {
147 m_orderedOrganizationPolicyInputListHasBeenSet = true;
148 m_orderedOrganizationPolicyInputList = std::forward<OrderedOrganizationPolicyInputListT>(value);
149 }
150 template <typename OrderedOrganizationPolicyInputListT = Aws::Vector<OrderedOrganizationPolicyType>>
151 SimulateCustomPolicyRequest& WithOrderedOrganizationPolicyInputList(OrderedOrganizationPolicyInputListT&& value) {
152 SetOrderedOrganizationPolicyInputList(std::forward<OrderedOrganizationPolicyInputListT>(value));
153 return *this;
154 }
155 template <typename OrderedOrganizationPolicyInputListT = OrderedOrganizationPolicyType>
156 SimulateCustomPolicyRequest& AddOrderedOrganizationPolicyInputList(OrderedOrganizationPolicyInputListT&& value) {
157 m_orderedOrganizationPolicyInputListHasBeenSet = true;
158 m_orderedOrganizationPolicyInputList.emplace_back(std::forward<OrderedOrganizationPolicyInputListT>(value));
159 return *this;
160 }
162
164
170 inline const Aws::Vector<Aws::String>& GetActionNames() const { return m_actionNames; }
171 inline bool ActionNamesHasBeenSet() const { return m_actionNamesHasBeenSet; }
172 template <typename ActionNamesT = Aws::Vector<Aws::String>>
173 void SetActionNames(ActionNamesT&& value) {
174 m_actionNamesHasBeenSet = true;
175 m_actionNames = std::forward<ActionNamesT>(value);
176 }
177 template <typename ActionNamesT = Aws::Vector<Aws::String>>
179 SetActionNames(std::forward<ActionNamesT>(value));
180 return *this;
181 }
182 template <typename ActionNamesT = Aws::String>
184 m_actionNamesHasBeenSet = true;
185 m_actionNames.emplace_back(std::forward<ActionNamesT>(value));
186 return *this;
187 }
189
191
209 inline const Aws::Vector<Aws::String>& GetResourceArns() const { return m_resourceArns; }
210 inline bool ResourceArnsHasBeenSet() const { return m_resourceArnsHasBeenSet; }
211 template <typename ResourceArnsT = Aws::Vector<Aws::String>>
212 void SetResourceArns(ResourceArnsT&& value) {
213 m_resourceArnsHasBeenSet = true;
214 m_resourceArns = std::forward<ResourceArnsT>(value);
215 }
216 template <typename ResourceArnsT = Aws::Vector<Aws::String>>
218 SetResourceArns(std::forward<ResourceArnsT>(value));
219 return *this;
220 }
221 template <typename ResourceArnsT = Aws::String>
223 m_resourceArnsHasBeenSet = true;
224 m_resourceArns.emplace_back(std::forward<ResourceArnsT>(value));
225 return *this;
226 }
228
230
249 inline const Aws::String& GetResourcePolicy() const { return m_resourcePolicy; }
250 inline bool ResourcePolicyHasBeenSet() const { return m_resourcePolicyHasBeenSet; }
251 template <typename ResourcePolicyT = Aws::String>
252 void SetResourcePolicy(ResourcePolicyT&& value) {
253 m_resourcePolicyHasBeenSet = true;
254 m_resourcePolicy = std::forward<ResourcePolicyT>(value);
255 }
256 template <typename ResourcePolicyT = Aws::String>
258 SetResourcePolicy(std::forward<ResourcePolicyT>(value));
259 return *this;
260 }
262
264
280 inline const Aws::String& GetResourceOwner() const { return m_resourceOwner; }
281 inline bool ResourceOwnerHasBeenSet() const { return m_resourceOwnerHasBeenSet; }
282 template <typename ResourceOwnerT = Aws::String>
283 void SetResourceOwner(ResourceOwnerT&& value) {
284 m_resourceOwnerHasBeenSet = true;
285 m_resourceOwner = std::forward<ResourceOwnerT>(value);
286 }
287 template <typename ResourceOwnerT = Aws::String>
289 SetResourceOwner(std::forward<ResourceOwnerT>(value));
290 return *this;
291 }
293
295
302 inline const Aws::String& GetCallerArn() const { return m_callerArn; }
303 inline bool CallerArnHasBeenSet() const { return m_callerArnHasBeenSet; }
304 template <typename CallerArnT = Aws::String>
305 void SetCallerArn(CallerArnT&& value) {
306 m_callerArnHasBeenSet = true;
307 m_callerArn = std::forward<CallerArnT>(value);
308 }
309 template <typename CallerArnT = Aws::String>
311 SetCallerArn(std::forward<CallerArnT>(value));
312 return *this;
313 }
315
317
322 inline const Aws::Vector<ContextEntry>& GetContextEntries() const { return m_contextEntries; }
323 inline bool ContextEntriesHasBeenSet() const { return m_contextEntriesHasBeenSet; }
324 template <typename ContextEntriesT = Aws::Vector<ContextEntry>>
325 void SetContextEntries(ContextEntriesT&& value) {
326 m_contextEntriesHasBeenSet = true;
327 m_contextEntries = std::forward<ContextEntriesT>(value);
328 }
329 template <typename ContextEntriesT = Aws::Vector<ContextEntry>>
331 SetContextEntries(std::forward<ContextEntriesT>(value));
332 return *this;
333 }
334 template <typename ContextEntriesT = ContextEntry>
336 m_contextEntriesHasBeenSet = true;
337 m_contextEntries.emplace_back(std::forward<ContextEntriesT>(value));
338 return *this;
339 }
341
343
366 inline const Aws::String& GetResourceHandlingOption() const { return m_resourceHandlingOption; }
367 inline bool ResourceHandlingOptionHasBeenSet() const { return m_resourceHandlingOptionHasBeenSet; }
368 template <typename ResourceHandlingOptionT = Aws::String>
369 void SetResourceHandlingOption(ResourceHandlingOptionT&& value) {
370 m_resourceHandlingOptionHasBeenSet = true;
371 m_resourceHandlingOption = std::forward<ResourceHandlingOptionT>(value);
372 }
373 template <typename ResourceHandlingOptionT = Aws::String>
374 SimulateCustomPolicyRequest& WithResourceHandlingOption(ResourceHandlingOptionT&& value) {
375 SetResourceHandlingOption(std::forward<ResourceHandlingOptionT>(value));
376 return *this;
377 }
379
381
391 inline int GetMaxItems() const { return m_maxItems; }
392 inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; }
393 inline void SetMaxItems(int value) {
394 m_maxItemsHasBeenSet = true;
395 m_maxItems = value;
396 }
398 SetMaxItems(value);
399 return *this;
400 }
402
404
410 inline const Aws::String& GetMarker() const { return m_marker; }
411 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
412 template <typename MarkerT = Aws::String>
413 void SetMarker(MarkerT&& value) {
414 m_markerHasBeenSet = true;
415 m_marker = std::forward<MarkerT>(value);
416 }
417 template <typename MarkerT = Aws::String>
419 SetMarker(std::forward<MarkerT>(value));
420 return *this;
421 }
423 private:
424 Aws::Vector<Aws::String> m_policyInputList;
425
426 Aws::Vector<Aws::String> m_permissionsBoundaryPolicyInputList;
427
428 Aws::Vector<OrderedOrganizationPolicyType> m_orderedOrganizationPolicyInputList;
429
430 Aws::Vector<Aws::String> m_actionNames;
431
432 Aws::Vector<Aws::String> m_resourceArns;
433
434 Aws::String m_resourcePolicy;
435
436 Aws::String m_resourceOwner;
437
438 Aws::String m_callerArn;
439
440 Aws::Vector<ContextEntry> m_contextEntries;
441
442 Aws::String m_resourceHandlingOption;
443
444 int m_maxItems{0};
445
446 Aws::String m_marker;
447 bool m_policyInputListHasBeenSet = false;
448 bool m_permissionsBoundaryPolicyInputListHasBeenSet = false;
449 bool m_orderedOrganizationPolicyInputListHasBeenSet = false;
450 bool m_actionNamesHasBeenSet = false;
451 bool m_resourceArnsHasBeenSet = false;
452 bool m_resourcePolicyHasBeenSet = false;
453 bool m_resourceOwnerHasBeenSet = false;
454 bool m_callerArnHasBeenSet = false;
455 bool m_contextEntriesHasBeenSet = false;
456 bool m_resourceHandlingOptionHasBeenSet = false;
457 bool m_maxItemsHasBeenSet = false;
458 bool m_markerHasBeenSet = false;
459};
460
461} // namespace Model
462} // namespace IAM
463} // namespace Aws
SimulateCustomPolicyRequest & AddActionNames(ActionNamesT &&value)
SimulateCustomPolicyRequest & AddResourceArns(ResourceArnsT &&value)
const Aws::Vector< Aws::String > & GetPermissionsBoundaryPolicyInputList() const
SimulateCustomPolicyRequest & WithContextEntries(ContextEntriesT &&value)
SimulateCustomPolicyRequest & WithResourceHandlingOption(ResourceHandlingOptionT &&value)
SimulateCustomPolicyRequest & AddPermissionsBoundaryPolicyInputList(PermissionsBoundaryPolicyInputListT &&value)
void SetOrderedOrganizationPolicyInputList(OrderedOrganizationPolicyInputListT &&value)
AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
SimulateCustomPolicyRequest & AddOrderedOrganizationPolicyInputList(OrderedOrganizationPolicyInputListT &&value)
AWS_IAM_API SimulateCustomPolicyRequest()=default
AWS_IAM_API Aws::String SerializePayload() const override
SimulateCustomPolicyRequest & WithResourcePolicy(ResourcePolicyT &&value)
void SetResourceHandlingOption(ResourceHandlingOptionT &&value)
SimulateCustomPolicyRequest & WithActionNames(ActionNamesT &&value)
SimulateCustomPolicyRequest & WithPermissionsBoundaryPolicyInputList(PermissionsBoundaryPolicyInputListT &&value)
SimulateCustomPolicyRequest & AddContextEntries(ContextEntriesT &&value)
const Aws::Vector< Aws::String > & GetResourceArns() const
SimulateCustomPolicyRequest & WithPolicyInputList(PolicyInputListT &&value)
const Aws::Vector< Aws::String > & GetPolicyInputList() const
SimulateCustomPolicyRequest & WithResourceArns(ResourceArnsT &&value)
SimulateCustomPolicyRequest & WithCallerArn(CallerArnT &&value)
const Aws::Vector< Aws::String > & GetActionNames() const
SimulateCustomPolicyRequest & WithMaxItems(int value)
const Aws::Vector< OrderedOrganizationPolicyType > & GetOrderedOrganizationPolicyInputList() const
void SetPermissionsBoundaryPolicyInputList(PermissionsBoundaryPolicyInputListT &&value)
virtual const char * GetServiceRequestName() const override
SimulateCustomPolicyRequest & WithOrderedOrganizationPolicyInputList(OrderedOrganizationPolicyInputListT &&value)
const Aws::Vector< ContextEntry > & GetContextEntries() const
SimulateCustomPolicyRequest & WithResourceOwner(ResourceOwnerT &&value)
SimulateCustomPolicyRequest & WithMarker(MarkerT &&value)
SimulateCustomPolicyRequest & AddPolicyInputList(PolicyInputListT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector