AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Record.h
1
6#pragma once
7#include <aws/cognito-sync/CognitoSync_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CognitoSync
23{
24namespace Model
25{
26
32 class Record
33 {
34 public:
35 AWS_COGNITOSYNC_API Record();
36 AWS_COGNITOSYNC_API Record(Aws::Utils::Json::JsonView jsonValue);
37 AWS_COGNITOSYNC_API Record& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COGNITOSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetKey() const{ return m_key; }
46 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
47 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
48 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
49 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
50 inline Record& WithKey(const Aws::String& value) { SetKey(value); return *this;}
51 inline Record& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
52 inline Record& WithKey(const char* value) { SetKey(value); return *this;}
54
56
59 inline const Aws::String& GetValue() const{ return m_value; }
60 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
61 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
62 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
63 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
64 inline Record& WithValue(const Aws::String& value) { SetValue(value); return *this;}
65 inline Record& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
66 inline Record& WithValue(const char* value) { SetValue(value); return *this;}
68
70
73 inline long long GetSyncCount() const{ return m_syncCount; }
74 inline bool SyncCountHasBeenSet() const { return m_syncCountHasBeenSet; }
75 inline void SetSyncCount(long long value) { m_syncCountHasBeenSet = true; m_syncCount = value; }
76 inline Record& WithSyncCount(long long value) { SetSyncCount(value); return *this;}
78
80
83 inline const Aws::Utils::DateTime& GetLastModifiedDate() const{ return m_lastModifiedDate; }
84 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
85 inline void SetLastModifiedDate(const Aws::Utils::DateTime& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
86 inline void SetLastModifiedDate(Aws::Utils::DateTime&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::move(value); }
87 inline Record& WithLastModifiedDate(const Aws::Utils::DateTime& value) { SetLastModifiedDate(value); return *this;}
88 inline Record& WithLastModifiedDate(Aws::Utils::DateTime&& value) { SetLastModifiedDate(std::move(value)); return *this;}
90
92
95 inline const Aws::String& GetLastModifiedBy() const{ return m_lastModifiedBy; }
96 inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }
97 inline void SetLastModifiedBy(const Aws::String& value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy = value; }
98 inline void SetLastModifiedBy(Aws::String&& value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy = std::move(value); }
99 inline void SetLastModifiedBy(const char* value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy.assign(value); }
100 inline Record& WithLastModifiedBy(const Aws::String& value) { SetLastModifiedBy(value); return *this;}
101 inline Record& WithLastModifiedBy(Aws::String&& value) { SetLastModifiedBy(std::move(value)); return *this;}
102 inline Record& WithLastModifiedBy(const char* value) { SetLastModifiedBy(value); return *this;}
104
106
109 inline const Aws::Utils::DateTime& GetDeviceLastModifiedDate() const{ return m_deviceLastModifiedDate; }
110 inline bool DeviceLastModifiedDateHasBeenSet() const { return m_deviceLastModifiedDateHasBeenSet; }
111 inline void SetDeviceLastModifiedDate(const Aws::Utils::DateTime& value) { m_deviceLastModifiedDateHasBeenSet = true; m_deviceLastModifiedDate = value; }
112 inline void SetDeviceLastModifiedDate(Aws::Utils::DateTime&& value) { m_deviceLastModifiedDateHasBeenSet = true; m_deviceLastModifiedDate = std::move(value); }
114 inline Record& WithDeviceLastModifiedDate(Aws::Utils::DateTime&& value) { SetDeviceLastModifiedDate(std::move(value)); return *this;}
116 private:
117
118 Aws::String m_key;
119 bool m_keyHasBeenSet = false;
120
121 Aws::String m_value;
122 bool m_valueHasBeenSet = false;
123
124 long long m_syncCount;
125 bool m_syncCountHasBeenSet = false;
126
127 Aws::Utils::DateTime m_lastModifiedDate;
128 bool m_lastModifiedDateHasBeenSet = false;
129
130 Aws::String m_lastModifiedBy;
131 bool m_lastModifiedByHasBeenSet = false;
132
133 Aws::Utils::DateTime m_deviceLastModifiedDate;
134 bool m_deviceLastModifiedDateHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace CognitoSync
139} // namespace Aws
AWS_COGNITOSYNC_API Record()
bool LastModifiedDateHasBeenSet() const
Definition Record.h:84
const Aws::Utils::DateTime & GetDeviceLastModifiedDate() const
Definition Record.h:109
void SetLastModifiedDate(const Aws::Utils::DateTime &value)
Definition Record.h:85
Record & WithKey(const Aws::String &value)
Definition Record.h:50
AWS_COGNITOSYNC_API Record & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetLastModifiedBy() const
Definition Record.h:95
Record & WithLastModifiedBy(const Aws::String &value)
Definition Record.h:100
void SetValue(const Aws::String &value)
Definition Record.h:61
void SetValue(const char *value)
Definition Record.h:63
Record & WithLastModifiedDate(const Aws::Utils::DateTime &value)
Definition Record.h:87
bool SyncCountHasBeenSet() const
Definition Record.h:74
void SetLastModifiedBy(const char *value)
Definition Record.h:99
AWS_COGNITOSYNC_API Record(Aws::Utils::Json::JsonView jsonValue)
Record & WithKey(const char *value)
Definition Record.h:52
void SetLastModifiedDate(Aws::Utils::DateTime &&value)
Definition Record.h:86
Record & WithLastModifiedBy(const char *value)
Definition Record.h:102
bool DeviceLastModifiedDateHasBeenSet() const
Definition Record.h:110
void SetSyncCount(long long value)
Definition Record.h:75
AWS_COGNITOSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
Record & WithValue(Aws::String &&value)
Definition Record.h:65
Record & WithSyncCount(long long value)
Definition Record.h:76
bool LastModifiedByHasBeenSet() const
Definition Record.h:96
Record & WithLastModifiedDate(Aws::Utils::DateTime &&value)
Definition Record.h:88
const Aws::String & GetKey() const
Definition Record.h:45
void SetValue(Aws::String &&value)
Definition Record.h:62
const Aws::String & GetValue() const
Definition Record.h:59
void SetKey(const char *value)
Definition Record.h:49
Record & WithValue(const Aws::String &value)
Definition Record.h:64
long long GetSyncCount() const
Definition Record.h:73
Record & WithDeviceLastModifiedDate(const Aws::Utils::DateTime &value)
Definition Record.h:113
void SetLastModifiedBy(Aws::String &&value)
Definition Record.h:98
Record & WithLastModifiedBy(Aws::String &&value)
Definition Record.h:101
void SetKey(const Aws::String &value)
Definition Record.h:47
Record & WithValue(const char *value)
Definition Record.h:66
void SetLastModifiedBy(const Aws::String &value)
Definition Record.h:97
void SetDeviceLastModifiedDate(const Aws::Utils::DateTime &value)
Definition Record.h:111
const Aws::Utils::DateTime & GetLastModifiedDate() const
Definition Record.h:83
void SetKey(Aws::String &&value)
Definition Record.h:48
Record & WithKey(Aws::String &&value)
Definition Record.h:51
void SetDeviceLastModifiedDate(Aws::Utils::DateTime &&value)
Definition Record.h:112
Record & WithDeviceLastModifiedDate(Aws::Utils::DateTime &&value)
Definition Record.h:114
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue