AWS SDK for C++  0.14.3
AWS SDK for C++
ListRecordsRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace Http
23 {
24  class URI;
25 } //namespace Http
26 namespace CognitoSync
27 {
28 namespace Model
29 {
30 
35  {
36  public:
38  Aws::String SerializePayload() const override;
39 
40  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41 
46  inline const Aws::String& GetIdentityPoolId() const{ return m_identityPoolId; }
47 
52  inline void SetIdentityPoolId(const Aws::String& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = value; }
53 
58  inline void SetIdentityPoolId(Aws::String&& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = value; }
59 
64  inline void SetIdentityPoolId(const char* value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId.assign(value); }
65 
70  inline ListRecordsRequest& WithIdentityPoolId(const Aws::String& value) { SetIdentityPoolId(value); return *this;}
71 
76  inline ListRecordsRequest& WithIdentityPoolId(Aws::String&& value) { SetIdentityPoolId(value); return *this;}
77 
82  inline ListRecordsRequest& WithIdentityPoolId(const char* value) { SetIdentityPoolId(value); return *this;}
83 
88  inline const Aws::String& GetIdentityId() const{ return m_identityId; }
89 
94  inline void SetIdentityId(const Aws::String& value) { m_identityIdHasBeenSet = true; m_identityId = value; }
95 
100  inline void SetIdentityId(Aws::String&& value) { m_identityIdHasBeenSet = true; m_identityId = value; }
101 
106  inline void SetIdentityId(const char* value) { m_identityIdHasBeenSet = true; m_identityId.assign(value); }
107 
112  inline ListRecordsRequest& WithIdentityId(const Aws::String& value) { SetIdentityId(value); return *this;}
113 
118  inline ListRecordsRequest& WithIdentityId(Aws::String&& value) { SetIdentityId(value); return *this;}
119 
124  inline ListRecordsRequest& WithIdentityId(const char* value) { SetIdentityId(value); return *this;}
125 
130  inline const Aws::String& GetDatasetName() const{ return m_datasetName; }
131 
136  inline void SetDatasetName(const Aws::String& value) { m_datasetNameHasBeenSet = true; m_datasetName = value; }
137 
142  inline void SetDatasetName(Aws::String&& value) { m_datasetNameHasBeenSet = true; m_datasetName = value; }
143 
148  inline void SetDatasetName(const char* value) { m_datasetNameHasBeenSet = true; m_datasetName.assign(value); }
149 
154  inline ListRecordsRequest& WithDatasetName(const Aws::String& value) { SetDatasetName(value); return *this;}
155 
160  inline ListRecordsRequest& WithDatasetName(Aws::String&& value) { SetDatasetName(value); return *this;}
161 
166  inline ListRecordsRequest& WithDatasetName(const char* value) { SetDatasetName(value); return *this;}
167 
171  inline long long GetLastSyncCount() const{ return m_lastSyncCount; }
172 
176  inline void SetLastSyncCount(long long value) { m_lastSyncCountHasBeenSet = true; m_lastSyncCount = value; }
177 
181  inline ListRecordsRequest& WithLastSyncCount(long long value) { SetLastSyncCount(value); return *this;}
182 
186  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
187 
191  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
192 
196  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
197 
201  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
202 
206  inline ListRecordsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
207 
211  inline ListRecordsRequest& WithNextToken(Aws::String&& value) { SetNextToken(value); return *this;}
212 
216  inline ListRecordsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
217 
221  inline int GetMaxResults() const{ return m_maxResults; }
222 
226  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
227 
231  inline ListRecordsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
232 
236  inline const Aws::String& GetSyncSessionToken() const{ return m_syncSessionToken; }
237 
241  inline void SetSyncSessionToken(const Aws::String& value) { m_syncSessionTokenHasBeenSet = true; m_syncSessionToken = value; }
242 
246  inline void SetSyncSessionToken(Aws::String&& value) { m_syncSessionTokenHasBeenSet = true; m_syncSessionToken = value; }
247 
251  inline void SetSyncSessionToken(const char* value) { m_syncSessionTokenHasBeenSet = true; m_syncSessionToken.assign(value); }
252 
256  inline ListRecordsRequest& WithSyncSessionToken(const Aws::String& value) { SetSyncSessionToken(value); return *this;}
257 
261  inline ListRecordsRequest& WithSyncSessionToken(Aws::String&& value) { SetSyncSessionToken(value); return *this;}
262 
266  inline ListRecordsRequest& WithSyncSessionToken(const char* value) { SetSyncSessionToken(value); return *this;}
267 
268  private:
269  Aws::String m_identityPoolId;
270  bool m_identityPoolIdHasBeenSet;
271  Aws::String m_identityId;
272  bool m_identityIdHasBeenSet;
273  Aws::String m_datasetName;
274  bool m_datasetNameHasBeenSet;
275  long long m_lastSyncCount;
276  bool m_lastSyncCountHasBeenSet;
277  Aws::String m_nextToken;
278  bool m_nextTokenHasBeenSet;
279  int m_maxResults;
280  bool m_maxResultsHasBeenSet;
281  Aws::String m_syncSessionToken;
282  bool m_syncSessionTokenHasBeenSet;
283  };
284 
285 } // namespace Model
286 } // namespace CognitoSync
287 } // namespace Aws
ListRecordsRequest & WithIdentityId(const Aws::String &value)
void SetIdentityId(const Aws::String &value)
ListRecordsRequest & WithSyncSessionToken(const Aws::String &value)
ListRecordsRequest & WithDatasetName(const char *value)
ListRecordsRequest & WithNextToken(Aws::String &&value)
void SetSyncSessionToken(const Aws::String &value)
ListRecordsRequest & WithDatasetName(const Aws::String &value)
void SetDatasetName(const Aws::String &value)
ListRecordsRequest & WithIdentityPoolId(const Aws::String &value)
ListRecordsRequest & WithIdentityPoolId(Aws::String &&value)
void SetNextToken(const Aws::String &value)
ListRecordsRequest & WithIdentityPoolId(const char *value)
void SetIdentityPoolId(const Aws::String &value)
const Aws::String & GetIdentityPoolId() const
ListRecordsRequest & WithIdentityId(Aws::String &&value)
ListRecordsRequest & WithNextToken(const Aws::String &value)
ListRecordsRequest & WithIdentityId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ListRecordsRequest & WithNextToken(const char *value)
ListRecordsRequest & WithLastSyncCount(long long value)
ListRecordsRequest & WithSyncSessionToken(const char *value)
const Aws::String & GetIdentityId() const
#define AWS_COGNITOSYNC_API
const Aws::String & GetSyncSessionToken() const
ListRecordsRequest & WithDatasetName(Aws::String &&value)
ListRecordsRequest & WithSyncSessionToken(Aws::String &&value)
JSON (JavaScript Object Notation).
ListRecordsRequest & WithMaxResults(int value)