AWS SDK for C++  1.8.126
AWS SDK for C++
Record.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace CognitoSync
23 {
24 namespace Model
25 {
26 
33  {
34  public:
35  Record();
39 
40 
44  inline const Aws::String& GetKey() const{ return m_key; }
45 
49  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
50 
54  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
55 
59  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
60 
64  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
65 
69  inline Record& WithKey(const Aws::String& value) { SetKey(value); return *this;}
70 
74  inline Record& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
75 
79  inline Record& WithKey(const char* value) { SetKey(value); return *this;}
80 
81 
85  inline const Aws::String& GetValue() const{ return m_value; }
86 
90  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
91 
95  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
96 
100  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
101 
105  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
106 
110  inline Record& WithValue(const Aws::String& value) { SetValue(value); return *this;}
111 
115  inline Record& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
116 
120  inline Record& WithValue(const char* value) { SetValue(value); return *this;}
121 
122 
126  inline long long GetSyncCount() const{ return m_syncCount; }
127 
131  inline bool SyncCountHasBeenSet() const { return m_syncCountHasBeenSet; }
132 
136  inline void SetSyncCount(long long value) { m_syncCountHasBeenSet = true; m_syncCount = value; }
137 
141  inline Record& WithSyncCount(long long value) { SetSyncCount(value); return *this;}
142 
143 
147  inline const Aws::Utils::DateTime& GetLastModifiedDate() const{ return m_lastModifiedDate; }
148 
152  inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
153 
157  inline void SetLastModifiedDate(const Aws::Utils::DateTime& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
158 
162  inline void SetLastModifiedDate(Aws::Utils::DateTime&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::move(value); }
163 
167  inline Record& WithLastModifiedDate(const Aws::Utils::DateTime& value) { SetLastModifiedDate(value); return *this;}
168 
172  inline Record& WithLastModifiedDate(Aws::Utils::DateTime&& value) { SetLastModifiedDate(std::move(value)); return *this;}
173 
174 
178  inline const Aws::String& GetLastModifiedBy() const{ return m_lastModifiedBy; }
179 
183  inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }
184 
188  inline void SetLastModifiedBy(const Aws::String& value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy = value; }
189 
193  inline void SetLastModifiedBy(Aws::String&& value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy = std::move(value); }
194 
198  inline void SetLastModifiedBy(const char* value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy.assign(value); }
199 
203  inline Record& WithLastModifiedBy(const Aws::String& value) { SetLastModifiedBy(value); return *this;}
204 
208  inline Record& WithLastModifiedBy(Aws::String&& value) { SetLastModifiedBy(std::move(value)); return *this;}
209 
213  inline Record& WithLastModifiedBy(const char* value) { SetLastModifiedBy(value); return *this;}
214 
215 
219  inline const Aws::Utils::DateTime& GetDeviceLastModifiedDate() const{ return m_deviceLastModifiedDate; }
220 
224  inline bool DeviceLastModifiedDateHasBeenSet() const { return m_deviceLastModifiedDateHasBeenSet; }
225 
229  inline void SetDeviceLastModifiedDate(const Aws::Utils::DateTime& value) { m_deviceLastModifiedDateHasBeenSet = true; m_deviceLastModifiedDate = value; }
230 
234  inline void SetDeviceLastModifiedDate(Aws::Utils::DateTime&& value) { m_deviceLastModifiedDateHasBeenSet = true; m_deviceLastModifiedDate = std::move(value); }
235 
239  inline Record& WithDeviceLastModifiedDate(const Aws::Utils::DateTime& value) { SetDeviceLastModifiedDate(value); return *this;}
240 
244  inline Record& WithDeviceLastModifiedDate(Aws::Utils::DateTime&& value) { SetDeviceLastModifiedDate(std::move(value)); return *this;}
245 
246  private:
247 
248  Aws::String m_key;
249  bool m_keyHasBeenSet;
250 
251  Aws::String m_value;
252  bool m_valueHasBeenSet;
253 
254  long long m_syncCount;
255  bool m_syncCountHasBeenSet;
256 
257  Aws::Utils::DateTime m_lastModifiedDate;
258  bool m_lastModifiedDateHasBeenSet;
259 
260  Aws::String m_lastModifiedBy;
261  bool m_lastModifiedByHasBeenSet;
262 
263  Aws::Utils::DateTime m_deviceLastModifiedDate;
264  bool m_deviceLastModifiedDateHasBeenSet;
265  };
266 
267 } // namespace Model
268 } // namespace CognitoSync
269 } // namespace Aws
Aws::CognitoSync::Model::Record::WithSyncCount
Record & WithSyncCount(long long value)
Definition: Record.h:141
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::CognitoSync::Model::Record::SetValue
void SetValue(const Aws::String &value)
Definition: Record.h:95
Aws::CognitoSync::Model::Record::LastModifiedDateHasBeenSet
bool LastModifiedDateHasBeenSet() const
Definition: Record.h:152
Aws::CognitoSync::Model::Record::WithDeviceLastModifiedDate
Record & WithDeviceLastModifiedDate(const Aws::Utils::DateTime &value)
Definition: Record.h:239
Aws::CognitoSync::Model::Record::SetLastModifiedBy
void SetLastModifiedBy(Aws::String &&value)
Definition: Record.h:193
Aws::CognitoSync::Model::Record::SetDeviceLastModifiedDate
void SetDeviceLastModifiedDate(Aws::Utils::DateTime &&value)
Definition: Record.h:234
CognitoSync_EXPORTS.h
Aws::CognitoSync::Model::Record::Record
Record()
Aws::CognitoSync::Model::Record::WithValue
Record & WithValue(const char *value)
Definition: Record.h:120
Aws::CognitoSync::Model::Record::SetKey
void SetKey(Aws::String &&value)
Definition: Record.h:59
Aws::CognitoSync::Model::Record
Definition: Record.h:33
Aws::CognitoSync::Model::Record::operator=
Record & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::CognitoSync::Model::Record::WithLastModifiedDate
Record & WithLastModifiedDate(const Aws::Utils::DateTime &value)
Definition: Record.h:167
DateTime.h
Aws::CognitoSync::Model::Record::LastModifiedByHasBeenSet
bool LastModifiedByHasBeenSet() const
Definition: Record.h:183
Aws::CognitoSync::Model::Record::WithDeviceLastModifiedDate
Record & WithDeviceLastModifiedDate(Aws::Utils::DateTime &&value)
Definition: Record.h:244
Aws::CognitoSync::Model::Record::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::CognitoSync::Model::Record::GetSyncCount
long long GetSyncCount() const
Definition: Record.h:126
Aws::CognitoSync::Model::Record::GetDeviceLastModifiedDate
const Aws::Utils::DateTime & GetDeviceLastModifiedDate() const
Definition: Record.h:219
Aws::CognitoSync::Model::Record::WithLastModifiedBy
Record & WithLastModifiedBy(Aws::String &&value)
Definition: Record.h:208
Aws::CognitoSync::Model::Record::SetValue
void SetValue(Aws::String &&value)
Definition: Record.h:100
Aws::CognitoSync::Model::Record::WithKey
Record & WithKey(Aws::String &&value)
Definition: Record.h:74
Aws::CognitoSync::Model::Record::DeviceLastModifiedDateHasBeenSet
bool DeviceLastModifiedDateHasBeenSet() const
Definition: Record.h:224
Aws::CognitoSync::Model::Record::Record
Record(Aws::Utils::Json::JsonView jsonValue)
Aws::CognitoSync::Model::Record::GetLastModifiedDate
const Aws::Utils::DateTime & GetLastModifiedDate() const
Definition: Record.h:147
Aws::CognitoSync::Model::Record::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: Record.h:49
Aws::CognitoSync::Model::Record::SyncCountHasBeenSet
bool SyncCountHasBeenSet() const
Definition: Record.h:131
Aws::CognitoSync::Model::Record::SetLastModifiedBy
void SetLastModifiedBy(const char *value)
Definition: Record.h:198
Aws::CognitoSync::Model::Record::SetValue
void SetValue(const char *value)
Definition: Record.h:105
Aws::CognitoSync::Model::Record::SetLastModifiedDate
void SetLastModifiedDate(const Aws::Utils::DateTime &value)
Definition: Record.h:157
Aws::CognitoSync::Model::Record::SetDeviceLastModifiedDate
void SetDeviceLastModifiedDate(const Aws::Utils::DateTime &value)
Definition: Record.h:229
Aws::CognitoSync::Model::Record::GetValue
const Aws::String & GetValue() const
Definition: Record.h:85
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::CognitoSync::Model::Record::SetSyncCount
void SetSyncCount(long long value)
Definition: Record.h:136
Aws::CognitoSync::Model::Record::WithLastModifiedBy
Record & WithLastModifiedBy(const char *value)
Definition: Record.h:213
Aws::CognitoSync::Model::Record::WithKey
Record & WithKey(const char *value)
Definition: Record.h:79
Aws::CognitoSync::Model::Record::WithKey
Record & WithKey(const Aws::String &value)
Definition: Record.h:69
Aws::CognitoSync::Model::Record::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: Record.h:90
Aws::CognitoSync::Model::Record::WithLastModifiedBy
Record & WithLastModifiedBy(const Aws::String &value)
Definition: Record.h:203
Aws
Definition: AccessManagementClient.h:15
AWS_COGNITOSYNC_API
#define AWS_COGNITOSYNC_API
Definition: CognitoSync_EXPORTS.h:28
Aws::CognitoSync::Model::Record::SetKey
void SetKey(const Aws::String &value)
Definition: Record.h:54
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CognitoSync::Model::Record::GetLastModifiedBy
const Aws::String & GetLastModifiedBy() const
Definition: Record.h:178
Aws::CognitoSync::Model::Record::GetKey
const Aws::String & GetKey() const
Definition: Record.h:44
Aws::CognitoSync::Model::Record::WithLastModifiedDate
Record & WithLastModifiedDate(Aws::Utils::DateTime &&value)
Definition: Record.h:172
Aws::CognitoSync::Model::Record::SetLastModifiedBy
void SetLastModifiedBy(const Aws::String &value)
Definition: Record.h:188
Aws::CognitoSync::Model::Record::SetLastModifiedDate
void SetLastModifiedDate(Aws::Utils::DateTime &&value)
Definition: Record.h:162
Aws::CognitoSync::Model::Record::WithValue
Record & WithValue(Aws::String &&value)
Definition: Record.h:115
Aws::CognitoSync::Model::Record::WithValue
Record & WithValue(const Aws::String &value)
Definition: Record.h:110
Aws::CognitoSync::Model::Record::SetKey
void SetKey(const char *value)
Definition: Record.h:64