AWS SDK for C++  1.8.71
AWS SDK for C++
ListUserPoolsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace CognitoIdentityProvider
15 {
16 namespace Model
17 {
18 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "ListUserPools"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
39 
44  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
45 
50  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
51 
56  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
57 
62  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
63 
68  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
69 
74  inline ListUserPoolsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
75 
80  inline ListUserPoolsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
81 
86  inline ListUserPoolsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
87 
88 
93  inline int GetMaxResults() const{ return m_maxResults; }
94 
99  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
100 
105  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
106 
111  inline ListUserPoolsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
112 
113  private:
114 
115  Aws::String m_nextToken;
116  bool m_nextTokenHasBeenSet;
117 
118  int m_maxResults;
119  bool m_maxResultsHasBeenSet;
120  };
121 
122 } // namespace Model
123 } // namespace CognitoIdentityProvider
124 } // namespace Aws
ListUserPoolsRequest & WithNextToken(const Aws::String &value)
ListUserPoolsRequest & WithNextToken(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
ListUserPoolsRequest & WithNextToken(Aws::String &&value)
#define AWS_COGNITOIDENTITYPROVIDER_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
virtual const char * GetServiceRequestName() const override