AWS SDK for C++  1.8.126
AWS SDK for C++
ListRecordsResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace CognitoSync
26 {
27 namespace Model
28 {
35  {
36  public:
40 
41 
45  inline const Aws::Vector<Record>& GetRecords() const{ return m_records; }
46 
50  inline void SetRecords(const Aws::Vector<Record>& value) { m_records = value; }
51 
55  inline void SetRecords(Aws::Vector<Record>&& value) { m_records = std::move(value); }
56 
60  inline ListRecordsResult& WithRecords(const Aws::Vector<Record>& value) { SetRecords(value); return *this;}
61 
65  inline ListRecordsResult& WithRecords(Aws::Vector<Record>&& value) { SetRecords(std::move(value)); return *this;}
66 
70  inline ListRecordsResult& AddRecords(const Record& value) { m_records.push_back(value); return *this; }
71 
75  inline ListRecordsResult& AddRecords(Record&& value) { m_records.push_back(std::move(value)); return *this; }
76 
77 
81  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
82 
86  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
87 
91  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
92 
96  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
97 
101  inline ListRecordsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
102 
106  inline ListRecordsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
107 
111  inline ListRecordsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
112 
113 
117  inline int GetCount() const{ return m_count; }
118 
122  inline void SetCount(int value) { m_count = value; }
123 
127  inline ListRecordsResult& WithCount(int value) { SetCount(value); return *this;}
128 
129 
133  inline long long GetDatasetSyncCount() const{ return m_datasetSyncCount; }
134 
138  inline void SetDatasetSyncCount(long long value) { m_datasetSyncCount = value; }
139 
143  inline ListRecordsResult& WithDatasetSyncCount(long long value) { SetDatasetSyncCount(value); return *this;}
144 
145 
149  inline const Aws::String& GetLastModifiedBy() const{ return m_lastModifiedBy; }
150 
154  inline void SetLastModifiedBy(const Aws::String& value) { m_lastModifiedBy = value; }
155 
159  inline void SetLastModifiedBy(Aws::String&& value) { m_lastModifiedBy = std::move(value); }
160 
164  inline void SetLastModifiedBy(const char* value) { m_lastModifiedBy.assign(value); }
165 
169  inline ListRecordsResult& WithLastModifiedBy(const Aws::String& value) { SetLastModifiedBy(value); return *this;}
170 
174  inline ListRecordsResult& WithLastModifiedBy(Aws::String&& value) { SetLastModifiedBy(std::move(value)); return *this;}
175 
179  inline ListRecordsResult& WithLastModifiedBy(const char* value) { SetLastModifiedBy(value); return *this;}
180 
181 
185  inline const Aws::Vector<Aws::String>& GetMergedDatasetNames() const{ return m_mergedDatasetNames; }
186 
190  inline void SetMergedDatasetNames(const Aws::Vector<Aws::String>& value) { m_mergedDatasetNames = value; }
191 
195  inline void SetMergedDatasetNames(Aws::Vector<Aws::String>&& value) { m_mergedDatasetNames = std::move(value); }
196 
200  inline ListRecordsResult& WithMergedDatasetNames(const Aws::Vector<Aws::String>& value) { SetMergedDatasetNames(value); return *this;}
201 
205  inline ListRecordsResult& WithMergedDatasetNames(Aws::Vector<Aws::String>&& value) { SetMergedDatasetNames(std::move(value)); return *this;}
206 
210  inline ListRecordsResult& AddMergedDatasetNames(const Aws::String& value) { m_mergedDatasetNames.push_back(value); return *this; }
211 
215  inline ListRecordsResult& AddMergedDatasetNames(Aws::String&& value) { m_mergedDatasetNames.push_back(std::move(value)); return *this; }
216 
220  inline ListRecordsResult& AddMergedDatasetNames(const char* value) { m_mergedDatasetNames.push_back(value); return *this; }
221 
222 
226  inline bool GetDatasetExists() const{ return m_datasetExists; }
227 
231  inline void SetDatasetExists(bool value) { m_datasetExists = value; }
232 
236  inline ListRecordsResult& WithDatasetExists(bool value) { SetDatasetExists(value); return *this;}
237 
238 
242  inline bool GetDatasetDeletedAfterRequestedSyncCount() const{ return m_datasetDeletedAfterRequestedSyncCount; }
243 
247  inline void SetDatasetDeletedAfterRequestedSyncCount(bool value) { m_datasetDeletedAfterRequestedSyncCount = value; }
248 
252  inline ListRecordsResult& WithDatasetDeletedAfterRequestedSyncCount(bool value) { SetDatasetDeletedAfterRequestedSyncCount(value); return *this;}
253 
254 
258  inline const Aws::String& GetSyncSessionToken() const{ return m_syncSessionToken; }
259 
263  inline void SetSyncSessionToken(const Aws::String& value) { m_syncSessionToken = value; }
264 
268  inline void SetSyncSessionToken(Aws::String&& value) { m_syncSessionToken = std::move(value); }
269 
273  inline void SetSyncSessionToken(const char* value) { m_syncSessionToken.assign(value); }
274 
278  inline ListRecordsResult& WithSyncSessionToken(const Aws::String& value) { SetSyncSessionToken(value); return *this;}
279 
283  inline ListRecordsResult& WithSyncSessionToken(Aws::String&& value) { SetSyncSessionToken(std::move(value)); return *this;}
284 
288  inline ListRecordsResult& WithSyncSessionToken(const char* value) { SetSyncSessionToken(value); return *this;}
289 
290  private:
291 
292  Aws::Vector<Record> m_records;
293 
294  Aws::String m_nextToken;
295 
296  int m_count;
297 
298  long long m_datasetSyncCount;
299 
300  Aws::String m_lastModifiedBy;
301 
302  Aws::Vector<Aws::String> m_mergedDatasetNames;
303 
304  bool m_datasetExists;
305 
306  bool m_datasetDeletedAfterRequestedSyncCount;
307 
308  Aws::String m_syncSessionToken;
309  };
310 
311 } // namespace Model
312 } // namespace CognitoSync
313 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::CognitoSync::Model::ListRecordsResult::WithRecords
ListRecordsResult & WithRecords(Aws::Vector< Record > &&value)
Definition: ListRecordsResult.h:65
CognitoSync_EXPORTS.h
Aws::CognitoSync::Model::ListRecordsResult::WithNextToken
ListRecordsResult & WithNextToken(const Aws::String &value)
Definition: ListRecordsResult.h:101
Aws::CognitoSync::Model::ListRecordsResult::WithMergedDatasetNames
ListRecordsResult & WithMergedDatasetNames(const Aws::Vector< Aws::String > &value)
Definition: ListRecordsResult.h:200
Aws::CognitoSync::Model::Record
Definition: Record.h:33
Aws::CognitoSync::Model::ListRecordsResult::WithDatasetSyncCount
ListRecordsResult & WithDatasetSyncCount(long long value)
Definition: ListRecordsResult.h:143
Aws::CognitoSync::Model::ListRecordsResult::AddRecords
ListRecordsResult & AddRecords(const Record &value)
Definition: ListRecordsResult.h:70
Aws::CognitoSync::Model::ListRecordsResult::SetDatasetDeletedAfterRequestedSyncCount
void SetDatasetDeletedAfterRequestedSyncCount(bool value)
Definition: ListRecordsResult.h:247
Aws::CognitoSync::Model::ListRecordsResult::SetSyncSessionToken
void SetSyncSessionToken(const char *value)
Definition: ListRecordsResult.h:273
Aws::CognitoSync::Model::ListRecordsResult::WithDatasetDeletedAfterRequestedSyncCount
ListRecordsResult & WithDatasetDeletedAfterRequestedSyncCount(bool value)
Definition: ListRecordsResult.h:252
Aws::CognitoSync::Model::ListRecordsResult::SetRecords
void SetRecords(const Aws::Vector< Record > &value)
Definition: ListRecordsResult.h:50
Aws::CognitoSync::Model::ListRecordsResult::WithLastModifiedBy
ListRecordsResult & WithLastModifiedBy(const Aws::String &value)
Definition: ListRecordsResult.h:169
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CognitoSync::Model::ListRecordsResult::SetDatasetSyncCount
void SetDatasetSyncCount(long long value)
Definition: ListRecordsResult.h:138
Aws::CognitoSync::Model::ListRecordsResult::WithDatasetExists
ListRecordsResult & WithDatasetExists(bool value)
Definition: ListRecordsResult.h:236
Aws::CognitoSync::Model::ListRecordsResult::WithLastModifiedBy
ListRecordsResult & WithLastModifiedBy(const char *value)
Definition: ListRecordsResult.h:179
Aws::CognitoSync::Model::ListRecordsResult::AddMergedDatasetNames
ListRecordsResult & AddMergedDatasetNames(const char *value)
Definition: ListRecordsResult.h:220
Aws::CognitoSync::Model::ListRecordsResult::ListRecordsResult
ListRecordsResult()
AWSVector.h
Aws::CognitoSync::Model::ListRecordsResult::WithMergedDatasetNames
ListRecordsResult & WithMergedDatasetNames(Aws::Vector< Aws::String > &&value)
Definition: ListRecordsResult.h:205
Aws::CognitoSync::Model::ListRecordsResult::operator=
ListRecordsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CognitoSync::Model::ListRecordsResult::AddRecords
ListRecordsResult & AddRecords(Record &&value)
Definition: ListRecordsResult.h:75
Aws::CognitoSync::Model::ListRecordsResult::GetDatasetDeletedAfterRequestedSyncCount
bool GetDatasetDeletedAfterRequestedSyncCount() const
Definition: ListRecordsResult.h:242
Aws::CognitoSync::Model::ListRecordsResult::SetMergedDatasetNames
void SetMergedDatasetNames(const Aws::Vector< Aws::String > &value)
Definition: ListRecordsResult.h:190
Aws::CognitoSync::Model::ListRecordsResult::SetCount
void SetCount(int value)
Definition: ListRecordsResult.h:122
Record.h
Aws::CognitoSync::Model::ListRecordsResult::GetDatasetExists
bool GetDatasetExists() const
Definition: ListRecordsResult.h:226
Aws::CognitoSync::Model::ListRecordsResult::WithSyncSessionToken
ListRecordsResult & WithSyncSessionToken(const Aws::String &value)
Definition: ListRecordsResult.h:278
Aws::CognitoSync::Model::ListRecordsResult::SetSyncSessionToken
void SetSyncSessionToken(const Aws::String &value)
Definition: ListRecordsResult.h:263
Aws::CognitoSync::Model::ListRecordsResult::WithNextToken
ListRecordsResult & WithNextToken(const char *value)
Definition: ListRecordsResult.h:111
Aws::CognitoSync::Model::ListRecordsResult::WithRecords
ListRecordsResult & WithRecords(const Aws::Vector< Record > &value)
Definition: ListRecordsResult.h:60
Aws::CognitoSync::Model::ListRecordsResult::WithSyncSessionToken
ListRecordsResult & WithSyncSessionToken(const char *value)
Definition: ListRecordsResult.h:288
AWSString.h
Aws::CognitoSync::Model::ListRecordsResult::GetRecords
const Aws::Vector< Record > & GetRecords() const
Definition: ListRecordsResult.h:45
Aws::CognitoSync::Model::ListRecordsResult::GetSyncSessionToken
const Aws::String & GetSyncSessionToken() const
Definition: ListRecordsResult.h:258
Aws::CognitoSync::Model::ListRecordsResult::SetLastModifiedBy
void SetLastModifiedBy(const Aws::String &value)
Definition: ListRecordsResult.h:154
Aws::CognitoSync::Model::ListRecordsResult
Definition: ListRecordsResult.h:35
Aws::CognitoSync::Model::ListRecordsResult::WithCount
ListRecordsResult & WithCount(int value)
Definition: ListRecordsResult.h:127
Aws::CognitoSync::Model::ListRecordsResult::SetMergedDatasetNames
void SetMergedDatasetNames(Aws::Vector< Aws::String > &&value)
Definition: ListRecordsResult.h:195
Aws::CognitoSync::Model::ListRecordsResult::SetLastModifiedBy
void SetLastModifiedBy(Aws::String &&value)
Definition: ListRecordsResult.h:159
Aws::CognitoSync::Model::ListRecordsResult::AddMergedDatasetNames
ListRecordsResult & AddMergedDatasetNames(Aws::String &&value)
Definition: ListRecordsResult.h:215
Aws::CognitoSync::Model::ListRecordsResult::ListRecordsResult
ListRecordsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CognitoSync::Model::ListRecordsResult::GetMergedDatasetNames
const Aws::Vector< Aws::String > & GetMergedDatasetNames() const
Definition: ListRecordsResult.h:185
Aws::CognitoSync::Model::ListRecordsResult::SetSyncSessionToken
void SetSyncSessionToken(Aws::String &&value)
Definition: ListRecordsResult.h:268
Aws
Definition: AccessManagementClient.h:15
Aws::CognitoSync::Model::ListRecordsResult::SetRecords
void SetRecords(Aws::Vector< Record > &&value)
Definition: ListRecordsResult.h:55
Aws::CognitoSync::Model::ListRecordsResult::SetDatasetExists
void SetDatasetExists(bool value)
Definition: ListRecordsResult.h:231
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::ListRecordsResult::GetCount
int GetCount() const
Definition: ListRecordsResult.h:117
Aws::CognitoSync::Model::ListRecordsResult::GetDatasetSyncCount
long long GetDatasetSyncCount() const
Definition: ListRecordsResult.h:133
Aws::CognitoSync::Model::ListRecordsResult::WithNextToken
ListRecordsResult & WithNextToken(Aws::String &&value)
Definition: ListRecordsResult.h:106
Aws::CognitoSync::Model::ListRecordsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListRecordsResult.h:86
Aws::CognitoSync::Model::ListRecordsResult::AddMergedDatasetNames
ListRecordsResult & AddMergedDatasetNames(const Aws::String &value)
Definition: ListRecordsResult.h:210
Aws::CognitoSync::Model::ListRecordsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListRecordsResult.h:96
Aws::CognitoSync::Model::ListRecordsResult::WithSyncSessionToken
ListRecordsResult & WithSyncSessionToken(Aws::String &&value)
Definition: ListRecordsResult.h:283
Aws::CognitoSync::Model::ListRecordsResult::SetLastModifiedBy
void SetLastModifiedBy(const char *value)
Definition: ListRecordsResult.h:164
Aws::CognitoSync::Model::ListRecordsResult::WithLastModifiedBy
ListRecordsResult & WithLastModifiedBy(Aws::String &&value)
Definition: ListRecordsResult.h:174
Aws::CognitoSync::Model::ListRecordsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListRecordsResult.h:81
Aws::CognitoSync::Model::ListRecordsResult::GetLastModifiedBy
const Aws::String & GetLastModifiedBy() const
Definition: ListRecordsResult.h:149
Aws::CognitoSync::Model::ListRecordsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListRecordsResult.h:91