AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
13#include <utility>
14
15namespace Aws {
16namespace IAM {
17namespace Model {
18
22 public:
23 AWS_IAM_API SimulateCustomPolicyRequest() = 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 "SimulateCustomPolicy"; }
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
64 inline const Aws::Vector<Aws::String>& GetPolicyInputList() const { return m_policyInputList; }
65 inline bool PolicyInputListHasBeenSet() const { return m_policyInputListHasBeenSet; }
66 template <typename PolicyInputListT = Aws::Vector<Aws::String>>
67 void SetPolicyInputList(PolicyInputListT&& value) {
68 m_policyInputListHasBeenSet = true;
69 m_policyInputList = std::forward<PolicyInputListT>(value);
70 }
71 template <typename PolicyInputListT = Aws::Vector<Aws::String>>
73 SetPolicyInputList(std::forward<PolicyInputListT>(value));
74 return *this;
75 }
76 template <typename PolicyInputListT = Aws::String>
78 m_policyInputListHasBeenSet = true;
79 m_policyInputList.emplace_back(std::forward<PolicyInputListT>(value));
80 return *this;
81 }
83
85
108 inline const Aws::Vector<Aws::String>& GetPermissionsBoundaryPolicyInputList() const { return m_permissionsBoundaryPolicyInputList; }
109 inline bool PermissionsBoundaryPolicyInputListHasBeenSet() const { return m_permissionsBoundaryPolicyInputListHasBeenSet; }
110 template <typename PermissionsBoundaryPolicyInputListT = Aws::Vector<Aws::String>>
111 void SetPermissionsBoundaryPolicyInputList(PermissionsBoundaryPolicyInputListT&& value) {
112 m_permissionsBoundaryPolicyInputListHasBeenSet = true;
113 m_permissionsBoundaryPolicyInputList = std::forward<PermissionsBoundaryPolicyInputListT>(value);
114 }
115 template <typename PermissionsBoundaryPolicyInputListT = Aws::Vector<Aws::String>>
116 SimulateCustomPolicyRequest& WithPermissionsBoundaryPolicyInputList(PermissionsBoundaryPolicyInputListT&& value) {
117 SetPermissionsBoundaryPolicyInputList(std::forward<PermissionsBoundaryPolicyInputListT>(value));
118 return *this;
119 }
120 template <typename PermissionsBoundaryPolicyInputListT = Aws::String>
121 SimulateCustomPolicyRequest& AddPermissionsBoundaryPolicyInputList(PermissionsBoundaryPolicyInputListT&& value) {
122 m_permissionsBoundaryPolicyInputListHasBeenSet = true;
123 m_permissionsBoundaryPolicyInputList.emplace_back(std::forward<PermissionsBoundaryPolicyInputListT>(value));
124 return *this;
125 }
127
129
135 inline const Aws::Vector<Aws::String>& GetActionNames() const { return m_actionNames; }
136 inline bool ActionNamesHasBeenSet() const { return m_actionNamesHasBeenSet; }
137 template <typename ActionNamesT = Aws::Vector<Aws::String>>
138 void SetActionNames(ActionNamesT&& value) {
139 m_actionNamesHasBeenSet = true;
140 m_actionNames = std::forward<ActionNamesT>(value);
141 }
142 template <typename ActionNamesT = Aws::Vector<Aws::String>>
144 SetActionNames(std::forward<ActionNamesT>(value));
145 return *this;
146 }
147 template <typename ActionNamesT = Aws::String>
149 m_actionNamesHasBeenSet = true;
150 m_actionNames.emplace_back(std::forward<ActionNamesT>(value));
151 return *this;
152 }
154
156
174 inline const Aws::Vector<Aws::String>& GetResourceArns() const { return m_resourceArns; }
175 inline bool ResourceArnsHasBeenSet() const { return m_resourceArnsHasBeenSet; }
176 template <typename ResourceArnsT = Aws::Vector<Aws::String>>
177 void SetResourceArns(ResourceArnsT&& value) {
178 m_resourceArnsHasBeenSet = true;
179 m_resourceArns = std::forward<ResourceArnsT>(value);
180 }
181 template <typename ResourceArnsT = Aws::Vector<Aws::String>>
183 SetResourceArns(std::forward<ResourceArnsT>(value));
184 return *this;
185 }
186 template <typename ResourceArnsT = Aws::String>
188 m_resourceArnsHasBeenSet = true;
189 m_resourceArns.emplace_back(std::forward<ResourceArnsT>(value));
190 return *this;
191 }
193
195
214 inline const Aws::String& GetResourcePolicy() const { return m_resourcePolicy; }
215 inline bool ResourcePolicyHasBeenSet() const { return m_resourcePolicyHasBeenSet; }
216 template <typename ResourcePolicyT = Aws::String>
217 void SetResourcePolicy(ResourcePolicyT&& value) {
218 m_resourcePolicyHasBeenSet = true;
219 m_resourcePolicy = std::forward<ResourcePolicyT>(value);
220 }
221 template <typename ResourcePolicyT = Aws::String>
223 SetResourcePolicy(std::forward<ResourcePolicyT>(value));
224 return *this;
225 }
227
229
245 inline const Aws::String& GetResourceOwner() const { return m_resourceOwner; }
246 inline bool ResourceOwnerHasBeenSet() const { return m_resourceOwnerHasBeenSet; }
247 template <typename ResourceOwnerT = Aws::String>
248 void SetResourceOwner(ResourceOwnerT&& value) {
249 m_resourceOwnerHasBeenSet = true;
250 m_resourceOwner = std::forward<ResourceOwnerT>(value);
251 }
252 template <typename ResourceOwnerT = Aws::String>
254 SetResourceOwner(std::forward<ResourceOwnerT>(value));
255 return *this;
256 }
258
260
268 inline const Aws::String& GetCallerArn() const { return m_callerArn; }
269 inline bool CallerArnHasBeenSet() const { return m_callerArnHasBeenSet; }
270 template <typename CallerArnT = Aws::String>
271 void SetCallerArn(CallerArnT&& value) {
272 m_callerArnHasBeenSet = true;
273 m_callerArn = std::forward<CallerArnT>(value);
274 }
275 template <typename CallerArnT = Aws::String>
277 SetCallerArn(std::forward<CallerArnT>(value));
278 return *this;
279 }
281
283
288 inline const Aws::Vector<ContextEntry>& GetContextEntries() const { return m_contextEntries; }
289 inline bool ContextEntriesHasBeenSet() const { return m_contextEntriesHasBeenSet; }
290 template <typename ContextEntriesT = Aws::Vector<ContextEntry>>
291 void SetContextEntries(ContextEntriesT&& value) {
292 m_contextEntriesHasBeenSet = true;
293 m_contextEntries = std::forward<ContextEntriesT>(value);
294 }
295 template <typename ContextEntriesT = Aws::Vector<ContextEntry>>
297 SetContextEntries(std::forward<ContextEntriesT>(value));
298 return *this;
299 }
300 template <typename ContextEntriesT = ContextEntry>
302 m_contextEntriesHasBeenSet = true;
303 m_contextEntries.emplace_back(std::forward<ContextEntriesT>(value));
304 return *this;
305 }
307
309
332 inline const Aws::String& GetResourceHandlingOption() const { return m_resourceHandlingOption; }
333 inline bool ResourceHandlingOptionHasBeenSet() const { return m_resourceHandlingOptionHasBeenSet; }
334 template <typename ResourceHandlingOptionT = Aws::String>
335 void SetResourceHandlingOption(ResourceHandlingOptionT&& value) {
336 m_resourceHandlingOptionHasBeenSet = true;
337 m_resourceHandlingOption = std::forward<ResourceHandlingOptionT>(value);
338 }
339 template <typename ResourceHandlingOptionT = Aws::String>
340 SimulateCustomPolicyRequest& WithResourceHandlingOption(ResourceHandlingOptionT&& value) {
341 SetResourceHandlingOption(std::forward<ResourceHandlingOptionT>(value));
342 return *this;
343 }
345
347
357 inline int GetMaxItems() const { return m_maxItems; }
358 inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; }
359 inline void SetMaxItems(int value) {
360 m_maxItemsHasBeenSet = true;
361 m_maxItems = value;
362 }
364 SetMaxItems(value);
365 return *this;
366 }
368
370
376 inline const Aws::String& GetMarker() const { return m_marker; }
377 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
378 template <typename MarkerT = Aws::String>
379 void SetMarker(MarkerT&& value) {
380 m_markerHasBeenSet = true;
381 m_marker = std::forward<MarkerT>(value);
382 }
383 template <typename MarkerT = Aws::String>
385 SetMarker(std::forward<MarkerT>(value));
386 return *this;
387 }
389 private:
390 Aws::Vector<Aws::String> m_policyInputList;
391
392 Aws::Vector<Aws::String> m_permissionsBoundaryPolicyInputList;
393
394 Aws::Vector<Aws::String> m_actionNames;
395
396 Aws::Vector<Aws::String> m_resourceArns;
397
398 Aws::String m_resourcePolicy;
399
400 Aws::String m_resourceOwner;
401
402 Aws::String m_callerArn;
403
404 Aws::Vector<ContextEntry> m_contextEntries;
405
406 Aws::String m_resourceHandlingOption;
407
408 int m_maxItems{0};
409
410 Aws::String m_marker;
411 bool m_policyInputListHasBeenSet = false;
412 bool m_permissionsBoundaryPolicyInputListHasBeenSet = false;
413 bool m_actionNamesHasBeenSet = false;
414 bool m_resourceArnsHasBeenSet = false;
415 bool m_resourcePolicyHasBeenSet = false;
416 bool m_resourceOwnerHasBeenSet = false;
417 bool m_callerArnHasBeenSet = false;
418 bool m_contextEntriesHasBeenSet = false;
419 bool m_resourceHandlingOptionHasBeenSet = false;
420 bool m_maxItemsHasBeenSet = false;
421 bool m_markerHasBeenSet = false;
422};
423
424} // namespace Model
425} // namespace IAM
426} // 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)
AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
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)
void SetPermissionsBoundaryPolicyInputList(PermissionsBoundaryPolicyInputListT &&value)
virtual const char * GetServiceRequestName() const override
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