AWS SDK for C++  1.9.109
AWS SDK for C++
ListGroupResourcesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ResourceGroups
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 "ListGroupResources"; }
33 
34  Aws::String SerializePayload() const override;
35 
36 
40  inline const Aws::String& GetGroup() const{ return m_group; }
41 
45  inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
46 
50  inline void SetGroup(const Aws::String& value) { m_groupHasBeenSet = true; m_group = value; }
51 
55  inline void SetGroup(Aws::String&& value) { m_groupHasBeenSet = true; m_group = std::move(value); }
56 
60  inline void SetGroup(const char* value) { m_groupHasBeenSet = true; m_group.assign(value); }
61 
65  inline ListGroupResourcesRequest& WithGroup(const Aws::String& value) { SetGroup(value); return *this;}
66 
70  inline ListGroupResourcesRequest& WithGroup(Aws::String&& value) { SetGroup(std::move(value)); return *this;}
71 
75  inline ListGroupResourcesRequest& WithGroup(const char* value) { SetGroup(value); return *this;}
76 
77 
101  inline const Aws::Vector<ResourceFilter>& GetFilters() const{ return m_filters; }
102 
126  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
127 
151  inline void SetFilters(const Aws::Vector<ResourceFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
152 
176  inline void SetFilters(Aws::Vector<ResourceFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
177 
201  inline ListGroupResourcesRequest& WithFilters(const Aws::Vector<ResourceFilter>& value) { SetFilters(value); return *this;}
202 
226  inline ListGroupResourcesRequest& WithFilters(Aws::Vector<ResourceFilter>&& value) { SetFilters(std::move(value)); return *this;}
227 
251  inline ListGroupResourcesRequest& AddFilters(const ResourceFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
252 
276  inline ListGroupResourcesRequest& AddFilters(ResourceFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
277 
278 
290  inline int GetMaxResults() const{ return m_maxResults; }
291 
303  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
304 
316  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
317 
329  inline ListGroupResourcesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
330 
331 
339  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
340 
348  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
349 
357  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
358 
366  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
367 
375  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
376 
384  inline ListGroupResourcesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
385 
393  inline ListGroupResourcesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
394 
402  inline ListGroupResourcesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
403 
404  private:
405 
406  Aws::String m_group;
407  bool m_groupHasBeenSet;
408 
409  Aws::Vector<ResourceFilter> m_filters;
410  bool m_filtersHasBeenSet;
411 
412  int m_maxResults;
413  bool m_maxResultsHasBeenSet;
414 
415  Aws::String m_nextToken;
416  bool m_nextTokenHasBeenSet;
417  };
418 
419 } // namespace Model
420 } // namespace ResourceGroups
421 } // namespace Aws
Aws::ResourceGroups::Model::ListGroupResourcesRequest::WithFilters
ListGroupResourcesRequest & WithFilters(Aws::Vector< ResourceFilter > &&value)
Definition: ListGroupResourcesRequest.h:226
Aws::ResourceGroups::Model::ListGroupResourcesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListGroupResourcesRequest.h:366
Aws::ResourceGroups::Model::ListGroupResourcesRequest::GetFilters
const Aws::Vector< ResourceFilter > & GetFilters() const
Definition: ListGroupResourcesRequest.h:101
Aws::ResourceGroups::Model::ListGroupResourcesRequest::SetFilters
void SetFilters(const Aws::Vector< ResourceFilter > &value)
Definition: ListGroupResourcesRequest.h:151
Aws::ResourceGroups::Model::ListGroupResourcesRequest::WithNextToken
ListGroupResourcesRequest & WithNextToken(const Aws::String &value)
Definition: ListGroupResourcesRequest.h:384
Aws::ResourceGroups::Model::ListGroupResourcesRequest::WithGroup
ListGroupResourcesRequest & WithGroup(const Aws::String &value)
Definition: ListGroupResourcesRequest.h:65
Aws::ResourceGroups::Model::ListGroupResourcesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListGroupResourcesRequest.h:316
Aws::ResourceGroups::Model::ListGroupResourcesRequest::SetGroup
void SetGroup(Aws::String &&value)
Definition: ListGroupResourcesRequest.h:55
Aws::ResourceGroups::Model::ListGroupResourcesRequest::GetGroup
const Aws::String & GetGroup() const
Definition: ListGroupResourcesRequest.h:40
Aws::ResourceGroups::Model::ListGroupResourcesRequest::GetMaxResults
int GetMaxResults() const
Definition: ListGroupResourcesRequest.h:290
Aws::ResourceGroups::Model::ListGroupResourcesRequest::SerializePayload
Aws::String SerializePayload() const override
AWS_RESOURCEGROUPS_API
#define AWS_RESOURCEGROUPS_API
Definition: ResourceGroups_EXPORTS.h:28
ResourceFilter.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ResourceGroups::Model::ListGroupResourcesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListGroupResourcesRequest.h:32
Aws::ResourceGroups::Model::ListGroupResourcesRequest::GroupHasBeenSet
bool GroupHasBeenSet() const
Definition: ListGroupResourcesRequest.h:45
AWSVector.h
Aws::ResourceGroups::Model::ListGroupResourcesRequest::AddFilters
ListGroupResourcesRequest & AddFilters(ResourceFilter &&value)
Definition: ListGroupResourcesRequest.h:276
Aws::ResourceGroups::ResourceGroupsRequest
Definition: ResourceGroupsRequest.h:17
Aws::ResourceGroups::Model::ListGroupResourcesRequest::WithFilters
ListGroupResourcesRequest & WithFilters(const Aws::Vector< ResourceFilter > &value)
Definition: ListGroupResourcesRequest.h:201
Aws::ResourceGroups::Model::ResourceFilter
Definition: ResourceFilter.h:35
Aws::ResourceGroups::Model::ListGroupResourcesRequest::ListGroupResourcesRequest
ListGroupResourcesRequest()
AWSString.h
Aws::ResourceGroups::Model::ListGroupResourcesRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: ListGroupResourcesRequest.h:126
Aws::ResourceGroups::Model::ListGroupResourcesRequest::SetFilters
void SetFilters(Aws::Vector< ResourceFilter > &&value)
Definition: ListGroupResourcesRequest.h:176
Aws::ResourceGroups::Model::ListGroupResourcesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListGroupResourcesRequest.h:339
Aws::ResourceGroups::Model::ListGroupResourcesRequest::AddFilters
ListGroupResourcesRequest & AddFilters(const ResourceFilter &value)
Definition: ListGroupResourcesRequest.h:251
ResourceGroupsRequest.h
Aws::ResourceGroups::Model::ListGroupResourcesRequest::WithNextToken
ListGroupResourcesRequest & WithNextToken(Aws::String &&value)
Definition: ListGroupResourcesRequest.h:393
Aws::ResourceGroups::Model::ListGroupResourcesRequest::WithGroup
ListGroupResourcesRequest & WithGroup(const char *value)
Definition: ListGroupResourcesRequest.h:75
Aws
Definition: AccessManagementClient.h:15
ResourceGroups_EXPORTS.h
Aws::ResourceGroups::Model::ListGroupResourcesRequest::WithMaxResults
ListGroupResourcesRequest & WithMaxResults(int value)
Definition: ListGroupResourcesRequest.h:329
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ResourceGroups::Model::ListGroupResourcesRequest::SetGroup
void SetGroup(const Aws::String &value)
Definition: ListGroupResourcesRequest.h:50
Aws::ResourceGroups::Model::ListGroupResourcesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListGroupResourcesRequest.h:357
Aws::ResourceGroups::Model::ListGroupResourcesRequest
Definition: ListGroupResourcesRequest.h:24
Aws::ResourceGroups::Model::ListGroupResourcesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListGroupResourcesRequest.h:348
Aws::ResourceGroups::Model::ListGroupResourcesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListGroupResourcesRequest.h:375
Aws::ResourceGroups::Model::ListGroupResourcesRequest::SetGroup
void SetGroup(const char *value)
Definition: ListGroupResourcesRequest.h:60
Aws::ResourceGroups::Model::ListGroupResourcesRequest::WithNextToken
ListGroupResourcesRequest & WithNextToken(const char *value)
Definition: ListGroupResourcesRequest.h:402
Aws::ResourceGroups::Model::ListGroupResourcesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListGroupResourcesRequest.h:303
Aws::ResourceGroups::Model::ListGroupResourcesRequest::WithGroup
ListGroupResourcesRequest & WithGroup(Aws::String &&value)
Definition: ListGroupResourcesRequest.h:70