AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CognitoSync
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_COGNITOSYNC_API RecordPatch() = default;
37 AWS_COGNITOSYNC_API RecordPatch(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COGNITOSYNC_API RecordPatch& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_COGNITOSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline Operation GetOp() const { return m_op; }
47 inline bool OpHasBeenSet() const { return m_opHasBeenSet; }
48 inline void SetOp(Operation value) { m_opHasBeenSet = true; m_op = value; }
49 inline RecordPatch& WithOp(Operation value) { SetOp(value); return *this;}
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) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
60 template<typename KeyT = Aws::String>
61 RecordPatch& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
63
65
68 inline const Aws::String& GetValue() const { return m_value; }
69 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
70 template<typename ValueT = Aws::String>
71 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
72 template<typename ValueT = Aws::String>
73 RecordPatch& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
75
77
80 inline long long GetSyncCount() const { return m_syncCount; }
81 inline bool SyncCountHasBeenSet() const { return m_syncCountHasBeenSet; }
82 inline void SetSyncCount(long long value) { m_syncCountHasBeenSet = true; m_syncCount = value; }
83 inline RecordPatch& WithSyncCount(long long value) { SetSyncCount(value); return *this;}
85
87
90 inline const Aws::Utils::DateTime& GetDeviceLastModifiedDate() const { return m_deviceLastModifiedDate; }
91 inline bool DeviceLastModifiedDateHasBeenSet() const { return m_deviceLastModifiedDateHasBeenSet; }
92 template<typename DeviceLastModifiedDateT = Aws::Utils::DateTime>
93 void SetDeviceLastModifiedDate(DeviceLastModifiedDateT&& value) { m_deviceLastModifiedDateHasBeenSet = true; m_deviceLastModifiedDate = std::forward<DeviceLastModifiedDateT>(value); }
94 template<typename DeviceLastModifiedDateT = Aws::Utils::DateTime>
95 RecordPatch& WithDeviceLastModifiedDate(DeviceLastModifiedDateT&& value) { SetDeviceLastModifiedDate(std::forward<DeviceLastModifiedDateT>(value)); return *this;}
97 private:
98
100 bool m_opHasBeenSet = false;
101
102 Aws::String m_key;
103 bool m_keyHasBeenSet = false;
104
105 Aws::String m_value;
106 bool m_valueHasBeenSet = false;
107
108 long long m_syncCount{0};
109 bool m_syncCountHasBeenSet = false;
110
111 Aws::Utils::DateTime m_deviceLastModifiedDate{};
112 bool m_deviceLastModifiedDateHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace CognitoSync
117} // namespace Aws
void SetDeviceLastModifiedDate(DeviceLastModifiedDateT &&value)
Definition RecordPatch.h:93
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:49
void SetSyncCount(long long value)
Definition RecordPatch.h:82
RecordPatch & WithValue(ValueT &&value)
Definition RecordPatch.h:73
RecordPatch & WithDeviceLastModifiedDate(DeviceLastModifiedDateT &&value)
Definition RecordPatch.h:95
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:83
const Aws::String & GetValue() const
Definition RecordPatch.h:68
const Aws::Utils::DateTime & GetDeviceLastModifiedDate() const
Definition RecordPatch.h:90
RecordPatch & WithKey(KeyT &&value)
Definition RecordPatch.h:61
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue