AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SimulateCustomPolicyRequest.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.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 "SimulateCustomPolicy"; }
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
68 inline const Aws::Vector<Aws::String>& GetPolicyInputList() const{ return m_policyInputList; }
69 inline bool PolicyInputListHasBeenSet() const { return m_policyInputListHasBeenSet; }
70 inline void SetPolicyInputList(const Aws::Vector<Aws::String>& value) { m_policyInputListHasBeenSet = true; m_policyInputList = value; }
71 inline void SetPolicyInputList(Aws::Vector<Aws::String>&& value) { m_policyInputListHasBeenSet = true; m_policyInputList = std::move(value); }
74 inline SimulateCustomPolicyRequest& AddPolicyInputList(const Aws::String& value) { m_policyInputListHasBeenSet = true; m_policyInputList.push_back(value); return *this; }
75 inline SimulateCustomPolicyRequest& AddPolicyInputList(Aws::String&& value) { m_policyInputListHasBeenSet = true; m_policyInputList.push_back(std::move(value)); return *this; }
76 inline SimulateCustomPolicyRequest& AddPolicyInputList(const char* value) { m_policyInputListHasBeenSet = true; m_policyInputList.push_back(value); return *this; }
78
80
103 inline const Aws::Vector<Aws::String>& GetPermissionsBoundaryPolicyInputList() const{ return m_permissionsBoundaryPolicyInputList; }
104 inline bool PermissionsBoundaryPolicyInputListHasBeenSet() const { return m_permissionsBoundaryPolicyInputListHasBeenSet; }
105 inline void SetPermissionsBoundaryPolicyInputList(const Aws::Vector<Aws::String>& value) { m_permissionsBoundaryPolicyInputListHasBeenSet = true; m_permissionsBoundaryPolicyInputList = value; }
106 inline void SetPermissionsBoundaryPolicyInputList(Aws::Vector<Aws::String>&& value) { m_permissionsBoundaryPolicyInputListHasBeenSet = true; m_permissionsBoundaryPolicyInputList = std::move(value); }
109 inline SimulateCustomPolicyRequest& AddPermissionsBoundaryPolicyInputList(const Aws::String& value) { m_permissionsBoundaryPolicyInputListHasBeenSet = true; m_permissionsBoundaryPolicyInputList.push_back(value); return *this; }
110 inline SimulateCustomPolicyRequest& AddPermissionsBoundaryPolicyInputList(Aws::String&& value) { m_permissionsBoundaryPolicyInputListHasBeenSet = true; m_permissionsBoundaryPolicyInputList.push_back(std::move(value)); return *this; }
111 inline SimulateCustomPolicyRequest& AddPermissionsBoundaryPolicyInputList(const char* value) { m_permissionsBoundaryPolicyInputListHasBeenSet = true; m_permissionsBoundaryPolicyInputList.push_back(value); return *this; }
113
115
121 inline const Aws::Vector<Aws::String>& GetActionNames() const{ return m_actionNames; }
122 inline bool ActionNamesHasBeenSet() const { return m_actionNamesHasBeenSet; }
123 inline void SetActionNames(const Aws::Vector<Aws::String>& value) { m_actionNamesHasBeenSet = true; m_actionNames = value; }
124 inline void SetActionNames(Aws::Vector<Aws::String>&& value) { m_actionNamesHasBeenSet = true; m_actionNames = std::move(value); }
126 inline SimulateCustomPolicyRequest& WithActionNames(Aws::Vector<Aws::String>&& value) { SetActionNames(std::move(value)); return *this;}
127 inline SimulateCustomPolicyRequest& AddActionNames(const Aws::String& value) { m_actionNamesHasBeenSet = true; m_actionNames.push_back(value); return *this; }
128 inline SimulateCustomPolicyRequest& AddActionNames(Aws::String&& value) { m_actionNamesHasBeenSet = true; m_actionNames.push_back(std::move(value)); return *this; }
129 inline SimulateCustomPolicyRequest& AddActionNames(const char* value) { m_actionNamesHasBeenSet = true; m_actionNames.push_back(value); return *this; }
131
133
151 inline const Aws::Vector<Aws::String>& GetResourceArns() const{ return m_resourceArns; }
152 inline bool ResourceArnsHasBeenSet() const { return m_resourceArnsHasBeenSet; }
153 inline void SetResourceArns(const Aws::Vector<Aws::String>& value) { m_resourceArnsHasBeenSet = true; m_resourceArns = value; }
154 inline void SetResourceArns(Aws::Vector<Aws::String>&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns = std::move(value); }
157 inline SimulateCustomPolicyRequest& AddResourceArns(const Aws::String& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(value); return *this; }
158 inline SimulateCustomPolicyRequest& AddResourceArns(Aws::String&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(std::move(value)); return *this; }
159 inline SimulateCustomPolicyRequest& AddResourceArns(const char* value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(value); return *this; }
161
163
182 inline const Aws::String& GetResourcePolicy() const{ return m_resourcePolicy; }
183 inline bool ResourcePolicyHasBeenSet() const { return m_resourcePolicyHasBeenSet; }
184 inline void SetResourcePolicy(const Aws::String& value) { m_resourcePolicyHasBeenSet = true; m_resourcePolicy = value; }
185 inline void SetResourcePolicy(Aws::String&& value) { m_resourcePolicyHasBeenSet = true; m_resourcePolicy = std::move(value); }
186 inline void SetResourcePolicy(const char* value) { m_resourcePolicyHasBeenSet = true; m_resourcePolicy.assign(value); }
188 inline SimulateCustomPolicyRequest& WithResourcePolicy(Aws::String&& value) { SetResourcePolicy(std::move(value)); return *this;}
189 inline SimulateCustomPolicyRequest& WithResourcePolicy(const char* value) { SetResourcePolicy(value); return *this;}
191
193
209 inline const Aws::String& GetResourceOwner() const{ return m_resourceOwner; }
210 inline bool ResourceOwnerHasBeenSet() const { return m_resourceOwnerHasBeenSet; }
211 inline void SetResourceOwner(const Aws::String& value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner = value; }
212 inline void SetResourceOwner(Aws::String&& value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner = std::move(value); }
213 inline void SetResourceOwner(const char* value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner.assign(value); }
214 inline SimulateCustomPolicyRequest& WithResourceOwner(const Aws::String& value) { SetResourceOwner(value); return *this;}
215 inline SimulateCustomPolicyRequest& WithResourceOwner(Aws::String&& value) { SetResourceOwner(std::move(value)); return *this;}
216 inline SimulateCustomPolicyRequest& WithResourceOwner(const char* value) { SetResourceOwner(value); return *this;}
218
220
228 inline const Aws::String& GetCallerArn() const{ return m_callerArn; }
229 inline bool CallerArnHasBeenSet() const { return m_callerArnHasBeenSet; }
230 inline void SetCallerArn(const Aws::String& value) { m_callerArnHasBeenSet = true; m_callerArn = value; }
231 inline void SetCallerArn(Aws::String&& value) { m_callerArnHasBeenSet = true; m_callerArn = std::move(value); }
232 inline void SetCallerArn(const char* value) { m_callerArnHasBeenSet = true; m_callerArn.assign(value); }
233 inline SimulateCustomPolicyRequest& WithCallerArn(const Aws::String& value) { SetCallerArn(value); return *this;}
234 inline SimulateCustomPolicyRequest& WithCallerArn(Aws::String&& value) { SetCallerArn(std::move(value)); return *this;}
235 inline SimulateCustomPolicyRequest& WithCallerArn(const char* value) { SetCallerArn(value); return *this;}
237
239
244 inline const Aws::Vector<ContextEntry>& GetContextEntries() const{ return m_contextEntries; }
245 inline bool ContextEntriesHasBeenSet() const { return m_contextEntriesHasBeenSet; }
246 inline void SetContextEntries(const Aws::Vector<ContextEntry>& value) { m_contextEntriesHasBeenSet = true; m_contextEntries = value; }
247 inline void SetContextEntries(Aws::Vector<ContextEntry>&& value) { m_contextEntriesHasBeenSet = true; m_contextEntries = std::move(value); }
250 inline SimulateCustomPolicyRequest& AddContextEntries(const ContextEntry& value) { m_contextEntriesHasBeenSet = true; m_contextEntries.push_back(value); return *this; }
251 inline SimulateCustomPolicyRequest& AddContextEntries(ContextEntry&& value) { m_contextEntriesHasBeenSet = true; m_contextEntries.push_back(std::move(value)); return *this; }
253
255
278 inline const Aws::String& GetResourceHandlingOption() const{ return m_resourceHandlingOption; }
279 inline bool ResourceHandlingOptionHasBeenSet() const { return m_resourceHandlingOptionHasBeenSet; }
280 inline void SetResourceHandlingOption(const Aws::String& value) { m_resourceHandlingOptionHasBeenSet = true; m_resourceHandlingOption = value; }
281 inline void SetResourceHandlingOption(Aws::String&& value) { m_resourceHandlingOptionHasBeenSet = true; m_resourceHandlingOption = std::move(value); }
282 inline void SetResourceHandlingOption(const char* value) { m_resourceHandlingOptionHasBeenSet = true; m_resourceHandlingOption.assign(value); }
285 inline SimulateCustomPolicyRequest& WithResourceHandlingOption(const char* value) { SetResourceHandlingOption(value); return *this;}
287
289
299 inline int GetMaxItems() const{ return m_maxItems; }
300 inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; }
301 inline void SetMaxItems(int value) { m_maxItemsHasBeenSet = true; m_maxItems = value; }
302 inline SimulateCustomPolicyRequest& WithMaxItems(int value) { SetMaxItems(value); return *this;}
304
306
312 inline const Aws::String& GetMarker() const{ return m_marker; }
313 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
314 inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
315 inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
316 inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
317 inline SimulateCustomPolicyRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
318 inline SimulateCustomPolicyRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
319 inline SimulateCustomPolicyRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
321 private:
322
323 Aws::Vector<Aws::String> m_policyInputList;
324 bool m_policyInputListHasBeenSet = false;
325
326 Aws::Vector<Aws::String> m_permissionsBoundaryPolicyInputList;
327 bool m_permissionsBoundaryPolicyInputListHasBeenSet = false;
328
329 Aws::Vector<Aws::String> m_actionNames;
330 bool m_actionNamesHasBeenSet = false;
331
332 Aws::Vector<Aws::String> m_resourceArns;
333 bool m_resourceArnsHasBeenSet = false;
334
335 Aws::String m_resourcePolicy;
336 bool m_resourcePolicyHasBeenSet = false;
337
338 Aws::String m_resourceOwner;
339 bool m_resourceOwnerHasBeenSet = false;
340
341 Aws::String m_callerArn;
342 bool m_callerArnHasBeenSet = false;
343
344 Aws::Vector<ContextEntry> m_contextEntries;
345 bool m_contextEntriesHasBeenSet = false;
346
347 Aws::String m_resourceHandlingOption;
348 bool m_resourceHandlingOptionHasBeenSet = false;
349
350 int m_maxItems;
351 bool m_maxItemsHasBeenSet = false;
352
353 Aws::String m_marker;
354 bool m_markerHasBeenSet = false;
355 };
356
357} // namespace Model
358} // namespace IAM
359} // namespace Aws
void SetPermissionsBoundaryPolicyInputList(const Aws::Vector< Aws::String > &value)
void SetPolicyInputList(Aws::Vector< Aws::String > &&value)
void SetResourceArns(Aws::Vector< Aws::String > &&value)
SimulateCustomPolicyRequest & AddPermissionsBoundaryPolicyInputList(const Aws::String &value)
SimulateCustomPolicyRequest & WithActionNames(const Aws::Vector< Aws::String > &value)
void SetPolicyInputList(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetPermissionsBoundaryPolicyInputList() const
SimulateCustomPolicyRequest & AddContextEntries(ContextEntry &&value)
SimulateCustomPolicyRequest & WithResourceHandlingOption(Aws::String &&value)
SimulateCustomPolicyRequest & AddPolicyInputList(const char *value)
SimulateCustomPolicyRequest & WithResourceOwner(const Aws::String &value)
SimulateCustomPolicyRequest & AddPermissionsBoundaryPolicyInputList(const char *value)
SimulateCustomPolicyRequest & WithPolicyInputList(Aws::Vector< Aws::String > &&value)
SimulateCustomPolicyRequest & WithActionNames(Aws::Vector< Aws::String > &&value)
SimulateCustomPolicyRequest & WithCallerArn(const char *value)
AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
SimulateCustomPolicyRequest & WithResourceOwner(const char *value)
SimulateCustomPolicyRequest & WithResourceArns(Aws::Vector< Aws::String > &&value)
void SetActionNames(const Aws::Vector< Aws::String > &value)
SimulateCustomPolicyRequest & WithResourceOwner(Aws::String &&value)
void SetResourceArns(const Aws::Vector< Aws::String > &value)
SimulateCustomPolicyRequest & WithPolicyInputList(const Aws::Vector< Aws::String > &value)
SimulateCustomPolicyRequest & WithPermissionsBoundaryPolicyInputList(Aws::Vector< Aws::String > &&value)
SimulateCustomPolicyRequest & AddPolicyInputList(Aws::String &&value)
AWS_IAM_API Aws::String SerializePayload() const override
SimulateCustomPolicyRequest & AddPolicyInputList(const Aws::String &value)
void SetContextEntries(const Aws::Vector< ContextEntry > &value)
SimulateCustomPolicyRequest & WithResourceHandlingOption(const char *value)
SimulateCustomPolicyRequest & AddActionNames(const char *value)
SimulateCustomPolicyRequest & AddResourceArns(const Aws::String &value)
const Aws::Vector< Aws::String > & GetResourceArns() const
SimulateCustomPolicyRequest & WithResourcePolicy(const char *value)
SimulateCustomPolicyRequest & WithResourcePolicy(const Aws::String &value)
const Aws::Vector< Aws::String > & GetPolicyInputList() const
SimulateCustomPolicyRequest & AddResourceArns(const char *value)
SimulateCustomPolicyRequest & WithMarker(Aws::String &&value)
SimulateCustomPolicyRequest & WithContextEntries(Aws::Vector< ContextEntry > &&value)
void SetPermissionsBoundaryPolicyInputList(Aws::Vector< Aws::String > &&value)
SimulateCustomPolicyRequest & AddActionNames(Aws::String &&value)
const Aws::Vector< Aws::String > & GetActionNames() const
SimulateCustomPolicyRequest & WithMarker(const Aws::String &value)
SimulateCustomPolicyRequest & WithMaxItems(int value)
void SetActionNames(Aws::Vector< Aws::String > &&value)
SimulateCustomPolicyRequest & WithResourceArns(const Aws::Vector< Aws::String > &value)
SimulateCustomPolicyRequest & AddContextEntries(const ContextEntry &value)
SimulateCustomPolicyRequest & AddActionNames(const Aws::String &value)
SimulateCustomPolicyRequest & WithPermissionsBoundaryPolicyInputList(const Aws::Vector< Aws::String > &value)
SimulateCustomPolicyRequest & WithResourcePolicy(Aws::String &&value)
void SetContextEntries(Aws::Vector< ContextEntry > &&value)
SimulateCustomPolicyRequest & WithMarker(const char *value)
SimulateCustomPolicyRequest & WithResourceHandlingOption(const Aws::String &value)
SimulateCustomPolicyRequest & AddResourceArns(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
SimulateCustomPolicyRequest & WithCallerArn(const Aws::String &value)
SimulateCustomPolicyRequest & WithContextEntries(const Aws::Vector< ContextEntry > &value)
const Aws::Vector< ContextEntry > & GetContextEntries() const
SimulateCustomPolicyRequest & WithCallerArn(Aws::String &&value)
SimulateCustomPolicyRequest & AddPermissionsBoundaryPolicyInputList(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector