AWS SDK for C++  1.9.159
AWS SDK for C++
ListPoliciesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iam/IAM_EXPORTS.h>
8 #include <aws/iam/IAMRequest.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace IAM
17 {
18 namespace 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 "ListPolicies"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
49  inline const PolicyScopeType& GetScope() const{ return m_scope; }
50 
59  inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
60 
69  inline void SetScope(const PolicyScopeType& value) { m_scopeHasBeenSet = true; m_scope = value; }
70 
79  inline void SetScope(PolicyScopeType&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
80 
89  inline ListPoliciesRequest& WithScope(const PolicyScopeType& value) { SetScope(value); return *this;}
90 
99  inline ListPoliciesRequest& WithScope(PolicyScopeType&& value) { SetScope(std::move(value)); return *this;}
100 
101 
109  inline bool GetOnlyAttached() const{ return m_onlyAttached; }
110 
118  inline bool OnlyAttachedHasBeenSet() const { return m_onlyAttachedHasBeenSet; }
119 
127  inline void SetOnlyAttached(bool value) { m_onlyAttachedHasBeenSet = true; m_onlyAttached = value; }
128 
136  inline ListPoliciesRequest& WithOnlyAttached(bool value) { SetOnlyAttached(value); return *this;}
137 
138 
149  inline const Aws::String& GetPathPrefix() const{ return m_pathPrefix; }
150 
161  inline bool PathPrefixHasBeenSet() const { return m_pathPrefixHasBeenSet; }
162 
173  inline void SetPathPrefix(const Aws::String& value) { m_pathPrefixHasBeenSet = true; m_pathPrefix = value; }
174 
185  inline void SetPathPrefix(Aws::String&& value) { m_pathPrefixHasBeenSet = true; m_pathPrefix = std::move(value); }
186 
197  inline void SetPathPrefix(const char* value) { m_pathPrefixHasBeenSet = true; m_pathPrefix.assign(value); }
198 
209  inline ListPoliciesRequest& WithPathPrefix(const Aws::String& value) { SetPathPrefix(value); return *this;}
210 
221  inline ListPoliciesRequest& WithPathPrefix(Aws::String&& value) { SetPathPrefix(std::move(value)); return *this;}
222 
233  inline ListPoliciesRequest& WithPathPrefix(const char* value) { SetPathPrefix(value); return *this;}
234 
235 
244  inline const PolicyUsageType& GetPolicyUsageFilter() const{ return m_policyUsageFilter; }
245 
254  inline bool PolicyUsageFilterHasBeenSet() const { return m_policyUsageFilterHasBeenSet; }
255 
264  inline void SetPolicyUsageFilter(const PolicyUsageType& value) { m_policyUsageFilterHasBeenSet = true; m_policyUsageFilter = value; }
265 
274  inline void SetPolicyUsageFilter(PolicyUsageType&& value) { m_policyUsageFilterHasBeenSet = true; m_policyUsageFilter = std::move(value); }
275 
284  inline ListPoliciesRequest& WithPolicyUsageFilter(const PolicyUsageType& value) { SetPolicyUsageFilter(value); return *this;}
285 
294  inline ListPoliciesRequest& WithPolicyUsageFilter(PolicyUsageType&& value) { SetPolicyUsageFilter(std::move(value)); return *this;}
295 
296 
303  inline const Aws::String& GetMarker() const{ return m_marker; }
304 
311  inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
312 
319  inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
320 
327  inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
328 
335  inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
336 
343  inline ListPoliciesRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
344 
351  inline ListPoliciesRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
352 
359  inline ListPoliciesRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
360 
361 
372  inline int GetMaxItems() const{ return m_maxItems; }
373 
384  inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; }
385 
396  inline void SetMaxItems(int value) { m_maxItemsHasBeenSet = true; m_maxItems = value; }
397 
408  inline ListPoliciesRequest& WithMaxItems(int value) { SetMaxItems(value); return *this;}
409 
410  private:
411 
412  PolicyScopeType m_scope;
413  bool m_scopeHasBeenSet;
414 
415  bool m_onlyAttached;
416  bool m_onlyAttachedHasBeenSet;
417 
418  Aws::String m_pathPrefix;
419  bool m_pathPrefixHasBeenSet;
420 
421  PolicyUsageType m_policyUsageFilter;
422  bool m_policyUsageFilterHasBeenSet;
423 
424  Aws::String m_marker;
425  bool m_markerHasBeenSet;
426 
427  int m_maxItems;
428  bool m_maxItemsHasBeenSet;
429  };
430 
431 } // namespace Model
432 } // namespace IAM
433 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::IAM::Model::ListPoliciesRequest::ScopeHasBeenSet
bool ScopeHasBeenSet() const
Definition: ListPoliciesRequest.h:59
Aws::IAM::Model::ListPoliciesRequest::WithOnlyAttached
ListPoliciesRequest & WithOnlyAttached(bool value)
Definition: ListPoliciesRequest.h:136
Aws::IAM::Model::ListPoliciesRequest::SetMarker
void SetMarker(const Aws::String &value)
Definition: ListPoliciesRequest.h:319
PolicyUsageType.h
Aws::IAM::Model::ListPoliciesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IAM::Model::ListPoliciesRequest::WithPolicyUsageFilter
ListPoliciesRequest & WithPolicyUsageFilter(PolicyUsageType &&value)
Definition: ListPoliciesRequest.h:294
Aws::IAM::Model::ListPoliciesRequest::SetMarker
void SetMarker(Aws::String &&value)
Definition: ListPoliciesRequest.h:327
Aws::IAM::IAMRequest
Definition: IAMRequest.h:17
Aws::IAM::Model::ListPoliciesRequest::PathPrefixHasBeenSet
bool PathPrefixHasBeenSet() const
Definition: ListPoliciesRequest.h:161
Aws::EMR::Model::AuthMode::NOT_SET
@ NOT_SET
Aws::IAM::Model::ListPoliciesRequest::GetMaxItems
int GetMaxItems() const
Definition: ListPoliciesRequest.h:372
Aws::IAM::Model::ListPoliciesRequest::MaxItemsHasBeenSet
bool MaxItemsHasBeenSet() const
Definition: ListPoliciesRequest.h:384
Aws::IAM::Model::ListPoliciesRequest::GetPolicyUsageFilter
const PolicyUsageType & GetPolicyUsageFilter() const
Definition: ListPoliciesRequest.h:244
Aws::IAM::Model::ListPoliciesRequest::GetPathPrefix
const Aws::String & GetPathPrefix() const
Definition: ListPoliciesRequest.h:149
Aws::IAM::Model::PolicyUsageType
PolicyUsageType
Definition: PolicyUsageType.h:17
Aws::IAM::Model::ListPoliciesRequest::SetOnlyAttached
void SetOnlyAttached(bool value)
Definition: ListPoliciesRequest.h:127
AWS_IAM_API
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:28
Aws::IAM::Model::ListPoliciesRequest::WithPathPrefix
ListPoliciesRequest & WithPathPrefix(const Aws::String &value)
Definition: ListPoliciesRequest.h:209
Aws::IAM::Model::ListPoliciesRequest::WithMarker
ListPoliciesRequest & WithMarker(const char *value)
Definition: ListPoliciesRequest.h:359
Aws::IAM::Model::ListPoliciesRequest::WithMaxItems
ListPoliciesRequest & WithMaxItems(int value)
Definition: ListPoliciesRequest.h:408
Aws::IAM::Model::ListPoliciesRequest::SetPolicyUsageFilter
void SetPolicyUsageFilter(PolicyUsageType &&value)
Definition: ListPoliciesRequest.h:274
Aws::IAM::Model::ListPoliciesRequest::SetScope
void SetScope(PolicyScopeType &&value)
Definition: ListPoliciesRequest.h:79
Aws::IAM::Model::ListPoliciesRequest::GetScope
const PolicyScopeType & GetScope() const
Definition: ListPoliciesRequest.h:49
Aws::IAM::Model::ListPoliciesRequest::OnlyAttachedHasBeenSet
bool OnlyAttachedHasBeenSet() const
Definition: ListPoliciesRequest.h:118
Aws::IAM::Model::ListPoliciesRequest::SetMaxItems
void SetMaxItems(int value)
Definition: ListPoliciesRequest.h:396
Aws::IAM::Model::ListPoliciesRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::IAM::Model::ListPoliciesRequest::WithMarker
ListPoliciesRequest & WithMarker(const Aws::String &value)
Definition: ListPoliciesRequest.h:343
AWSString.h
Aws::IAM::Model::PolicyScopeType
PolicyScopeType
Definition: PolicyScopeType.h:17
Aws::IAM::Model::ListPoliciesRequest::WithScope
ListPoliciesRequest & WithScope(const PolicyScopeType &value)
Definition: ListPoliciesRequest.h:89
PolicyScopeType.h
Aws::IAM::Model::ListPoliciesRequest::PolicyUsageFilterHasBeenSet
bool PolicyUsageFilterHasBeenSet() const
Definition: ListPoliciesRequest.h:254
Aws::IAM::Model::ListPoliciesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListPoliciesRequest.h:32
Aws::IAM::Model::ListPoliciesRequest::GetOnlyAttached
bool GetOnlyAttached() const
Definition: ListPoliciesRequest.h:109
Aws::IAM::Model::ListPoliciesRequest::WithPolicyUsageFilter
ListPoliciesRequest & WithPolicyUsageFilter(const PolicyUsageType &value)
Definition: ListPoliciesRequest.h:284
Aws::IAM::Model::ListPoliciesRequest::SetMarker
void SetMarker(const char *value)
Definition: ListPoliciesRequest.h:335
IAM_EXPORTS.h
Aws::IAM::Model::ListPoliciesRequest::WithScope
ListPoliciesRequest & WithScope(PolicyScopeType &&value)
Definition: ListPoliciesRequest.h:99
Aws::IAM::Model::ListPoliciesRequest::SetPathPrefix
void SetPathPrefix(const Aws::String &value)
Definition: ListPoliciesRequest.h:173
IAMRequest.h
Aws
Definition: AccessManagementClient.h:15
Aws::IAM::Model::ListPoliciesRequest
Definition: ListPoliciesRequest.h:24
Aws::IAM::Model::ListPoliciesRequest::WithMarker
ListPoliciesRequest & WithMarker(Aws::String &&value)
Definition: ListPoliciesRequest.h:351
Aws::IAM::Model::ListPoliciesRequest::SetPolicyUsageFilter
void SetPolicyUsageFilter(const PolicyUsageType &value)
Definition: ListPoliciesRequest.h:264
Aws::IAM::Model::ListPoliciesRequest::WithPathPrefix
ListPoliciesRequest & WithPathPrefix(const char *value)
Definition: ListPoliciesRequest.h:233
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IAM::Model::ListPoliciesRequest::SetPathPrefix
void SetPathPrefix(const char *value)
Definition: ListPoliciesRequest.h:197
Aws::IAM::Model::ListPoliciesRequest::GetMarker
const Aws::String & GetMarker() const
Definition: ListPoliciesRequest.h:303
Aws::IAM::Model::ListPoliciesRequest::SetScope
void SetScope(const PolicyScopeType &value)
Definition: ListPoliciesRequest.h:69
Aws::IAM::Model::ListPoliciesRequest::SetPathPrefix
void SetPathPrefix(Aws::String &&value)
Definition: ListPoliciesRequest.h:185
Aws::IAM::Model::ListPoliciesRequest::WithPathPrefix
ListPoliciesRequest & WithPathPrefix(Aws::String &&value)
Definition: ListPoliciesRequest.h:221
Aws::IAM::Model::ListPoliciesRequest::MarkerHasBeenSet
bool MarkerHasBeenSet() const
Definition: ListPoliciesRequest.h:311
Aws::IAM::Model::ListPoliciesRequest::ListPoliciesRequest
ListPoliciesRequest()