AWS SDK for C++  1.9.21
AWS SDK for C++
ListDatasetsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace CognitoSync
19 {
20 namespace Model
21 {
22 
29  {
30  public:
32 
33  // Service request name is the Operation name which will send this request out,
34  // each operation should has unique request name, so that we can get operation's name from this request.
35  // Note: this is not true for response, multiple operations may have the same response name,
36  // so we can not get operation's name from response.
37  inline virtual const char* GetServiceRequestName() const override { return "ListDatasets"; }
38 
39  Aws::String SerializePayload() const override;
40 
41  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42 
43 
48  inline const Aws::String& GetIdentityPoolId() const{ return m_identityPoolId; }
49 
54  inline bool IdentityPoolIdHasBeenSet() const { return m_identityPoolIdHasBeenSet; }
55 
60  inline void SetIdentityPoolId(const Aws::String& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = value; }
61 
66  inline void SetIdentityPoolId(Aws::String&& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = std::move(value); }
67 
72  inline void SetIdentityPoolId(const char* value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId.assign(value); }
73 
78  inline ListDatasetsRequest& WithIdentityPoolId(const Aws::String& value) { SetIdentityPoolId(value); return *this;}
79 
84  inline ListDatasetsRequest& WithIdentityPoolId(Aws::String&& value) { SetIdentityPoolId(std::move(value)); return *this;}
85 
90  inline ListDatasetsRequest& WithIdentityPoolId(const char* value) { SetIdentityPoolId(value); return *this;}
91 
92 
97  inline const Aws::String& GetIdentityId() const{ return m_identityId; }
98 
103  inline bool IdentityIdHasBeenSet() const { return m_identityIdHasBeenSet; }
104 
109  inline void SetIdentityId(const Aws::String& value) { m_identityIdHasBeenSet = true; m_identityId = value; }
110 
115  inline void SetIdentityId(Aws::String&& value) { m_identityIdHasBeenSet = true; m_identityId = std::move(value); }
116 
121  inline void SetIdentityId(const char* value) { m_identityIdHasBeenSet = true; m_identityId.assign(value); }
122 
127  inline ListDatasetsRequest& WithIdentityId(const Aws::String& value) { SetIdentityId(value); return *this;}
128 
133  inline ListDatasetsRequest& WithIdentityId(Aws::String&& value) { SetIdentityId(std::move(value)); return *this;}
134 
139  inline ListDatasetsRequest& WithIdentityId(const char* value) { SetIdentityId(value); return *this;}
140 
141 
145  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
146 
150  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
151 
155  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
156 
160  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
161 
165  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
166 
170  inline ListDatasetsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
171 
175  inline ListDatasetsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
176 
180  inline ListDatasetsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
181 
182 
186  inline int GetMaxResults() const{ return m_maxResults; }
187 
191  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
192 
196  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
197 
201  inline ListDatasetsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
202 
203  private:
204 
205  Aws::String m_identityPoolId;
206  bool m_identityPoolIdHasBeenSet;
207 
208  Aws::String m_identityId;
209  bool m_identityIdHasBeenSet;
210 
211  Aws::String m_nextToken;
212  bool m_nextTokenHasBeenSet;
213 
214  int m_maxResults;
215  bool m_maxResultsHasBeenSet;
216  };
217 
218 } // namespace Model
219 } // namespace CognitoSync
220 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
CognitoSync_EXPORTS.h
Aws::CognitoSync::Model::ListDatasetsRequest::SetIdentityPoolId
void SetIdentityPoolId(Aws::String &&value)
Definition: ListDatasetsRequest.h:66
Aws::CognitoSync::Model::ListDatasetsRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::CognitoSync::Model::ListDatasetsRequest::WithIdentityId
ListDatasetsRequest & WithIdentityId(const Aws::String &value)
Definition: ListDatasetsRequest.h:127
Aws::CognitoSync::Model::ListDatasetsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListDatasetsRequest.h:37
Aws::CognitoSync::Model::ListDatasetsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListDatasetsRequest.h:150
Aws::CognitoSync::Model::ListDatasetsRequest::SetIdentityId
void SetIdentityId(const char *value)
Definition: ListDatasetsRequest.h:121
Aws::CognitoSync::Model::ListDatasetsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListDatasetsRequest.h:191
Aws::CognitoSync::Model::ListDatasetsRequest::SetIdentityId
void SetIdentityId(const Aws::String &value)
Definition: ListDatasetsRequest.h:109
Aws::CognitoSync::Model::ListDatasetsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListDatasetsRequest.h:186
Aws::CognitoSync::Model::ListDatasetsRequest::SetIdentityPoolId
void SetIdentityPoolId(const Aws::String &value)
Definition: ListDatasetsRequest.h:60
Aws::CognitoSync::Model::ListDatasetsRequest::WithIdentityPoolId
ListDatasetsRequest & WithIdentityPoolId(Aws::String &&value)
Definition: ListDatasetsRequest.h:84
Aws::CognitoSync::Model::ListDatasetsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListDatasetsRequest.h:165
Aws::CognitoSync::CognitoSyncRequest
Definition: CognitoSyncRequest.h:17
Aws::CognitoSync::Model::ListDatasetsRequest::GetIdentityPoolId
const Aws::String & GetIdentityPoolId() const
Definition: ListDatasetsRequest.h:48
Aws::CognitoSync::Model::ListDatasetsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListDatasetsRequest.h:196
AWSString.h
Aws::CognitoSync::Model::ListDatasetsRequest::WithIdentityId
ListDatasetsRequest & WithIdentityId(const char *value)
Definition: ListDatasetsRequest.h:139
Aws::CognitoSync::Model::ListDatasetsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListDatasetsRequest.h:145
Aws::CognitoSync::Model::ListDatasetsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListDatasetsRequest.h:160
Aws::CognitoSync::Model::ListDatasetsRequest
Definition: ListDatasetsRequest.h:29
Aws::CognitoSync::Model::ListDatasetsRequest::SetIdentityId
void SetIdentityId(Aws::String &&value)
Definition: ListDatasetsRequest.h:115
Aws::CognitoSync::Model::ListDatasetsRequest::SetIdentityPoolId
void SetIdentityPoolId(const char *value)
Definition: ListDatasetsRequest.h:72
Aws::CognitoSync::Model::ListDatasetsRequest::ListDatasetsRequest
ListDatasetsRequest()
Aws::CognitoSync::Model::ListDatasetsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListDatasetsRequest.h:155
Aws
Definition: AccessManagementClient.h:15
Aws::CognitoSync::Model::ListDatasetsRequest::WithMaxResults
ListDatasetsRequest & WithMaxResults(int value)
Definition: ListDatasetsRequest.h:201
Aws::CognitoSync::Model::ListDatasetsRequest::SerializePayload
Aws::String SerializePayload() const override
AWS_COGNITOSYNC_API
#define AWS_COGNITOSYNC_API
Definition: CognitoSync_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CognitoSync::Model::ListDatasetsRequest::WithNextToken
ListDatasetsRequest & WithNextToken(const char *value)
Definition: ListDatasetsRequest.h:180
Aws::CognitoSync::Model::ListDatasetsRequest::IdentityPoolIdHasBeenSet
bool IdentityPoolIdHasBeenSet() const
Definition: ListDatasetsRequest.h:54
CognitoSyncRequest.h
Aws::CognitoSync::Model::ListDatasetsRequest::GetIdentityId
const Aws::String & GetIdentityId() const
Definition: ListDatasetsRequest.h:97
Aws::CognitoSync::Model::ListDatasetsRequest::WithNextToken
ListDatasetsRequest & WithNextToken(Aws::String &&value)
Definition: ListDatasetsRequest.h:175
Aws::CognitoSync::Model::ListDatasetsRequest::WithIdentityPoolId
ListDatasetsRequest & WithIdentityPoolId(const char *value)
Definition: ListDatasetsRequest.h:90
Aws::CognitoSync::Model::ListDatasetsRequest::WithIdentityId
ListDatasetsRequest & WithIdentityId(Aws::String &&value)
Definition: ListDatasetsRequest.h:133
Aws::CognitoSync::Model::ListDatasetsRequest::WithNextToken
ListDatasetsRequest & WithNextToken(const Aws::String &value)
Definition: ListDatasetsRequest.h:170
Aws::CognitoSync::Model::ListDatasetsRequest::WithIdentityPoolId
ListDatasetsRequest & WithIdentityPoolId(const Aws::String &value)
Definition: ListDatasetsRequest.h:78
Aws::CognitoSync::Model::ListDatasetsRequest::IdentityIdHasBeenSet
bool IdentityIdHasBeenSet() const
Definition: ListDatasetsRequest.h:103