AWS SDK for C++  1.9.107
AWS SDK for C++
ListAttachedUserPoliciesRequest.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 "ListAttachedUserPolicies"; }
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& GetUserName() const{ return m_userName; }
47 
55  inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
56 
64  inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
65 
73  inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
74 
82  inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
83 
91  inline ListAttachedUserPoliciesRequest& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
92 
100  inline ListAttachedUserPoliciesRequest& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
101 
109  inline ListAttachedUserPoliciesRequest& WithUserName(const char* value) { SetUserName(value); return *this;}
110 
111 
122  inline const Aws::String& GetPathPrefix() const{ return m_pathPrefix; }
123 
134  inline bool PathPrefixHasBeenSet() const { return m_pathPrefixHasBeenSet; }
135 
146  inline void SetPathPrefix(const Aws::String& value) { m_pathPrefixHasBeenSet = true; m_pathPrefix = value; }
147 
158  inline void SetPathPrefix(Aws::String&& value) { m_pathPrefixHasBeenSet = true; m_pathPrefix = std::move(value); }
159 
170  inline void SetPathPrefix(const char* value) { m_pathPrefixHasBeenSet = true; m_pathPrefix.assign(value); }
171 
182  inline ListAttachedUserPoliciesRequest& WithPathPrefix(const Aws::String& value) { SetPathPrefix(value); return *this;}
183 
194  inline ListAttachedUserPoliciesRequest& WithPathPrefix(Aws::String&& value) { SetPathPrefix(std::move(value)); return *this;}
195 
206  inline ListAttachedUserPoliciesRequest& WithPathPrefix(const char* value) { SetPathPrefix(value); return *this;}
207 
208 
215  inline const Aws::String& GetMarker() const{ return m_marker; }
216 
223  inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
224 
231  inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
232 
239  inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
240 
247  inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
248 
255  inline ListAttachedUserPoliciesRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
256 
263  inline ListAttachedUserPoliciesRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
264 
271  inline ListAttachedUserPoliciesRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
272 
273 
284  inline int GetMaxItems() const{ return m_maxItems; }
285 
296  inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; }
297 
308  inline void SetMaxItems(int value) { m_maxItemsHasBeenSet = true; m_maxItems = value; }
309 
320  inline ListAttachedUserPoliciesRequest& WithMaxItems(int value) { SetMaxItems(value); return *this;}
321 
322  private:
323 
324  Aws::String m_userName;
325  bool m_userNameHasBeenSet;
326 
327  Aws::String m_pathPrefix;
328  bool m_pathPrefixHasBeenSet;
329 
330  Aws::String m_marker;
331  bool m_markerHasBeenSet;
332 
333  int m_maxItems;
334  bool m_maxItemsHasBeenSet;
335  };
336 
337 } // namespace Model
338 } // namespace IAM
339 } // namespace Aws
Aws::IAM::Model::ListAttachedUserPoliciesRequest::SetPathPrefix
void SetPathPrefix(const char *value)
Definition: ListAttachedUserPoliciesRequest.h:170
Aws::IAM::Model::ListAttachedUserPoliciesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListAttachedUserPoliciesRequest.h:30
Aws::Http::URI
Definition: URI.h:32
Aws::IAM::Model::ListAttachedUserPoliciesRequest::WithPathPrefix
ListAttachedUserPoliciesRequest & WithPathPrefix(Aws::String &&value)
Definition: ListAttachedUserPoliciesRequest.h:194
Aws::IAM::Model::ListAttachedUserPoliciesRequest::UserNameHasBeenSet
bool UserNameHasBeenSet() const
Definition: ListAttachedUserPoliciesRequest.h:55
Aws::IAM::Model::ListAttachedUserPoliciesRequest::SetMarker
void SetMarker(const Aws::String &value)
Definition: ListAttachedUserPoliciesRequest.h:231
Aws::IAM::Model::ListAttachedUserPoliciesRequest::WithUserName
ListAttachedUserPoliciesRequest & WithUserName(const Aws::String &value)
Definition: ListAttachedUserPoliciesRequest.h:91
Aws::IAM::Model::ListAttachedUserPoliciesRequest::PathPrefixHasBeenSet
bool PathPrefixHasBeenSet() const
Definition: ListAttachedUserPoliciesRequest.h:134
Aws::IAM::Model::ListAttachedUserPoliciesRequest::GetUserName
const Aws::String & GetUserName() const
Definition: ListAttachedUserPoliciesRequest.h:46
Aws::IAM::Model::ListAttachedUserPoliciesRequest
Definition: ListAttachedUserPoliciesRequest.h:22
Aws::IAM::IAMRequest
Definition: IAMRequest.h:17
Aws::IAM::Model::ListAttachedUserPoliciesRequest::GetMaxItems
int GetMaxItems() const
Definition: ListAttachedUserPoliciesRequest.h:284
Aws::EMR::Model::AuthMode::NOT_SET
@ NOT_SET
Aws::IAM::Model::ListAttachedUserPoliciesRequest::MaxItemsHasBeenSet
bool MaxItemsHasBeenSet() const
Definition: ListAttachedUserPoliciesRequest.h:296
Aws::IAM::Model::ListAttachedUserPoliciesRequest::SetUserName
void SetUserName(const Aws::String &value)
Definition: ListAttachedUserPoliciesRequest.h:64
Aws::IAM::Model::ListAttachedUserPoliciesRequest::WithPathPrefix
ListAttachedUserPoliciesRequest & WithPathPrefix(const char *value)
Definition: ListAttachedUserPoliciesRequest.h:206
Aws::IAM::Model::ListAttachedUserPoliciesRequest::WithPathPrefix
ListAttachedUserPoliciesRequest & WithPathPrefix(const Aws::String &value)
Definition: ListAttachedUserPoliciesRequest.h:182
Aws::IAM::Model::ListAttachedUserPoliciesRequest::SetPathPrefix
void SetPathPrefix(const Aws::String &value)
Definition: ListAttachedUserPoliciesRequest.h:146
Aws::IAM::Model::ListAttachedUserPoliciesRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::IAM::Model::ListAttachedUserPoliciesRequest::WithMarker
ListAttachedUserPoliciesRequest & WithMarker(const char *value)
Definition: ListAttachedUserPoliciesRequest.h:271
AWS_IAM_API
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:28
Aws::IAM::Model::ListAttachedUserPoliciesRequest::SetMarker
void SetMarker(Aws::String &&value)
Definition: ListAttachedUserPoliciesRequest.h:239
Aws::IAM::Model::ListAttachedUserPoliciesRequest::WithMarker
ListAttachedUserPoliciesRequest & WithMarker(const Aws::String &value)
Definition: ListAttachedUserPoliciesRequest.h:255
Aws::IAM::Model::ListAttachedUserPoliciesRequest::MarkerHasBeenSet
bool MarkerHasBeenSet() const
Definition: ListAttachedUserPoliciesRequest.h:223
AWSString.h
Aws::IAM::Model::ListAttachedUserPoliciesRequest::GetPathPrefix
const Aws::String & GetPathPrefix() const
Definition: ListAttachedUserPoliciesRequest.h:122
Aws::IAM::Model::ListAttachedUserPoliciesRequest::WithUserName
ListAttachedUserPoliciesRequest & WithUserName(const char *value)
Definition: ListAttachedUserPoliciesRequest.h:109
Aws::IAM::Model::ListAttachedUserPoliciesRequest::SetMaxItems
void SetMaxItems(int value)
Definition: ListAttachedUserPoliciesRequest.h:308
Aws::IAM::Model::ListAttachedUserPoliciesRequest::SetUserName
void SetUserName(const char *value)
Definition: ListAttachedUserPoliciesRequest.h:82
Aws::IAM::Model::ListAttachedUserPoliciesRequest::ListAttachedUserPoliciesRequest
ListAttachedUserPoliciesRequest()
IAM_EXPORTS.h
IAMRequest.h
Aws::IAM::Model::ListAttachedUserPoliciesRequest::WithUserName
ListAttachedUserPoliciesRequest & WithUserName(Aws::String &&value)
Definition: ListAttachedUserPoliciesRequest.h:100
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IAM::Model::ListAttachedUserPoliciesRequest::SetMarker
void SetMarker(const char *value)
Definition: ListAttachedUserPoliciesRequest.h:247
Aws::IAM::Model::ListAttachedUserPoliciesRequest::WithMaxItems
ListAttachedUserPoliciesRequest & WithMaxItems(int value)
Definition: ListAttachedUserPoliciesRequest.h:320
Aws::IAM::Model::ListAttachedUserPoliciesRequest::GetMarker
const Aws::String & GetMarker() const
Definition: ListAttachedUserPoliciesRequest.h:215
Aws::IAM::Model::ListAttachedUserPoliciesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IAM::Model::ListAttachedUserPoliciesRequest::WithMarker
ListAttachedUserPoliciesRequest & WithMarker(Aws::String &&value)
Definition: ListAttachedUserPoliciesRequest.h:263
Aws::IAM::Model::ListAttachedUserPoliciesRequest::SetUserName
void SetUserName(Aws::String &&value)
Definition: ListAttachedUserPoliciesRequest.h:73
Aws::IAM::Model::ListAttachedUserPoliciesRequest::SetPathPrefix
void SetPathPrefix(Aws::String &&value)
Definition: ListAttachedUserPoliciesRequest.h:158