AWS SDK for C++  1.8.126
AWS SDK for C++
RecordPatch.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace CognitoSync
24 {
25 namespace Model
26 {
27 
34  {
35  public:
40 
41 
45  inline const Operation& GetOp() const{ return m_op; }
46 
50  inline bool OpHasBeenSet() const { return m_opHasBeenSet; }
51 
55  inline void SetOp(const Operation& value) { m_opHasBeenSet = true; m_op = value; }
56 
60  inline void SetOp(Operation&& value) { m_opHasBeenSet = true; m_op = std::move(value); }
61 
65  inline RecordPatch& WithOp(const Operation& value) { SetOp(value); return *this;}
66 
70  inline RecordPatch& WithOp(Operation&& value) { SetOp(std::move(value)); return *this;}
71 
72 
76  inline const Aws::String& GetKey() const{ return m_key; }
77 
81  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
82 
86  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
87 
91  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
92 
96  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
97 
101  inline RecordPatch& WithKey(const Aws::String& value) { SetKey(value); return *this;}
102 
106  inline RecordPatch& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
107 
111  inline RecordPatch& WithKey(const char* value) { SetKey(value); return *this;}
112 
113 
117  inline const Aws::String& GetValue() const{ return m_value; }
118 
122  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
123 
127  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
128 
132  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
133 
137  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
138 
142  inline RecordPatch& WithValue(const Aws::String& value) { SetValue(value); return *this;}
143 
147  inline RecordPatch& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
148 
152  inline RecordPatch& WithValue(const char* value) { SetValue(value); return *this;}
153 
154 
158  inline long long GetSyncCount() const{ return m_syncCount; }
159 
163  inline bool SyncCountHasBeenSet() const { return m_syncCountHasBeenSet; }
164 
168  inline void SetSyncCount(long long value) { m_syncCountHasBeenSet = true; m_syncCount = value; }
169 
173  inline RecordPatch& WithSyncCount(long long value) { SetSyncCount(value); return *this;}
174 
175 
179  inline const Aws::Utils::DateTime& GetDeviceLastModifiedDate() const{ return m_deviceLastModifiedDate; }
180 
184  inline bool DeviceLastModifiedDateHasBeenSet() const { return m_deviceLastModifiedDateHasBeenSet; }
185 
189  inline void SetDeviceLastModifiedDate(const Aws::Utils::DateTime& value) { m_deviceLastModifiedDateHasBeenSet = true; m_deviceLastModifiedDate = value; }
190 
194  inline void SetDeviceLastModifiedDate(Aws::Utils::DateTime&& value) { m_deviceLastModifiedDateHasBeenSet = true; m_deviceLastModifiedDate = std::move(value); }
195 
199  inline RecordPatch& WithDeviceLastModifiedDate(const Aws::Utils::DateTime& value) { SetDeviceLastModifiedDate(value); return *this;}
200 
204  inline RecordPatch& WithDeviceLastModifiedDate(Aws::Utils::DateTime&& value) { SetDeviceLastModifiedDate(std::move(value)); return *this;}
205 
206  private:
207 
208  Operation m_op;
209  bool m_opHasBeenSet;
210 
211  Aws::String m_key;
212  bool m_keyHasBeenSet;
213 
214  Aws::String m_value;
215  bool m_valueHasBeenSet;
216 
217  long long m_syncCount;
218  bool m_syncCountHasBeenSet;
219 
220  Aws::Utils::DateTime m_deviceLastModifiedDate;
221  bool m_deviceLastModifiedDateHasBeenSet;
222  };
223 
224 } // namespace Model
225 } // namespace CognitoSync
226 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::CognitoSync::Model::RecordPatch::RecordPatch
RecordPatch(Aws::Utils::Json::JsonView jsonValue)
Aws::CognitoSync::Model::RecordPatch::WithDeviceLastModifiedDate
RecordPatch & WithDeviceLastModifiedDate(const Aws::Utils::DateTime &value)
Definition: RecordPatch.h:199
Aws::CognitoSync::Model::Operation
Operation
Definition: Operation.h:17
Aws::CognitoSync::Model::RecordPatch::WithDeviceLastModifiedDate
RecordPatch & WithDeviceLastModifiedDate(Aws::Utils::DateTime &&value)
Definition: RecordPatch.h:204
Aws::CognitoSync::Model::RecordPatch::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: RecordPatch.h:122
CognitoSync_EXPORTS.h
Aws::CognitoSync::Model::RecordPatch
Definition: RecordPatch.h:34
DateTime.h
Aws::CognitoSync::Model::RecordPatch::WithValue
RecordPatch & WithValue(const char *value)
Definition: RecordPatch.h:152
Aws::CognitoSync::Model::RecordPatch::GetKey
const Aws::String & GetKey() const
Definition: RecordPatch.h:76
Aws::CognitoSync::Model::RecordPatch::SetOp
void SetOp(const Operation &value)
Definition: RecordPatch.h:55
Aws::CognitoSync::Model::RecordPatch::WithOp
RecordPatch & WithOp(Operation &&value)
Definition: RecordPatch.h:70
Aws::CognitoSync::Model::RecordPatch::GetDeviceLastModifiedDate
const Aws::Utils::DateTime & GetDeviceLastModifiedDate() const
Definition: RecordPatch.h:179
Aws::CognitoSync::Model::RecordPatch::OpHasBeenSet
bool OpHasBeenSet() const
Definition: RecordPatch.h:50
Aws::CognitoSync::Model::RecordPatch::DeviceLastModifiedDateHasBeenSet
bool DeviceLastModifiedDateHasBeenSet() const
Definition: RecordPatch.h:184
Aws::CognitoSync::Model::RecordPatch::GetSyncCount
long long GetSyncCount() const
Definition: RecordPatch.h:158
Aws::CognitoSync::Model::RecordPatch::WithKey
RecordPatch & WithKey(const char *value)
Definition: RecordPatch.h:111
Aws::CognitoSync::Model::RecordPatch::SetKey
void SetKey(const char *value)
Definition: RecordPatch.h:96
Aws::CognitoSync::Model::RecordPatch::WithOp
RecordPatch & WithOp(const Operation &value)
Definition: RecordPatch.h:65
Operation.h
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::CognitoSync::Model::RecordPatch::WithValue
RecordPatch & WithValue(const Aws::String &value)
Definition: RecordPatch.h:142
Aws::CognitoSync::Model::RecordPatch::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: RecordPatch.h:81
Aws::CognitoSync::Model::RecordPatch::SetValue
void SetValue(const Aws::String &value)
Definition: RecordPatch.h:127
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::CognitoSync::Model::RecordPatch::SetDeviceLastModifiedDate
void SetDeviceLastModifiedDate(const Aws::Utils::DateTime &value)
Definition: RecordPatch.h:189
Aws::CognitoSync::Model::RecordPatch::GetOp
const Operation & GetOp() const
Definition: RecordPatch.h:45
Aws::CognitoSync::Model::RecordPatch::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::CognitoSync::Model::RecordPatch::SetSyncCount
void SetSyncCount(long long value)
Definition: RecordPatch.h:168
Aws::CognitoSync::Model::RecordPatch::WithKey
RecordPatch & WithKey(Aws::String &&value)
Definition: RecordPatch.h:106
Aws::CognitoSync::Model::RecordPatch::GetValue
const Aws::String & GetValue() const
Definition: RecordPatch.h:117
Aws::CognitoSync::Model::RecordPatch::RecordPatch
RecordPatch()
Aws::CognitoSync::Model::RecordPatch::SetOp
void SetOp(Operation &&value)
Definition: RecordPatch.h:60
Aws::CognitoSync::Model::RecordPatch::WithValue
RecordPatch & WithValue(Aws::String &&value)
Definition: RecordPatch.h:147
Aws
Definition: AccessManagementClient.h:15
Aws::CognitoSync::Model::RecordPatch::SetKey
void SetKey(Aws::String &&value)
Definition: RecordPatch.h:91
AWS_COGNITOSYNC_API
#define AWS_COGNITOSYNC_API
Definition: CognitoSync_EXPORTS.h:28
Aws::CognitoSync::Model::RecordPatch::SyncCountHasBeenSet
bool SyncCountHasBeenSet() const
Definition: RecordPatch.h:163
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CognitoSync::Model::RecordPatch::operator=
RecordPatch & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::CognitoSync::Model::RecordPatch::SetDeviceLastModifiedDate
void SetDeviceLastModifiedDate(Aws::Utils::DateTime &&value)
Definition: RecordPatch.h:194
Aws::CognitoSync::Model::RecordPatch::WithSyncCount
RecordPatch & WithSyncCount(long long value)
Definition: RecordPatch.h:173
Aws::CognitoSync::Model::RecordPatch::SetValue
void SetValue(const char *value)
Definition: RecordPatch.h:137
Aws::CognitoSync::Model::RecordPatch::SetValue
void SetValue(Aws::String &&value)
Definition: RecordPatch.h:132
Aws::CognitoSync::Model::RecordPatch::WithKey
RecordPatch & WithKey(const Aws::String &value)
Definition: RecordPatch.h:101
Aws::CognitoSync::Model::RecordPatch::SetKey
void SetKey(const Aws::String &value)
Definition: RecordPatch.h:86