AWS SDK for C++  1.9.158
AWS SDK for C++
ListPermissionsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ram/RAM_EXPORTS.h>
8 #include <aws/ram/RAMRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace RAM
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 "ListPermissions"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
41  inline const Aws::String& GetResourceType() const{ return m_resourceType; }
42 
49  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
50 
57  inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
58 
65  inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
66 
73  inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
74 
81  inline ListPermissionsRequest& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
82 
89  inline ListPermissionsRequest& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
90 
97  inline ListPermissionsRequest& WithResourceType(const char* value) { SetResourceType(value); return *this;}
98 
99 
107  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
108 
116  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
117 
125  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
126 
134  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
135 
143  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
144 
152  inline ListPermissionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
153 
161  inline ListPermissionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
162 
170  inline ListPermissionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
171 
172 
184  inline int GetMaxResults() const{ return m_maxResults; }
185 
197  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
198 
210  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
211 
223  inline ListPermissionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
224 
225  private:
226 
227  Aws::String m_resourceType;
228  bool m_resourceTypeHasBeenSet;
229 
230  Aws::String m_nextToken;
231  bool m_nextTokenHasBeenSet;
232 
233  int m_maxResults;
234  bool m_maxResultsHasBeenSet;
235  };
236 
237 } // namespace Model
238 } // namespace RAM
239 } // namespace Aws
Aws::RAM::Model::ListPermissionsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListPermissionsRequest.h:125
Aws::RAM::Model::ListPermissionsRequest::WithNextToken
ListPermissionsRequest & WithNextToken(Aws::String &&value)
Definition: ListPermissionsRequest.h:161
Aws::RAM::Model::ListPermissionsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListPermissionsRequest.h:116
Aws::RAM::Model::ListPermissionsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListPermissionsRequest.h:30
Aws::RAM::Model::ListPermissionsRequest::WithResourceType
ListPermissionsRequest & WithResourceType(Aws::String &&value)
Definition: ListPermissionsRequest.h:89
RAMRequest.h
Aws::RAM::Model::ListPermissionsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListPermissionsRequest.h:184
Aws::RAM::Model::ListPermissionsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListPermissionsRequest.h:143
Aws::RAM::Model::ListPermissionsRequest::ListPermissionsRequest
ListPermissionsRequest()
Aws::RAM::Model::ListPermissionsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListPermissionsRequest.h:210
Aws::RAM::Model::ListPermissionsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListPermissionsRequest.h:134
Aws::RAM::Model::ListPermissionsRequest::SetResourceType
void SetResourceType(const char *value)
Definition: ListPermissionsRequest.h:73
Aws::RAM::Model::ListPermissionsRequest
Definition: ListPermissionsRequest.h:22
Aws::RAM::Model::ListPermissionsRequest::WithNextToken
ListPermissionsRequest & WithNextToken(const char *value)
Definition: ListPermissionsRequest.h:170
Aws::RAM::Model::ListPermissionsRequest::WithResourceType
ListPermissionsRequest & WithResourceType(const char *value)
Definition: ListPermissionsRequest.h:97
Aws::RAM::Model::ListPermissionsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::RAM::Model::ListPermissionsRequest::GetResourceType
const Aws::String & GetResourceType() const
Definition: ListPermissionsRequest.h:41
AWSString.h
RAM_EXPORTS.h
Aws::RAM::Model::ListPermissionsRequest::WithResourceType
ListPermissionsRequest & WithResourceType(const Aws::String &value)
Definition: ListPermissionsRequest.h:81
AWS_RAM_API
#define AWS_RAM_API
Definition: RAM_EXPORTS.h:28
Aws::RAM::Model::ListPermissionsRequest::WithNextToken
ListPermissionsRequest & WithNextToken(const Aws::String &value)
Definition: ListPermissionsRequest.h:152
Aws::RAM::Model::ListPermissionsRequest::WithMaxResults
ListPermissionsRequest & WithMaxResults(int value)
Definition: ListPermissionsRequest.h:223
Aws::RAM::Model::ListPermissionsRequest::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: ListPermissionsRequest.h:49
Aws
Definition: AccessManagementClient.h:15
Aws::RAM::Model::ListPermissionsRequest::SetResourceType
void SetResourceType(const Aws::String &value)
Definition: ListPermissionsRequest.h:57
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RAM::Model::ListPermissionsRequest::SetResourceType
void SetResourceType(Aws::String &&value)
Definition: ListPermissionsRequest.h:65
Aws::RAM::Model::ListPermissionsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListPermissionsRequest.h:107
Aws::RAM::Model::ListPermissionsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListPermissionsRequest.h:197
Aws::RAM::RAMRequest
Definition: RAMRequest.h:17