AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
RecordPatch.h
1
6#pragma once
7#include <aws/cognito-sync/CognitoSync_EXPORTS.h>
8#include <aws/cognito-sync/model/Operation.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CognitoSync {
22namespace Model {
23
30 public:
31 AWS_COGNITOSYNC_API RecordPatch() = default;
32 AWS_COGNITOSYNC_API RecordPatch(Aws::Utils::Json::JsonView jsonValue);
33 AWS_COGNITOSYNC_API RecordPatch& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_COGNITOSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline Operation GetOp() const { return m_op; }
41 inline bool OpHasBeenSet() const { return m_opHasBeenSet; }
42 inline void SetOp(Operation value) {
43 m_opHasBeenSet = true;
44 m_op = value;
45 }
46 inline RecordPatch& WithOp(Operation value) {
47 SetOp(value);
48 return *this;
49 }
51
53
56 inline const Aws::String& GetKey() const { return m_key; }
57 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
58 template <typename KeyT = Aws::String>
59 void SetKey(KeyT&& value) {
60 m_keyHasBeenSet = true;
61 m_key = std::forward<KeyT>(value);
62 }
63 template <typename KeyT = Aws::String>
64 RecordPatch& WithKey(KeyT&& value) {
65 SetKey(std::forward<KeyT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetValue() const { return m_value; }
75 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
76 template <typename ValueT = Aws::String>
77 void SetValue(ValueT&& value) {
78 m_valueHasBeenSet = true;
79 m_value = std::forward<ValueT>(value);
80 }
81 template <typename ValueT = Aws::String>
82 RecordPatch& WithValue(ValueT&& value) {
83 SetValue(std::forward<ValueT>(value));
84 return *this;
85 }
87
89
92 inline long long GetSyncCount() const { return m_syncCount; }
93 inline bool SyncCountHasBeenSet() const { return m_syncCountHasBeenSet; }
94 inline void SetSyncCount(long long value) {
95 m_syncCountHasBeenSet = true;
96 m_syncCount = value;
97 }
98 inline RecordPatch& WithSyncCount(long long value) {
99 SetSyncCount(value);
100 return *this;
101 }
103
105
108 inline const Aws::Utils::DateTime& GetDeviceLastModifiedDate() const { return m_deviceLastModifiedDate; }
109 inline bool DeviceLastModifiedDateHasBeenSet() const { return m_deviceLastModifiedDateHasBeenSet; }
110 template <typename DeviceLastModifiedDateT = Aws::Utils::DateTime>
111 void SetDeviceLastModifiedDate(DeviceLastModifiedDateT&& value) {
112 m_deviceLastModifiedDateHasBeenSet = true;
113 m_deviceLastModifiedDate = std::forward<DeviceLastModifiedDateT>(value);
114 }
115 template <typename DeviceLastModifiedDateT = Aws::Utils::DateTime>
116 RecordPatch& WithDeviceLastModifiedDate(DeviceLastModifiedDateT&& value) {
117 SetDeviceLastModifiedDate(std::forward<DeviceLastModifiedDateT>(value));
118 return *this;
119 }
121 private:
123
124 Aws::String m_key;
125
126 Aws::String m_value;
127
128 long long m_syncCount{0};
129
130 Aws::Utils::DateTime m_deviceLastModifiedDate{};
131 bool m_opHasBeenSet = false;
132 bool m_keyHasBeenSet = false;
133 bool m_valueHasBeenSet = false;
134 bool m_syncCountHasBeenSet = false;
135 bool m_deviceLastModifiedDateHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace CognitoSync
140} // namespace Aws
void SetDeviceLastModifiedDate(DeviceLastModifiedDateT &&value)
AWS_COGNITOSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COGNITOSYNC_API RecordPatch & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COGNITOSYNC_API RecordPatch()=default
RecordPatch & WithOp(Operation value)
Definition RecordPatch.h:46
void SetSyncCount(long long value)
Definition RecordPatch.h:94
RecordPatch & WithValue(ValueT &&value)
Definition RecordPatch.h:82
RecordPatch & WithDeviceLastModifiedDate(DeviceLastModifiedDateT &&value)
AWS_COGNITOSYNC_API RecordPatch(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetKey() const
Definition RecordPatch.h:56
RecordPatch & WithSyncCount(long long value)
Definition RecordPatch.h:98
const Aws::String & GetValue() const
Definition RecordPatch.h:74
const Aws::Utils::DateTime & GetDeviceLastModifiedDate() const
RecordPatch & WithKey(KeyT &&value)
Definition RecordPatch.h:64
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue