AWS SDK for C++  1.9.158
AWS SDK for C++
ListResourceTypesRequest.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>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace RAM
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "ListResourceTypes"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
43  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
44 
52  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
53 
61  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
62 
70  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
71 
79  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
80 
88  inline ListResourceTypesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
89 
97  inline ListResourceTypesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
98 
106  inline ListResourceTypesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
107 
108 
120  inline int GetMaxResults() const{ return m_maxResults; }
121 
133  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
134 
146  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
147 
159  inline ListResourceTypesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
160 
161 
171  inline const ResourceRegionScopeFilter& GetResourceRegionScope() const{ return m_resourceRegionScope; }
172 
182  inline bool ResourceRegionScopeHasBeenSet() const { return m_resourceRegionScopeHasBeenSet; }
183 
193  inline void SetResourceRegionScope(const ResourceRegionScopeFilter& value) { m_resourceRegionScopeHasBeenSet = true; m_resourceRegionScope = value; }
194 
204  inline void SetResourceRegionScope(ResourceRegionScopeFilter&& value) { m_resourceRegionScopeHasBeenSet = true; m_resourceRegionScope = std::move(value); }
205 
215  inline ListResourceTypesRequest& WithResourceRegionScope(const ResourceRegionScopeFilter& value) { SetResourceRegionScope(value); return *this;}
216 
226  inline ListResourceTypesRequest& WithResourceRegionScope(ResourceRegionScopeFilter&& value) { SetResourceRegionScope(std::move(value)); return *this;}
227 
228  private:
229 
230  Aws::String m_nextToken;
231  bool m_nextTokenHasBeenSet;
232 
233  int m_maxResults;
234  bool m_maxResultsHasBeenSet;
235 
236  ResourceRegionScopeFilter m_resourceRegionScope;
237  bool m_resourceRegionScopeHasBeenSet;
238  };
239 
240 } // namespace Model
241 } // namespace RAM
242 } // namespace Aws
Aws::RAM::Model::ListResourceTypesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::RAM::Model::ListResourceTypesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListResourceTypesRequest.h:31
Aws::RAM::Model::ListResourceTypesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListResourceTypesRequest.h:70
Aws::RAM::Model::ListResourceTypesRequest::WithNextToken
ListResourceTypesRequest & WithNextToken(Aws::String &&value)
Definition: ListResourceTypesRequest.h:97
Aws::RAM::Model::ListResourceTypesRequest
Definition: ListResourceTypesRequest.h:23
Aws::RAM::Model::ListResourceTypesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListResourceTypesRequest.h:61
Aws::RAM::Model::ListResourceTypesRequest::WithNextToken
ListResourceTypesRequest & WithNextToken(const char *value)
Definition: ListResourceTypesRequest.h:106
Aws::RAM::Model::ListResourceTypesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListResourceTypesRequest.h:79
Aws::RAM::Model::ListResourceTypesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListResourceTypesRequest.h:133
RAMRequest.h
Aws::RAM::Model::ListResourceTypesRequest::WithResourceRegionScope
ListResourceTypesRequest & WithResourceRegionScope(ResourceRegionScopeFilter &&value)
Definition: ListResourceTypesRequest.h:226
Aws::RAM::Model::ListResourceTypesRequest::ListResourceTypesRequest
ListResourceTypesRequest()
Aws::RAM::Model::ListResourceTypesRequest::GetMaxResults
int GetMaxResults() const
Definition: ListResourceTypesRequest.h:120
Aws::RAM::Model::ListResourceTypesRequest::SetResourceRegionScope
void SetResourceRegionScope(const ResourceRegionScopeFilter &value)
Definition: ListResourceTypesRequest.h:193
Aws::RAM::Model::ResourceRegionScopeFilter
ResourceRegionScopeFilter
Definition: ResourceRegionScopeFilter.h:17
Aws::RAM::Model::ListResourceTypesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListResourceTypesRequest.h:43
AWSString.h
RAM_EXPORTS.h
Aws::RAM::Model::ListResourceTypesRequest::WithMaxResults
ListResourceTypesRequest & WithMaxResults(int value)
Definition: ListResourceTypesRequest.h:159
Aws::RAM::Model::ListResourceTypesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListResourceTypesRequest.h:146
AWS_RAM_API
#define AWS_RAM_API
Definition: RAM_EXPORTS.h:28
Aws::RAM::Model::ListResourceTypesRequest::ResourceRegionScopeHasBeenSet
bool ResourceRegionScopeHasBeenSet() const
Definition: ListResourceTypesRequest.h:182
Aws
Definition: AccessManagementClient.h:15
Aws::RAM::Model::ListResourceTypesRequest::WithResourceRegionScope
ListResourceTypesRequest & WithResourceRegionScope(const ResourceRegionScopeFilter &value)
Definition: ListResourceTypesRequest.h:215
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RAM::Model::ListResourceTypesRequest::GetResourceRegionScope
const ResourceRegionScopeFilter & GetResourceRegionScope() const
Definition: ListResourceTypesRequest.h:171
Aws::RAM::Model::ListResourceTypesRequest::SetResourceRegionScope
void SetResourceRegionScope(ResourceRegionScopeFilter &&value)
Definition: ListResourceTypesRequest.h:204
Aws::RAM::Model::ListResourceTypesRequest::WithNextToken
ListResourceTypesRequest & WithNextToken(const Aws::String &value)
Definition: ListResourceTypesRequest.h:88
Aws::RAM::Model::ListResourceTypesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListResourceTypesRequest.h:52
ResourceRegionScopeFilter.h
Aws::RAM::RAMRequest
Definition: RAMRequest.h:17