AWS SDK for C++  1.9.158
AWS SDK for C++
ListRolePoliciesRequest.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>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace IAM
15 {
16 namespace Model
17 {
18 
22  {
23  public:
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 "ListRolePolicies"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
46  inline const Aws::String& GetRoleName() const{ return m_roleName; }
47 
55  inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
56 
64  inline void SetRoleName(const Aws::String& value) { m_roleNameHasBeenSet = true; m_roleName = value; }
65 
73  inline void SetRoleName(Aws::String&& value) { m_roleNameHasBeenSet = true; m_roleName = std::move(value); }
74 
82  inline void SetRoleName(const char* value) { m_roleNameHasBeenSet = true; m_roleName.assign(value); }
83 
91  inline ListRolePoliciesRequest& WithRoleName(const Aws::String& value) { SetRoleName(value); return *this;}
92 
100  inline ListRolePoliciesRequest& WithRoleName(Aws::String&& value) { SetRoleName(std::move(value)); return *this;}
101 
109  inline ListRolePoliciesRequest& WithRoleName(const char* value) { SetRoleName(value); return *this;}
110 
111 
118  inline const Aws::String& GetMarker() const{ return m_marker; }
119 
126  inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
127 
134  inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
135 
142  inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
143 
150  inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
151 
158  inline ListRolePoliciesRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
159 
166  inline ListRolePoliciesRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
167 
174  inline ListRolePoliciesRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
175 
176 
187  inline int GetMaxItems() const{ return m_maxItems; }
188 
199  inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; }
200 
211  inline void SetMaxItems(int value) { m_maxItemsHasBeenSet = true; m_maxItems = value; }
212 
223  inline ListRolePoliciesRequest& WithMaxItems(int value) { SetMaxItems(value); return *this;}
224 
225  private:
226 
227  Aws::String m_roleName;
228  bool m_roleNameHasBeenSet;
229 
230  Aws::String m_marker;
231  bool m_markerHasBeenSet;
232 
233  int m_maxItems;
234  bool m_maxItemsHasBeenSet;
235  };
236 
237 } // namespace Model
238 } // namespace IAM
239 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::IAM::Model::ListRolePoliciesRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::IAM::Model::ListRolePoliciesRequest::WithMarker
ListRolePoliciesRequest & WithMarker(const char *value)
Definition: ListRolePoliciesRequest.h:174
Aws::IAM::IAMRequest
Definition: IAMRequest.h:17
Aws::EMR::Model::AuthMode::NOT_SET
@ NOT_SET
Aws::IAM::Model::ListRolePoliciesRequest::MaxItemsHasBeenSet
bool MaxItemsHasBeenSet() const
Definition: ListRolePoliciesRequest.h:199
AWS_IAM_API
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:28
Aws::IAM::Model::ListRolePoliciesRequest::SetMarker
void SetMarker(Aws::String &&value)
Definition: ListRolePoliciesRequest.h:142
Aws::IAM::Model::ListRolePoliciesRequest::WithRoleName
ListRolePoliciesRequest & WithRoleName(const char *value)
Definition: ListRolePoliciesRequest.h:109
Aws::IAM::Model::ListRolePoliciesRequest::WithMarker
ListRolePoliciesRequest & WithMarker(const Aws::String &value)
Definition: ListRolePoliciesRequest.h:158
Aws::IAM::Model::ListRolePoliciesRequest::GetMaxItems
int GetMaxItems() const
Definition: ListRolePoliciesRequest.h:187
AWSString.h
Aws::IAM::Model::ListRolePoliciesRequest::MarkerHasBeenSet
bool MarkerHasBeenSet() const
Definition: ListRolePoliciesRequest.h:126
Aws::IAM::Model::ListRolePoliciesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IAM::Model::ListRolePoliciesRequest::RoleNameHasBeenSet
bool RoleNameHasBeenSet() const
Definition: ListRolePoliciesRequest.h:55
Aws::IAM::Model::ListRolePoliciesRequest::SetMarker
void SetMarker(const char *value)
Definition: ListRolePoliciesRequest.h:150
Aws::IAM::Model::ListRolePoliciesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListRolePoliciesRequest.h:30
Aws::IAM::Model::ListRolePoliciesRequest::WithRoleName
ListRolePoliciesRequest & WithRoleName(Aws::String &&value)
Definition: ListRolePoliciesRequest.h:100
IAM_EXPORTS.h
Aws::IAM::Model::ListRolePoliciesRequest::GetRoleName
const Aws::String & GetRoleName() const
Definition: ListRolePoliciesRequest.h:46
Aws::IAM::Model::ListRolePoliciesRequest::GetMarker
const Aws::String & GetMarker() const
Definition: ListRolePoliciesRequest.h:118
IAMRequest.h
Aws
Definition: AccessManagementClient.h:15
Aws::IAM::Model::ListRolePoliciesRequest::WithMaxItems
ListRolePoliciesRequest & WithMaxItems(int value)
Definition: ListRolePoliciesRequest.h:223
Aws::IAM::Model::ListRolePoliciesRequest::SetRoleName
void SetRoleName(const Aws::String &value)
Definition: ListRolePoliciesRequest.h:64
Aws::IAM::Model::ListRolePoliciesRequest::WithMarker
ListRolePoliciesRequest & WithMarker(Aws::String &&value)
Definition: ListRolePoliciesRequest.h:166
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IAM::Model::ListRolePoliciesRequest
Definition: ListRolePoliciesRequest.h:22
Aws::IAM::Model::ListRolePoliciesRequest::WithRoleName
ListRolePoliciesRequest & WithRoleName(const Aws::String &value)
Definition: ListRolePoliciesRequest.h:91
Aws::IAM::Model::ListRolePoliciesRequest::SetMarker
void SetMarker(const Aws::String &value)
Definition: ListRolePoliciesRequest.h:134
Aws::IAM::Model::ListRolePoliciesRequest::SetMaxItems
void SetMaxItems(int value)
Definition: ListRolePoliciesRequest.h:211
Aws::IAM::Model::ListRolePoliciesRequest::SetRoleName
void SetRoleName(Aws::String &&value)
Definition: ListRolePoliciesRequest.h:73
Aws::IAM::Model::ListRolePoliciesRequest::SetRoleName
void SetRoleName(const char *value)
Definition: ListRolePoliciesRequest.h:82
Aws::IAM::Model::ListRolePoliciesRequest::ListRolePoliciesRequest
ListRolePoliciesRequest()