AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const Operation& GetOp() const{ return m_op; }
47 inline bool OpHasBeenSet() const { return m_opHasBeenSet; }
48 inline void SetOp(const Operation& value) { m_opHasBeenSet = true; m_op = value; }
49 inline void SetOp(Operation&& value) { m_opHasBeenSet = true; m_op = std::move(value); }
50 inline RecordPatch& WithOp(const Operation& value) { SetOp(value); return *this;}
51 inline RecordPatch& WithOp(Operation&& value) { SetOp(std::move(value)); return *this;}
53
55
58 inline const Aws::String& GetKey() const{ return m_key; }
59 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
60 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
61 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
62 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
63 inline RecordPatch& WithKey(const Aws::String& value) { SetKey(value); return *this;}
64 inline RecordPatch& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
65 inline RecordPatch& WithKey(const char* value) { SetKey(value); return *this;}
67
69
72 inline const Aws::String& GetValue() const{ return m_value; }
73 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
74 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
75 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
76 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
77 inline RecordPatch& WithValue(const Aws::String& value) { SetValue(value); return *this;}
78 inline RecordPatch& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
79 inline RecordPatch& WithValue(const char* value) { SetValue(value); return *this;}
81
83
86 inline long long GetSyncCount() const{ return m_syncCount; }
87 inline bool SyncCountHasBeenSet() const { return m_syncCountHasBeenSet; }
88 inline void SetSyncCount(long long value) { m_syncCountHasBeenSet = true; m_syncCount = value; }
89 inline RecordPatch& WithSyncCount(long long value) { SetSyncCount(value); return *this;}
91
93
96 inline const Aws::Utils::DateTime& GetDeviceLastModifiedDate() const{ return m_deviceLastModifiedDate; }
97 inline bool DeviceLastModifiedDateHasBeenSet() const { return m_deviceLastModifiedDateHasBeenSet; }
98 inline void SetDeviceLastModifiedDate(const Aws::Utils::DateTime& value) { m_deviceLastModifiedDateHasBeenSet = true; m_deviceLastModifiedDate = value; }
99 inline void SetDeviceLastModifiedDate(Aws::Utils::DateTime&& value) { m_deviceLastModifiedDateHasBeenSet = true; m_deviceLastModifiedDate = std::move(value); }
103 private:
104
105 Operation m_op;
106 bool m_opHasBeenSet = false;
107
108 Aws::String m_key;
109 bool m_keyHasBeenSet = false;
110
111 Aws::String m_value;
112 bool m_valueHasBeenSet = false;
113
114 long long m_syncCount;
115 bool m_syncCountHasBeenSet = false;
116
117 Aws::Utils::DateTime m_deviceLastModifiedDate;
118 bool m_deviceLastModifiedDateHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace CognitoSync
123} // namespace Aws
RecordPatch & WithKey(const Aws::String &value)
Definition RecordPatch.h:63
AWS_COGNITOSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
RecordPatch & WithDeviceLastModifiedDate(const Aws::Utils::DateTime &value)
RecordPatch & WithOp(const Operation &value)
Definition RecordPatch.h:50
RecordPatch & WithKey(Aws::String &&value)
Definition RecordPatch.h:64
RecordPatch & WithValue(const char *value)
Definition RecordPatch.h:79
AWS_COGNITOSYNC_API RecordPatch & operator=(Aws::Utils::Json::JsonView jsonValue)
RecordPatch & WithOp(Operation &&value)
Definition RecordPatch.h:51
void SetSyncCount(long long value)
Definition RecordPatch.h:88
void SetDeviceLastModifiedDate(Aws::Utils::DateTime &&value)
Definition RecordPatch.h:99
AWS_COGNITOSYNC_API RecordPatch(Aws::Utils::Json::JsonView jsonValue)
void SetValue(Aws::String &&value)
Definition RecordPatch.h:75
const Operation & GetOp() const
Definition RecordPatch.h:46
RecordPatch & WithKey(const char *value)
Definition RecordPatch.h:65
void SetKey(Aws::String &&value)
Definition RecordPatch.h:61
RecordPatch & WithValue(Aws::String &&value)
Definition RecordPatch.h:78
const Aws::String & GetKey() const
Definition RecordPatch.h:58
void SetValue(const char *value)
Definition RecordPatch.h:76
void SetOp(const Operation &value)
Definition RecordPatch.h:48
void SetDeviceLastModifiedDate(const Aws::Utils::DateTime &value)
Definition RecordPatch.h:98
RecordPatch & WithSyncCount(long long value)
Definition RecordPatch.h:89
AWS_COGNITOSYNC_API RecordPatch()
void SetOp(Operation &&value)
Definition RecordPatch.h:49
const Aws::String & GetValue() const
Definition RecordPatch.h:72
RecordPatch & WithValue(const Aws::String &value)
Definition RecordPatch.h:77
RecordPatch & WithDeviceLastModifiedDate(Aws::Utils::DateTime &&value)
void SetKey(const char *value)
Definition RecordPatch.h:62
void SetKey(const Aws::String &value)
Definition RecordPatch.h:60
void SetValue(const Aws::String &value)
Definition RecordPatch.h:74
const Aws::Utils::DateTime & GetDeviceLastModifiedDate() const
Definition RecordPatch.h:96
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue