AWS SDK for C++  0.14.3
AWS SDK for C++
ListRecordsResult.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
20 
21 namespace Aws
22 {
23 template<typename RESULT_TYPE>
24 class AmazonWebServiceResult;
25 
26 namespace Utils
27 {
28 namespace Json
29 {
30  class JsonValue;
31 } // namespace Json
32 } // namespace Utils
33 namespace CognitoSync
34 {
35 namespace Model
36 {
41  {
42  public:
46 
50  inline const Aws::Vector<Record>& GetRecords() const{ return m_records; }
51 
55  inline void SetRecords(const Aws::Vector<Record>& value) { m_records = value; }
56 
60  inline void SetRecords(Aws::Vector<Record>&& value) { m_records = value; }
61 
65  inline ListRecordsResult& WithRecords(const Aws::Vector<Record>& value) { SetRecords(value); return *this;}
66 
70  inline ListRecordsResult& WithRecords(Aws::Vector<Record>&& value) { SetRecords(value); return *this;}
71 
75  inline ListRecordsResult& AddRecords(const Record& value) { m_records.push_back(value); return *this; }
76 
80  inline ListRecordsResult& AddRecords(Record&& value) { m_records.push_back(value); return *this; }
81 
85  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
86 
90  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
91 
95  inline void SetNextToken(Aws::String&& value) { m_nextToken = value; }
96 
100  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
101 
105  inline ListRecordsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
106 
110  inline ListRecordsResult& WithNextToken(Aws::String&& value) { SetNextToken(value); return *this;}
111 
115  inline ListRecordsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
116 
120  inline int GetCount() const{ return m_count; }
121 
125  inline void SetCount(int value) { m_count = value; }
126 
130  inline ListRecordsResult& WithCount(int value) { SetCount(value); return *this;}
131 
135  inline long long GetDatasetSyncCount() const{ return m_datasetSyncCount; }
136 
140  inline void SetDatasetSyncCount(long long value) { m_datasetSyncCount = value; }
141 
145  inline ListRecordsResult& WithDatasetSyncCount(long long value) { SetDatasetSyncCount(value); return *this;}
146 
150  inline const Aws::String& GetLastModifiedBy() const{ return m_lastModifiedBy; }
151 
155  inline void SetLastModifiedBy(const Aws::String& value) { m_lastModifiedBy = value; }
156 
160  inline void SetLastModifiedBy(Aws::String&& value) { m_lastModifiedBy = value; }
161 
165  inline void SetLastModifiedBy(const char* value) { m_lastModifiedBy.assign(value); }
166 
170  inline ListRecordsResult& WithLastModifiedBy(const Aws::String& value) { SetLastModifiedBy(value); return *this;}
171 
175  inline ListRecordsResult& WithLastModifiedBy(Aws::String&& value) { SetLastModifiedBy(value); return *this;}
176 
180  inline ListRecordsResult& WithLastModifiedBy(const char* value) { SetLastModifiedBy(value); return *this;}
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 = 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(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(value); return *this; }
216 
220  inline ListRecordsResult& AddMergedDatasetNames(const char* value) { m_mergedDatasetNames.push_back(value); return *this; }
221 
225  inline bool GetDatasetExists() const{ return m_datasetExists; }
226 
230  inline void SetDatasetExists(bool value) { m_datasetExists = value; }
231 
235  inline ListRecordsResult& WithDatasetExists(bool value) { SetDatasetExists(value); return *this;}
236 
240  inline bool GetDatasetDeletedAfterRequestedSyncCount() const{ return m_datasetDeletedAfterRequestedSyncCount; }
241 
245  inline void SetDatasetDeletedAfterRequestedSyncCount(bool value) { m_datasetDeletedAfterRequestedSyncCount = value; }
246 
250  inline ListRecordsResult& WithDatasetDeletedAfterRequestedSyncCount(bool value) { SetDatasetDeletedAfterRequestedSyncCount(value); return *this;}
251 
255  inline const Aws::String& GetSyncSessionToken() const{ return m_syncSessionToken; }
256 
260  inline void SetSyncSessionToken(const Aws::String& value) { m_syncSessionToken = value; }
261 
265  inline void SetSyncSessionToken(Aws::String&& value) { m_syncSessionToken = value; }
266 
270  inline void SetSyncSessionToken(const char* value) { m_syncSessionToken.assign(value); }
271 
275  inline ListRecordsResult& WithSyncSessionToken(const Aws::String& value) { SetSyncSessionToken(value); return *this;}
276 
280  inline ListRecordsResult& WithSyncSessionToken(Aws::String&& value) { SetSyncSessionToken(value); return *this;}
281 
285  inline ListRecordsResult& WithSyncSessionToken(const char* value) { SetSyncSessionToken(value); return *this;}
286 
287  private:
288  Aws::Vector<Record> m_records;
289  Aws::String m_nextToken;
290  int m_count;
291  long long m_datasetSyncCount;
292  Aws::String m_lastModifiedBy;
293  Aws::Vector<Aws::String> m_mergedDatasetNames;
294  bool m_datasetExists;
295  bool m_datasetDeletedAfterRequestedSyncCount;
296  Aws::String m_syncSessionToken;
297  };
298 
299 } // namespace Model
300 } // namespace CognitoSync
301 } // namespace Aws
ListRecordsResult & WithLastModifiedBy(const Aws::String &value)
ListRecordsResult & WithLastModifiedBy(Aws::String &&value)
void SetNextToken(const Aws::String &value)
ListRecordsResult & WithDatasetSyncCount(long long value)
void SetLastModifiedBy(const Aws::String &value)
ListRecordsResult & WithCount(int value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
ListRecordsResult & WithDatasetExists(bool value)
const Aws::Vector< Aws::String > & GetMergedDatasetNames() const
void SetRecords(Aws::Vector< Record > &&value)
ListRecordsResult & WithSyncSessionToken(const Aws::String &value)
ListRecordsResult & WithRecords(const Aws::Vector< Record > &value)
ListRecordsResult & WithLastModifiedBy(const char *value)
const Aws::String & GetNextToken() const
ListRecordsResult & WithNextToken(const char *value)
ListRecordsResult & AddMergedDatasetNames(const Aws::String &value)
void SetSyncSessionToken(const Aws::String &value)
void SetMergedDatasetNames(Aws::Vector< Aws::String > &&value)
ListRecordsResult & WithNextToken(Aws::String &&value)
ListRecordsResult & WithDatasetDeletedAfterRequestedSyncCount(bool value)
const Aws::String & GetSyncSessionToken() const
void SetRecords(const Aws::Vector< Record > &value)
ListRecordsResult & AddMergedDatasetNames(const char *value)
const Aws::Vector< Record > & GetRecords() const
ListRecordsResult & AddMergedDatasetNames(Aws::String &&value)
ListRecordsResult & WithRecords(Aws::Vector< Record > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ListRecordsResult & WithSyncSessionToken(Aws::String &&value)
ListRecordsResult & AddRecords(Record &&value)
void SetMergedDatasetNames(const Aws::Vector< Aws::String > &value)
ListRecordsResult & AddRecords(const Record &value)
ListRecordsResult & WithSyncSessionToken(const char *value)
ListRecordsResult & WithNextToken(const Aws::String &value)
#define AWS_COGNITOSYNC_API
ListRecordsResult & WithMergedDatasetNames(const Aws::Vector< Aws::String > &value)
const Aws::String & GetLastModifiedBy() const
JSON (JavaScript Object Notation).
ListRecordsResult & WithMergedDatasetNames(Aws::Vector< Aws::String > &&value)