AWS SDK for C++  1.8.126
AWS SDK for C++
ListRecordsRequest.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 "ListRecords"; }
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 ListRecordsRequest& WithIdentityPoolId(const Aws::String& value) { SetIdentityPoolId(value); return *this;}
79 
84  inline ListRecordsRequest& WithIdentityPoolId(Aws::String&& value) { SetIdentityPoolId(std::move(value)); return *this;}
85 
90  inline ListRecordsRequest& 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 ListRecordsRequest& WithIdentityId(const Aws::String& value) { SetIdentityId(value); return *this;}
128 
133  inline ListRecordsRequest& WithIdentityId(Aws::String&& value) { SetIdentityId(std::move(value)); return *this;}
134 
139  inline ListRecordsRequest& WithIdentityId(const char* value) { SetIdentityId(value); return *this;}
140 
141 
146  inline const Aws::String& GetDatasetName() const{ return m_datasetName; }
147 
152  inline bool DatasetNameHasBeenSet() const { return m_datasetNameHasBeenSet; }
153 
158  inline void SetDatasetName(const Aws::String& value) { m_datasetNameHasBeenSet = true; m_datasetName = value; }
159 
164  inline void SetDatasetName(Aws::String&& value) { m_datasetNameHasBeenSet = true; m_datasetName = std::move(value); }
165 
170  inline void SetDatasetName(const char* value) { m_datasetNameHasBeenSet = true; m_datasetName.assign(value); }
171 
176  inline ListRecordsRequest& WithDatasetName(const Aws::String& value) { SetDatasetName(value); return *this;}
177 
182  inline ListRecordsRequest& WithDatasetName(Aws::String&& value) { SetDatasetName(std::move(value)); return *this;}
183 
188  inline ListRecordsRequest& WithDatasetName(const char* value) { SetDatasetName(value); return *this;}
189 
190 
194  inline long long GetLastSyncCount() const{ return m_lastSyncCount; }
195 
199  inline bool LastSyncCountHasBeenSet() const { return m_lastSyncCountHasBeenSet; }
200 
204  inline void SetLastSyncCount(long long value) { m_lastSyncCountHasBeenSet = true; m_lastSyncCount = value; }
205 
209  inline ListRecordsRequest& WithLastSyncCount(long long value) { SetLastSyncCount(value); return *this;}
210 
211 
215  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
216 
220  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
221 
225  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
226 
230  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
231 
235  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
236 
240  inline ListRecordsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
241 
245  inline ListRecordsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
246 
250  inline ListRecordsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
251 
252 
256  inline int GetMaxResults() const{ return m_maxResults; }
257 
261  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
262 
266  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
267 
271  inline ListRecordsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
272 
273 
277  inline const Aws::String& GetSyncSessionToken() const{ return m_syncSessionToken; }
278 
282  inline bool SyncSessionTokenHasBeenSet() const { return m_syncSessionTokenHasBeenSet; }
283 
287  inline void SetSyncSessionToken(const Aws::String& value) { m_syncSessionTokenHasBeenSet = true; m_syncSessionToken = value; }
288 
292  inline void SetSyncSessionToken(Aws::String&& value) { m_syncSessionTokenHasBeenSet = true; m_syncSessionToken = std::move(value); }
293 
297  inline void SetSyncSessionToken(const char* value) { m_syncSessionTokenHasBeenSet = true; m_syncSessionToken.assign(value); }
298 
302  inline ListRecordsRequest& WithSyncSessionToken(const Aws::String& value) { SetSyncSessionToken(value); return *this;}
303 
307  inline ListRecordsRequest& WithSyncSessionToken(Aws::String&& value) { SetSyncSessionToken(std::move(value)); return *this;}
308 
312  inline ListRecordsRequest& WithSyncSessionToken(const char* value) { SetSyncSessionToken(value); return *this;}
313 
314  private:
315 
316  Aws::String m_identityPoolId;
317  bool m_identityPoolIdHasBeenSet;
318 
319  Aws::String m_identityId;
320  bool m_identityIdHasBeenSet;
321 
322  Aws::String m_datasetName;
323  bool m_datasetNameHasBeenSet;
324 
325  long long m_lastSyncCount;
326  bool m_lastSyncCountHasBeenSet;
327 
328  Aws::String m_nextToken;
329  bool m_nextTokenHasBeenSet;
330 
331  int m_maxResults;
332  bool m_maxResultsHasBeenSet;
333 
334  Aws::String m_syncSessionToken;
335  bool m_syncSessionTokenHasBeenSet;
336  };
337 
338 } // namespace Model
339 } // namespace CognitoSync
340 } // namespace Aws
Aws::CognitoSync::Model::ListRecordsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListRecordsRequest.h:235
Aws::CognitoSync::Model::ListRecordsRequest::SyncSessionTokenHasBeenSet
bool SyncSessionTokenHasBeenSet() const
Definition: ListRecordsRequest.h:282
Aws::Http::URI
Definition: URI.h:32
Aws::CognitoSync::Model::ListRecordsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListRecordsRequest.h:261
Aws::CognitoSync::Model::ListRecordsRequest::WithNextToken
ListRecordsRequest & WithNextToken(const Aws::String &value)
Definition: ListRecordsRequest.h:240
Aws::CognitoSync::Model::ListRecordsRequest::SetIdentityPoolId
void SetIdentityPoolId(const char *value)
Definition: ListRecordsRequest.h:72
CognitoSync_EXPORTS.h
Aws::CognitoSync::Model::ListRecordsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListRecordsRequest.h:266
Aws::CognitoSync::Model::ListRecordsRequest::WithIdentityPoolId
ListRecordsRequest & WithIdentityPoolId(Aws::String &&value)
Definition: ListRecordsRequest.h:84
Aws::CognitoSync::Model::ListRecordsRequest::SetIdentityPoolId
void SetIdentityPoolId(Aws::String &&value)
Definition: ListRecordsRequest.h:66
Aws::CognitoSync::Model::ListRecordsRequest::WithSyncSessionToken
ListRecordsRequest & WithSyncSessionToken(Aws::String &&value)
Definition: ListRecordsRequest.h:307
Aws::CognitoSync::Model::ListRecordsRequest::IdentityIdHasBeenSet
bool IdentityIdHasBeenSet() const
Definition: ListRecordsRequest.h:103
Aws::CognitoSync::Model::ListRecordsRequest::WithDatasetName
ListRecordsRequest & WithDatasetName(const Aws::String &value)
Definition: ListRecordsRequest.h:176
Aws::CognitoSync::Model::ListRecordsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListRecordsRequest.h:37
Aws::CognitoSync::Model::ListRecordsRequest::WithIdentityId
ListRecordsRequest & WithIdentityId(const Aws::String &value)
Definition: ListRecordsRequest.h:127
Aws::CognitoSync::Model::ListRecordsRequest::WithIdentityId
ListRecordsRequest & WithIdentityId(const char *value)
Definition: ListRecordsRequest.h:139
Aws::CognitoSync::Model::ListRecordsRequest::GetSyncSessionToken
const Aws::String & GetSyncSessionToken() const
Definition: ListRecordsRequest.h:277
Aws::CognitoSync::Model::ListRecordsRequest::SetDatasetName
void SetDatasetName(Aws::String &&value)
Definition: ListRecordsRequest.h:164
Aws::CognitoSync::Model::ListRecordsRequest::SetSyncSessionToken
void SetSyncSessionToken(const char *value)
Definition: ListRecordsRequest.h:297
Aws::CognitoSync::Model::ListRecordsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListRecordsRequest.h:230
Aws::CognitoSync::Model::ListRecordsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListRecordsRequest.h:215
Aws::CognitoSync::Model::ListRecordsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CognitoSync::Model::ListRecordsRequest::WithIdentityPoolId
ListRecordsRequest & WithIdentityPoolId(const char *value)
Definition: ListRecordsRequest.h:90
Aws::CognitoSync::Model::ListRecordsRequest::SetIdentityId
void SetIdentityId(const Aws::String &value)
Definition: ListRecordsRequest.h:109
Aws::CognitoSync::Model::ListRecordsRequest::WithLastSyncCount
ListRecordsRequest & WithLastSyncCount(long long value)
Definition: ListRecordsRequest.h:209
Aws::CognitoSync::Model::ListRecordsRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::CognitoSync::Model::ListRecordsRequest::GetIdentityId
const Aws::String & GetIdentityId() const
Definition: ListRecordsRequest.h:97
Aws::CognitoSync::Model::ListRecordsRequest::LastSyncCountHasBeenSet
bool LastSyncCountHasBeenSet() const
Definition: ListRecordsRequest.h:199
Aws::CognitoSync::Model::ListRecordsRequest::WithSyncSessionToken
ListRecordsRequest & WithSyncSessionToken(const Aws::String &value)
Definition: ListRecordsRequest.h:302
Aws::CognitoSync::Model::ListRecordsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListRecordsRequest.h:220
Aws::CognitoSync::CognitoSyncRequest
Definition: CognitoSyncRequest.h:17
Aws::CognitoSync::Model::ListRecordsRequest
Definition: ListRecordsRequest.h:29
Aws::CognitoSync::Model::ListRecordsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListRecordsRequest.h:256
AWSString.h
Aws::CognitoSync::Model::ListRecordsRequest::WithIdentityId
ListRecordsRequest & WithIdentityId(Aws::String &&value)
Definition: ListRecordsRequest.h:133
Aws::CognitoSync::Model::ListRecordsRequest::GetIdentityPoolId
const Aws::String & GetIdentityPoolId() const
Definition: ListRecordsRequest.h:48
Aws::CognitoSync::Model::ListRecordsRequest::WithNextToken
ListRecordsRequest & WithNextToken(const char *value)
Definition: ListRecordsRequest.h:250
Aws::CognitoSync::Model::ListRecordsRequest::WithMaxResults
ListRecordsRequest & WithMaxResults(int value)
Definition: ListRecordsRequest.h:271
Aws::CognitoSync::Model::ListRecordsRequest::GetDatasetName
const Aws::String & GetDatasetName() const
Definition: ListRecordsRequest.h:146
Aws::CognitoSync::Model::ListRecordsRequest::SetIdentityId
void SetIdentityId(const char *value)
Definition: ListRecordsRequest.h:121
Aws::CognitoSync::Model::ListRecordsRequest::WithDatasetName
ListRecordsRequest & WithDatasetName(const char *value)
Definition: ListRecordsRequest.h:188
Aws::CognitoSync::Model::ListRecordsRequest::WithIdentityPoolId
ListRecordsRequest & WithIdentityPoolId(const Aws::String &value)
Definition: ListRecordsRequest.h:78
Aws::CognitoSync::Model::ListRecordsRequest::WithNextToken
ListRecordsRequest & WithNextToken(Aws::String &&value)
Definition: ListRecordsRequest.h:245
Aws::CognitoSync::Model::ListRecordsRequest::WithSyncSessionToken
ListRecordsRequest & WithSyncSessionToken(const char *value)
Definition: ListRecordsRequest.h:312
Aws::CognitoSync::Model::ListRecordsRequest::GetLastSyncCount
long long GetLastSyncCount() const
Definition: ListRecordsRequest.h:194
Aws::CognitoSync::Model::ListRecordsRequest::DatasetNameHasBeenSet
bool DatasetNameHasBeenSet() const
Definition: ListRecordsRequest.h:152
Aws::CognitoSync::Model::ListRecordsRequest::SetDatasetName
void SetDatasetName(const char *value)
Definition: ListRecordsRequest.h:170
Aws::CognitoSync::Model::ListRecordsRequest::IdentityPoolIdHasBeenSet
bool IdentityPoolIdHasBeenSet() const
Definition: ListRecordsRequest.h:54
Aws::CognitoSync::Model::ListRecordsRequest::WithDatasetName
ListRecordsRequest & WithDatasetName(Aws::String &&value)
Definition: ListRecordsRequest.h:182
Aws
Definition: AccessManagementClient.h:15
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
CognitoSyncRequest.h
Aws::CognitoSync::Model::ListRecordsRequest::SetIdentityPoolId
void SetIdentityPoolId(const Aws::String &value)
Definition: ListRecordsRequest.h:60
Aws::CognitoSync::Model::ListRecordsRequest::SetSyncSessionToken
void SetSyncSessionToken(const Aws::String &value)
Definition: ListRecordsRequest.h:287
Aws::CognitoSync::Model::ListRecordsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListRecordsRequest.h:225
Aws::CognitoSync::Model::ListRecordsRequest::SetDatasetName
void SetDatasetName(const Aws::String &value)
Definition: ListRecordsRequest.h:158
Aws::CognitoSync::Model::ListRecordsRequest::SetSyncSessionToken
void SetSyncSessionToken(Aws::String &&value)
Definition: ListRecordsRequest.h:292
Aws::CognitoSync::Model::ListRecordsRequest::ListRecordsRequest
ListRecordsRequest()
Aws::CognitoSync::Model::ListRecordsRequest::SetIdentityId
void SetIdentityId(Aws::String &&value)
Definition: ListRecordsRequest.h:115
Aws::CognitoSync::Model::ListRecordsRequest::SetLastSyncCount
void SetLastSyncCount(long long value)
Definition: ListRecordsRequest.h:204