AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListGroupsRequest.h
1
6#pragma once
7#include <aws/resource-groups/ResourceGroups_EXPORTS.h>
8#include <aws/resource-groups/ResourceGroupsRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/resource-groups/model/GroupFilter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace ResourceGroups
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_RESOURCEGROUPS_API ListGroupsRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "ListGroups"; }
37
38 AWS_RESOURCEGROUPS_API Aws::String SerializePayload() const override;
39
40 AWS_RESOURCEGROUPS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41
42
44
63 inline const Aws::Vector<GroupFilter>& GetFilters() const{ return m_filters; }
64 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
65 inline void SetFilters(const Aws::Vector<GroupFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
66 inline void SetFilters(Aws::Vector<GroupFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
67 inline ListGroupsRequest& WithFilters(const Aws::Vector<GroupFilter>& value) { SetFilters(value); return *this;}
68 inline ListGroupsRequest& WithFilters(Aws::Vector<GroupFilter>&& value) { SetFilters(std::move(value)); return *this;}
69 inline ListGroupsRequest& AddFilters(const GroupFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
70 inline ListGroupsRequest& AddFilters(GroupFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
72
74
85 inline int GetMaxResults() const{ return m_maxResults; }
86 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
87 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
88 inline ListGroupsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
90
92
99 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
100 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
101 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
102 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
103 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
104 inline ListGroupsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
105 inline ListGroupsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
106 inline ListGroupsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
108 private:
109
110 Aws::Vector<GroupFilter> m_filters;
111 bool m_filtersHasBeenSet = false;
112
113 int m_maxResults;
114 bool m_maxResultsHasBeenSet = false;
115
116 Aws::String m_nextToken;
117 bool m_nextTokenHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace ResourceGroups
122} // namespace Aws
ListGroupsRequest & AddFilters(GroupFilter &&value)
ListGroupsRequest & WithNextToken(const Aws::String &value)
ListGroupsRequest & WithFilters(const Aws::Vector< GroupFilter > &value)
ListGroupsRequest & WithNextToken(Aws::String &&value)
AWS_RESOURCEGROUPS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
ListGroupsRequest & WithFilters(Aws::Vector< GroupFilter > &&value)
AWS_RESOURCEGROUPS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetFilters(Aws::Vector< GroupFilter > &&value)
void SetFilters(const Aws::Vector< GroupFilter > &value)
ListGroupsRequest & WithNextToken(const char *value)
ListGroupsRequest & AddFilters(const GroupFilter &value)
const Aws::Vector< GroupFilter > & GetFilters() const
ListGroupsRequest & WithMaxResults(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector