AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Record.h
1
6#pragma once
7#include <aws/cognito-sync/CognitoSync_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CognitoSync
23{
24namespace Model
25{
26
32 class Record
33 {
34 public:
35 AWS_COGNITOSYNC_API Record() = default;
36 AWS_COGNITOSYNC_API Record(Aws::Utils::Json::JsonView jsonValue);
37 AWS_COGNITOSYNC_API Record& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COGNITOSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetKey() const { return m_key; }
46 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
47 template<typename KeyT = Aws::String>
48 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
49 template<typename KeyT = Aws::String>
50 Record& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
52
54
57 inline const Aws::String& GetValue() const { return m_value; }
58 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
59 template<typename ValueT = Aws::String>
60 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
61 template<typename ValueT = Aws::String>
62 Record& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
64
66
69 inline long long GetSyncCount() const { return m_syncCount; }
70 inline bool SyncCountHasBeenSet() const { return m_syncCountHasBeenSet; }
71 inline void SetSyncCount(long long value) { m_syncCountHasBeenSet = true; m_syncCount = value; }
72 inline Record& WithSyncCount(long long value) { SetSyncCount(value); return *this;}
74
76
79 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
80 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
81 template<typename LastModifiedDateT = Aws::Utils::DateTime>
82 void SetLastModifiedDate(LastModifiedDateT&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::forward<LastModifiedDateT>(value); }
83 template<typename LastModifiedDateT = Aws::Utils::DateTime>
84 Record& WithLastModifiedDate(LastModifiedDateT&& value) { SetLastModifiedDate(std::forward<LastModifiedDateT>(value)); return *this;}
86
88
91 inline const Aws::String& GetLastModifiedBy() const { return m_lastModifiedBy; }
92 inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }
93 template<typename LastModifiedByT = Aws::String>
94 void SetLastModifiedBy(LastModifiedByT&& value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy = std::forward<LastModifiedByT>(value); }
95 template<typename LastModifiedByT = Aws::String>
96 Record& WithLastModifiedBy(LastModifiedByT&& value) { SetLastModifiedBy(std::forward<LastModifiedByT>(value)); return *this;}
98
100
103 inline const Aws::Utils::DateTime& GetDeviceLastModifiedDate() const { return m_deviceLastModifiedDate; }
104 inline bool DeviceLastModifiedDateHasBeenSet() const { return m_deviceLastModifiedDateHasBeenSet; }
105 template<typename DeviceLastModifiedDateT = Aws::Utils::DateTime>
106 void SetDeviceLastModifiedDate(DeviceLastModifiedDateT&& value) { m_deviceLastModifiedDateHasBeenSet = true; m_deviceLastModifiedDate = std::forward<DeviceLastModifiedDateT>(value); }
107 template<typename DeviceLastModifiedDateT = Aws::Utils::DateTime>
108 Record& WithDeviceLastModifiedDate(DeviceLastModifiedDateT&& value) { SetDeviceLastModifiedDate(std::forward<DeviceLastModifiedDateT>(value)); return *this;}
110 private:
111
112 Aws::String m_key;
113 bool m_keyHasBeenSet = false;
114
115 Aws::String m_value;
116 bool m_valueHasBeenSet = false;
117
118 long long m_syncCount{0};
119 bool m_syncCountHasBeenSet = false;
120
121 Aws::Utils::DateTime m_lastModifiedDate{};
122 bool m_lastModifiedDateHasBeenSet = false;
123
124 Aws::String m_lastModifiedBy;
125 bool m_lastModifiedByHasBeenSet = false;
126
127 Aws::Utils::DateTime m_deviceLastModifiedDate{};
128 bool m_deviceLastModifiedDateHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace CognitoSync
133} // namespace Aws
void SetKey(KeyT &&value)
Definition Record.h:48
bool LastModifiedDateHasBeenSet() const
Definition Record.h:80
const Aws::Utils::DateTime & GetDeviceLastModifiedDate() const
Definition Record.h:103
AWS_COGNITOSYNC_API Record()=default
AWS_COGNITOSYNC_API Record & operator=(Aws::Utils::Json::JsonView jsonValue)
Record & WithLastModifiedDate(LastModifiedDateT &&value)
Definition Record.h:84
const Aws::String & GetLastModifiedBy() const
Definition Record.h:91
bool SyncCountHasBeenSet() const
Definition Record.h:70
void SetDeviceLastModifiedDate(DeviceLastModifiedDateT &&value)
Definition Record.h:106
AWS_COGNITOSYNC_API Record(Aws::Utils::Json::JsonView jsonValue)
bool DeviceLastModifiedDateHasBeenSet() const
Definition Record.h:104
void SetSyncCount(long long value)
Definition Record.h:71
AWS_COGNITOSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
Record & WithSyncCount(long long value)
Definition Record.h:72
bool LastModifiedByHasBeenSet() const
Definition Record.h:92
const Aws::String & GetKey() const
Definition Record.h:45
void SetLastModifiedDate(LastModifiedDateT &&value)
Definition Record.h:82
Record & WithKey(KeyT &&value)
Definition Record.h:50
const Aws::String & GetValue() const
Definition Record.h:57
long long GetSyncCount() const
Definition Record.h:69
Record & WithDeviceLastModifiedDate(DeviceLastModifiedDateT &&value)
Definition Record.h:108
Record & WithLastModifiedBy(LastModifiedByT &&value)
Definition Record.h:96
Record & WithValue(ValueT &&value)
Definition Record.h:62
const Aws::Utils::DateTime & GetLastModifiedDate() const
Definition Record.h:79
void SetValue(ValueT &&value)
Definition Record.h:60
void SetLastModifiedBy(LastModifiedByT &&value)
Definition Record.h:94
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue