AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
Record.h
1
6#pragma once
7#include <aws/cognito-sync/CognitoSync_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CognitoSync {
21namespace Model {
22
28class Record {
29 public:
30 AWS_COGNITOSYNC_API Record() = default;
31 AWS_COGNITOSYNC_API Record(Aws::Utils::Json::JsonView jsonValue);
32 AWS_COGNITOSYNC_API Record& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_COGNITOSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetKey() const { return m_key; }
40 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
41 template <typename KeyT = Aws::String>
42 void SetKey(KeyT&& value) {
43 m_keyHasBeenSet = true;
44 m_key = std::forward<KeyT>(value);
45 }
46 template <typename KeyT = Aws::String>
47 Record& WithKey(KeyT&& value) {
48 SetKey(std::forward<KeyT>(value));
49 return *this;
50 }
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) {
61 m_valueHasBeenSet = true;
62 m_value = std::forward<ValueT>(value);
63 }
64 template <typename ValueT = Aws::String>
65 Record& WithValue(ValueT&& value) {
66 SetValue(std::forward<ValueT>(value));
67 return *this;
68 }
70
72
75 inline long long GetSyncCount() const { return m_syncCount; }
76 inline bool SyncCountHasBeenSet() const { return m_syncCountHasBeenSet; }
77 inline void SetSyncCount(long long value) {
78 m_syncCountHasBeenSet = true;
79 m_syncCount = value;
80 }
81 inline Record& WithSyncCount(long long value) {
82 SetSyncCount(value);
83 return *this;
84 }
86
88
91 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
92 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
93 template <typename LastModifiedDateT = Aws::Utils::DateTime>
94 void SetLastModifiedDate(LastModifiedDateT&& value) {
95 m_lastModifiedDateHasBeenSet = true;
96 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
97 }
98 template <typename LastModifiedDateT = Aws::Utils::DateTime>
99 Record& WithLastModifiedDate(LastModifiedDateT&& value) {
100 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::String& GetLastModifiedBy() const { return m_lastModifiedBy; }
110 inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }
111 template <typename LastModifiedByT = Aws::String>
112 void SetLastModifiedBy(LastModifiedByT&& value) {
113 m_lastModifiedByHasBeenSet = true;
114 m_lastModifiedBy = std::forward<LastModifiedByT>(value);
115 }
116 template <typename LastModifiedByT = Aws::String>
117 Record& WithLastModifiedBy(LastModifiedByT&& value) {
118 SetLastModifiedBy(std::forward<LastModifiedByT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::Utils::DateTime& GetDeviceLastModifiedDate() const { return m_deviceLastModifiedDate; }
128 inline bool DeviceLastModifiedDateHasBeenSet() const { return m_deviceLastModifiedDateHasBeenSet; }
129 template <typename DeviceLastModifiedDateT = Aws::Utils::DateTime>
130 void SetDeviceLastModifiedDate(DeviceLastModifiedDateT&& value) {
131 m_deviceLastModifiedDateHasBeenSet = true;
132 m_deviceLastModifiedDate = std::forward<DeviceLastModifiedDateT>(value);
133 }
134 template <typename DeviceLastModifiedDateT = Aws::Utils::DateTime>
135 Record& WithDeviceLastModifiedDate(DeviceLastModifiedDateT&& value) {
136 SetDeviceLastModifiedDate(std::forward<DeviceLastModifiedDateT>(value));
137 return *this;
138 }
140 private:
141 Aws::String m_key;
142
143 Aws::String m_value;
144
145 long long m_syncCount{0};
146
147 Aws::Utils::DateTime m_lastModifiedDate{};
148
149 Aws::String m_lastModifiedBy;
150
151 Aws::Utils::DateTime m_deviceLastModifiedDate{};
152 bool m_keyHasBeenSet = false;
153 bool m_valueHasBeenSet = false;
154 bool m_syncCountHasBeenSet = false;
155 bool m_lastModifiedDateHasBeenSet = false;
156 bool m_lastModifiedByHasBeenSet = false;
157 bool m_deviceLastModifiedDateHasBeenSet = false;
158};
159
160} // namespace Model
161} // namespace CognitoSync
162} // namespace Aws
void SetKey(KeyT &&value)
Definition Record.h:42
bool LastModifiedDateHasBeenSet() const
Definition Record.h:92
const Aws::Utils::DateTime & GetDeviceLastModifiedDate() const
Definition Record.h:127
AWS_COGNITOSYNC_API Record()=default
AWS_COGNITOSYNC_API Record & operator=(Aws::Utils::Json::JsonView jsonValue)
Record & WithLastModifiedDate(LastModifiedDateT &&value)
Definition Record.h:99
const Aws::String & GetLastModifiedBy() const
Definition Record.h:109
bool SyncCountHasBeenSet() const
Definition Record.h:76
void SetDeviceLastModifiedDate(DeviceLastModifiedDateT &&value)
Definition Record.h:130
AWS_COGNITOSYNC_API Record(Aws::Utils::Json::JsonView jsonValue)
bool DeviceLastModifiedDateHasBeenSet() const
Definition Record.h:128
void SetSyncCount(long long value)
Definition Record.h:77
AWS_COGNITOSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
Record & WithSyncCount(long long value)
Definition Record.h:81
bool LastModifiedByHasBeenSet() const
Definition Record.h:110
const Aws::String & GetKey() const
Definition Record.h:39
void SetLastModifiedDate(LastModifiedDateT &&value)
Definition Record.h:94
Record & WithKey(KeyT &&value)
Definition Record.h:47
const Aws::String & GetValue() const
Definition Record.h:57
long long GetSyncCount() const
Definition Record.h:75
Record & WithDeviceLastModifiedDate(DeviceLastModifiedDateT &&value)
Definition Record.h:135
Record & WithLastModifiedBy(LastModifiedByT &&value)
Definition Record.h:117
Record & WithValue(ValueT &&value)
Definition Record.h:65
const Aws::Utils::DateTime & GetLastModifiedDate() const
Definition Record.h:91
void SetValue(ValueT &&value)
Definition Record.h:60
void SetLastModifiedBy(LastModifiedByT &&value)
Definition Record.h:112
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue