AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SimulatePrincipalPolicyRequest.h
1
6#pragma once
7#include <aws/iam/IAM_EXPORTS.h>
8#include <aws/iam/IAMRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/iam/model/ContextEntry.h>
12#include <utility>
13
14namespace Aws
15{
16namespace IAM
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "SimulatePrincipalPolicy"; }
33
34 AWS_IAM_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
57 inline const Aws::String& GetPolicySourceArn() const{ return m_policySourceArn; }
58 inline bool PolicySourceArnHasBeenSet() const { return m_policySourceArnHasBeenSet; }
59 inline void SetPolicySourceArn(const Aws::String& value) { m_policySourceArnHasBeenSet = true; m_policySourceArn = value; }
60 inline void SetPolicySourceArn(Aws::String&& value) { m_policySourceArnHasBeenSet = true; m_policySourceArn = std::move(value); }
61 inline void SetPolicySourceArn(const char* value) { m_policySourceArnHasBeenSet = true; m_policySourceArn.assign(value); }
63 inline SimulatePrincipalPolicyRequest& WithPolicySourceArn(Aws::String&& value) { SetPolicySourceArn(std::move(value)); return *this;}
64 inline SimulatePrincipalPolicyRequest& WithPolicySourceArn(const char* value) { SetPolicySourceArn(value); return *this;}
66
68
80 inline const Aws::Vector<Aws::String>& GetPolicyInputList() const{ return m_policyInputList; }
81 inline bool PolicyInputListHasBeenSet() const { return m_policyInputListHasBeenSet; }
82 inline void SetPolicyInputList(const Aws::Vector<Aws::String>& value) { m_policyInputListHasBeenSet = true; m_policyInputList = value; }
83 inline void SetPolicyInputList(Aws::Vector<Aws::String>&& value) { m_policyInputListHasBeenSet = true; m_policyInputList = std::move(value); }
86 inline SimulatePrincipalPolicyRequest& AddPolicyInputList(const Aws::String& value) { m_policyInputListHasBeenSet = true; m_policyInputList.push_back(value); return *this; }
87 inline SimulatePrincipalPolicyRequest& AddPolicyInputList(Aws::String&& value) { m_policyInputListHasBeenSet = true; m_policyInputList.push_back(std::move(value)); return *this; }
88 inline SimulatePrincipalPolicyRequest& AddPolicyInputList(const char* value) { m_policyInputListHasBeenSet = true; m_policyInputList.push_back(value); return *this; }
90
92
119 inline const Aws::Vector<Aws::String>& GetPermissionsBoundaryPolicyInputList() const{ return m_permissionsBoundaryPolicyInputList; }
120 inline bool PermissionsBoundaryPolicyInputListHasBeenSet() const { return m_permissionsBoundaryPolicyInputListHasBeenSet; }
121 inline void SetPermissionsBoundaryPolicyInputList(const Aws::Vector<Aws::String>& value) { m_permissionsBoundaryPolicyInputListHasBeenSet = true; m_permissionsBoundaryPolicyInputList = value; }
122 inline void SetPermissionsBoundaryPolicyInputList(Aws::Vector<Aws::String>&& value) { m_permissionsBoundaryPolicyInputListHasBeenSet = true; m_permissionsBoundaryPolicyInputList = std::move(value); }
125 inline SimulatePrincipalPolicyRequest& AddPermissionsBoundaryPolicyInputList(const Aws::String& value) { m_permissionsBoundaryPolicyInputListHasBeenSet = true; m_permissionsBoundaryPolicyInputList.push_back(value); return *this; }
126 inline SimulatePrincipalPolicyRequest& AddPermissionsBoundaryPolicyInputList(Aws::String&& value) { m_permissionsBoundaryPolicyInputListHasBeenSet = true; m_permissionsBoundaryPolicyInputList.push_back(std::move(value)); return *this; }
127 inline SimulatePrincipalPolicyRequest& AddPermissionsBoundaryPolicyInputList(const char* value) { m_permissionsBoundaryPolicyInputListHasBeenSet = true; m_permissionsBoundaryPolicyInputList.push_back(value); return *this; }
129
131
136 inline const Aws::Vector<Aws::String>& GetActionNames() const{ return m_actionNames; }
137 inline bool ActionNamesHasBeenSet() const { return m_actionNamesHasBeenSet; }
138 inline void SetActionNames(const Aws::Vector<Aws::String>& value) { m_actionNamesHasBeenSet = true; m_actionNames = value; }
139 inline void SetActionNames(Aws::Vector<Aws::String>&& value) { m_actionNamesHasBeenSet = true; m_actionNames = std::move(value); }
142 inline SimulatePrincipalPolicyRequest& AddActionNames(const Aws::String& value) { m_actionNamesHasBeenSet = true; m_actionNames.push_back(value); return *this; }
143 inline SimulatePrincipalPolicyRequest& AddActionNames(Aws::String&& value) { m_actionNamesHasBeenSet = true; m_actionNames.push_back(std::move(value)); return *this; }
144 inline SimulatePrincipalPolicyRequest& AddActionNames(const char* value) { m_actionNamesHasBeenSet = true; m_actionNames.push_back(value); return *this; }
146
148
164 inline const Aws::Vector<Aws::String>& GetResourceArns() const{ return m_resourceArns; }
165 inline bool ResourceArnsHasBeenSet() const { return m_resourceArnsHasBeenSet; }
166 inline void SetResourceArns(const Aws::Vector<Aws::String>& value) { m_resourceArnsHasBeenSet = true; m_resourceArns = value; }
167 inline void SetResourceArns(Aws::Vector<Aws::String>&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns = std::move(value); }
170 inline SimulatePrincipalPolicyRequest& AddResourceArns(const Aws::String& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(value); return *this; }
171 inline SimulatePrincipalPolicyRequest& AddResourceArns(Aws::String&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(std::move(value)); return *this; }
172 inline SimulatePrincipalPolicyRequest& AddResourceArns(const char* value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(value); return *this; }
174
176
195 inline const Aws::String& GetResourcePolicy() const{ return m_resourcePolicy; }
196 inline bool ResourcePolicyHasBeenSet() const { return m_resourcePolicyHasBeenSet; }
197 inline void SetResourcePolicy(const Aws::String& value) { m_resourcePolicyHasBeenSet = true; m_resourcePolicy = value; }
198 inline void SetResourcePolicy(Aws::String&& value) { m_resourcePolicyHasBeenSet = true; m_resourcePolicy = std::move(value); }
199 inline void SetResourcePolicy(const char* value) { m_resourcePolicyHasBeenSet = true; m_resourcePolicy.assign(value); }
201 inline SimulatePrincipalPolicyRequest& WithResourcePolicy(Aws::String&& value) { SetResourcePolicy(std::move(value)); return *this;}
202 inline SimulatePrincipalPolicyRequest& WithResourcePolicy(const char* value) { SetResourcePolicy(value); return *this;}
204
206
219 inline const Aws::String& GetResourceOwner() const{ return m_resourceOwner; }
220 inline bool ResourceOwnerHasBeenSet() const { return m_resourceOwnerHasBeenSet; }
221 inline void SetResourceOwner(const Aws::String& value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner = value; }
222 inline void SetResourceOwner(Aws::String&& value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner = std::move(value); }
223 inline void SetResourceOwner(const char* value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner.assign(value); }
225 inline SimulatePrincipalPolicyRequest& WithResourceOwner(Aws::String&& value) { SetResourceOwner(std::move(value)); return *this;}
226 inline SimulatePrincipalPolicyRequest& WithResourceOwner(const char* value) { SetResourceOwner(value); return *this;}
228
230
250 inline const Aws::String& GetCallerArn() const{ return m_callerArn; }
251 inline bool CallerArnHasBeenSet() const { return m_callerArnHasBeenSet; }
252 inline void SetCallerArn(const Aws::String& value) { m_callerArnHasBeenSet = true; m_callerArn = value; }
253 inline void SetCallerArn(Aws::String&& value) { m_callerArnHasBeenSet = true; m_callerArn = std::move(value); }
254 inline void SetCallerArn(const char* value) { m_callerArnHasBeenSet = true; m_callerArn.assign(value); }
255 inline SimulatePrincipalPolicyRequest& WithCallerArn(const Aws::String& value) { SetCallerArn(value); return *this;}
256 inline SimulatePrincipalPolicyRequest& WithCallerArn(Aws::String&& value) { SetCallerArn(std::move(value)); return *this;}
257 inline SimulatePrincipalPolicyRequest& WithCallerArn(const char* value) { SetCallerArn(value); return *this;}
259
261
266 inline const Aws::Vector<ContextEntry>& GetContextEntries() const{ return m_contextEntries; }
267 inline bool ContextEntriesHasBeenSet() const { return m_contextEntriesHasBeenSet; }
268 inline void SetContextEntries(const Aws::Vector<ContextEntry>& value) { m_contextEntriesHasBeenSet = true; m_contextEntries = value; }
269 inline void SetContextEntries(Aws::Vector<ContextEntry>&& value) { m_contextEntriesHasBeenSet = true; m_contextEntries = std::move(value); }
272 inline SimulatePrincipalPolicyRequest& AddContextEntries(const ContextEntry& value) { m_contextEntriesHasBeenSet = true; m_contextEntries.push_back(value); return *this; }
273 inline SimulatePrincipalPolicyRequest& AddContextEntries(ContextEntry&& value) { m_contextEntriesHasBeenSet = true; m_contextEntries.push_back(std::move(value)); return *this; }
275
277
300 inline const Aws::String& GetResourceHandlingOption() const{ return m_resourceHandlingOption; }
301 inline bool ResourceHandlingOptionHasBeenSet() const { return m_resourceHandlingOptionHasBeenSet; }
302 inline void SetResourceHandlingOption(const Aws::String& value) { m_resourceHandlingOptionHasBeenSet = true; m_resourceHandlingOption = value; }
303 inline void SetResourceHandlingOption(Aws::String&& value) { m_resourceHandlingOptionHasBeenSet = true; m_resourceHandlingOption = std::move(value); }
304 inline void SetResourceHandlingOption(const char* value) { m_resourceHandlingOptionHasBeenSet = true; m_resourceHandlingOption.assign(value); }
309
311
321 inline int GetMaxItems() const{ return m_maxItems; }
322 inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; }
323 inline void SetMaxItems(int value) { m_maxItemsHasBeenSet = true; m_maxItems = value; }
324 inline SimulatePrincipalPolicyRequest& WithMaxItems(int value) { SetMaxItems(value); return *this;}
326
328
334 inline const Aws::String& GetMarker() const{ return m_marker; }
335 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
336 inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
337 inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
338 inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
339 inline SimulatePrincipalPolicyRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
340 inline SimulatePrincipalPolicyRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
341 inline SimulatePrincipalPolicyRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
343 private:
344
345 Aws::String m_policySourceArn;
346 bool m_policySourceArnHasBeenSet = false;
347
348 Aws::Vector<Aws::String> m_policyInputList;
349 bool m_policyInputListHasBeenSet = false;
350
351 Aws::Vector<Aws::String> m_permissionsBoundaryPolicyInputList;
352 bool m_permissionsBoundaryPolicyInputListHasBeenSet = false;
353
354 Aws::Vector<Aws::String> m_actionNames;
355 bool m_actionNamesHasBeenSet = false;
356
357 Aws::Vector<Aws::String> m_resourceArns;
358 bool m_resourceArnsHasBeenSet = false;
359
360 Aws::String m_resourcePolicy;
361 bool m_resourcePolicyHasBeenSet = false;
362
363 Aws::String m_resourceOwner;
364 bool m_resourceOwnerHasBeenSet = false;
365
366 Aws::String m_callerArn;
367 bool m_callerArnHasBeenSet = false;
368
369 Aws::Vector<ContextEntry> m_contextEntries;
370 bool m_contextEntriesHasBeenSet = false;
371
372 Aws::String m_resourceHandlingOption;
373 bool m_resourceHandlingOptionHasBeenSet = false;
374
375 int m_maxItems;
376 bool m_maxItemsHasBeenSet = false;
377
378 Aws::String m_marker;
379 bool m_markerHasBeenSet = false;
380 };
381
382} // namespace Model
383} // namespace IAM
384} // namespace Aws
SimulatePrincipalPolicyRequest & WithResourcePolicy(const Aws::String &value)
const Aws::Vector< Aws::String > & GetPermissionsBoundaryPolicyInputList() const
SimulatePrincipalPolicyRequest & WithActionNames(Aws::Vector< Aws::String > &&value)
SimulatePrincipalPolicyRequest & WithPermissionsBoundaryPolicyInputList(const Aws::Vector< Aws::String > &value)
void SetPolicyInputList(Aws::Vector< Aws::String > &&value)
SimulatePrincipalPolicyRequest & WithMaxItems(int value)
SimulatePrincipalPolicyRequest & WithCallerArn(Aws::String &&value)
const Aws::Vector< Aws::String > & GetResourceArns() const
void SetPermissionsBoundaryPolicyInputList(Aws::Vector< Aws::String > &&value)
SimulatePrincipalPolicyRequest & WithResourceArns(const Aws::Vector< Aws::String > &value)
SimulatePrincipalPolicyRequest & WithResourcePolicy(const char *value)
void SetActionNames(const Aws::Vector< Aws::String > &value)
SimulatePrincipalPolicyRequest & WithResourceOwner(const Aws::String &value)
SimulatePrincipalPolicyRequest & AddPermissionsBoundaryPolicyInputList(const char *value)
SimulatePrincipalPolicyRequest & WithPolicySourceArn(const Aws::String &value)
SimulatePrincipalPolicyRequest & AddPermissionsBoundaryPolicyInputList(Aws::String &&value)
SimulatePrincipalPolicyRequest & AddPermissionsBoundaryPolicyInputList(const Aws::String &value)
SimulatePrincipalPolicyRequest & WithActionNames(const Aws::Vector< Aws::String > &value)
SimulatePrincipalPolicyRequest & WithMarker(const char *value)
virtual const char * GetServiceRequestName() const override
AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
SimulatePrincipalPolicyRequest & AddActionNames(const Aws::String &value)
SimulatePrincipalPolicyRequest & AddContextEntries(ContextEntry &&value)
const Aws::Vector< ContextEntry > & GetContextEntries() const
void SetPermissionsBoundaryPolicyInputList(const Aws::Vector< Aws::String > &value)
void SetContextEntries(Aws::Vector< ContextEntry > &&value)
SimulatePrincipalPolicyRequest & AddResourceArns(Aws::String &&value)
SimulatePrincipalPolicyRequest & WithPermissionsBoundaryPolicyInputList(Aws::Vector< Aws::String > &&value)
SimulatePrincipalPolicyRequest & WithPolicySourceArn(const char *value)
SimulatePrincipalPolicyRequest & WithCallerArn(const char *value)
SimulatePrincipalPolicyRequest & WithResourceHandlingOption(const Aws::String &value)
SimulatePrincipalPolicyRequest & WithResourceHandlingOption(const char *value)
SimulatePrincipalPolicyRequest & AddResourceArns(const char *value)
SimulatePrincipalPolicyRequest & AddResourceArns(const Aws::String &value)
SimulatePrincipalPolicyRequest & WithResourceOwner(const char *value)
SimulatePrincipalPolicyRequest & WithResourceOwner(Aws::String &&value)
const Aws::Vector< Aws::String > & GetActionNames() const
SimulatePrincipalPolicyRequest & WithMarker(const Aws::String &value)
SimulatePrincipalPolicyRequest & AddContextEntries(const ContextEntry &value)
SimulatePrincipalPolicyRequest & WithResourcePolicy(Aws::String &&value)
void SetActionNames(Aws::Vector< Aws::String > &&value)
SimulatePrincipalPolicyRequest & WithPolicySourceArn(Aws::String &&value)
SimulatePrincipalPolicyRequest & WithResourceHandlingOption(Aws::String &&value)
SimulatePrincipalPolicyRequest & AddActionNames(const char *value)
const Aws::Vector< Aws::String > & GetPolicyInputList() const
SimulatePrincipalPolicyRequest & AddPolicyInputList(const char *value)
SimulatePrincipalPolicyRequest & WithContextEntries(const Aws::Vector< ContextEntry > &value)
SimulatePrincipalPolicyRequest & AddActionNames(Aws::String &&value)
SimulatePrincipalPolicyRequest & WithCallerArn(const Aws::String &value)
SimulatePrincipalPolicyRequest & WithResourceArns(Aws::Vector< Aws::String > &&value)
void SetResourceArns(Aws::Vector< Aws::String > &&value)
void SetContextEntries(const Aws::Vector< ContextEntry > &value)
SimulatePrincipalPolicyRequest & WithMarker(Aws::String &&value)
SimulatePrincipalPolicyRequest & WithPolicyInputList(Aws::Vector< Aws::String > &&value)
SimulatePrincipalPolicyRequest & AddPolicyInputList(Aws::String &&value)
SimulatePrincipalPolicyRequest & AddPolicyInputList(const Aws::String &value)
AWS_IAM_API Aws::String SerializePayload() const override
void SetPolicyInputList(const Aws::Vector< Aws::String > &value)
SimulatePrincipalPolicyRequest & WithContextEntries(Aws::Vector< ContextEntry > &&value)
SimulatePrincipalPolicyRequest & WithPolicyInputList(const Aws::Vector< Aws::String > &value)
void SetResourceArns(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector