AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
Dataset.h
1
6#pragma once
7#include <aws/cognito-sync/CognitoSync_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CognitoSync {
21namespace Model {
22
32class Dataset {
33 public:
34 AWS_COGNITOSYNC_API Dataset() = default;
35 AWS_COGNITOSYNC_API Dataset(Aws::Utils::Json::JsonView jsonValue);
36 AWS_COGNITOSYNC_API Dataset& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_COGNITOSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline const Aws::String& GetIdentityId() const { return m_identityId; }
45 inline bool IdentityIdHasBeenSet() const { return m_identityIdHasBeenSet; }
46 template <typename IdentityIdT = Aws::String>
47 void SetIdentityId(IdentityIdT&& value) {
48 m_identityIdHasBeenSet = true;
49 m_identityId = std::forward<IdentityIdT>(value);
50 }
51 template <typename IdentityIdT = Aws::String>
52 Dataset& WithIdentityId(IdentityIdT&& value) {
53 SetIdentityId(std::forward<IdentityIdT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetDatasetName() const { return m_datasetName; }
64 inline bool DatasetNameHasBeenSet() const { return m_datasetNameHasBeenSet; }
65 template <typename DatasetNameT = Aws::String>
66 void SetDatasetName(DatasetNameT&& value) {
67 m_datasetNameHasBeenSet = true;
68 m_datasetName = std::forward<DatasetNameT>(value);
69 }
70 template <typename DatasetNameT = Aws::String>
71 Dataset& WithDatasetName(DatasetNameT&& value) {
72 SetDatasetName(std::forward<DatasetNameT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
82 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
83 template <typename CreationDateT = Aws::Utils::DateTime>
84 void SetCreationDate(CreationDateT&& value) {
85 m_creationDateHasBeenSet = true;
86 m_creationDate = std::forward<CreationDateT>(value);
87 }
88 template <typename CreationDateT = Aws::Utils::DateTime>
89 Dataset& WithCreationDate(CreationDateT&& value) {
90 SetCreationDate(std::forward<CreationDateT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
100 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
101 template <typename LastModifiedDateT = Aws::Utils::DateTime>
102 void SetLastModifiedDate(LastModifiedDateT&& value) {
103 m_lastModifiedDateHasBeenSet = true;
104 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
105 }
106 template <typename LastModifiedDateT = Aws::Utils::DateTime>
107 Dataset& WithLastModifiedDate(LastModifiedDateT&& value) {
108 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetLastModifiedBy() const { return m_lastModifiedBy; }
118 inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }
119 template <typename LastModifiedByT = Aws::String>
120 void SetLastModifiedBy(LastModifiedByT&& value) {
121 m_lastModifiedByHasBeenSet = true;
122 m_lastModifiedBy = std::forward<LastModifiedByT>(value);
123 }
124 template <typename LastModifiedByT = Aws::String>
125 Dataset& WithLastModifiedBy(LastModifiedByT&& value) {
126 SetLastModifiedBy(std::forward<LastModifiedByT>(value));
127 return *this;
128 }
130
132
135 inline long long GetDataStorage() const { return m_dataStorage; }
136 inline bool DataStorageHasBeenSet() const { return m_dataStorageHasBeenSet; }
137 inline void SetDataStorage(long long value) {
138 m_dataStorageHasBeenSet = true;
139 m_dataStorage = value;
140 }
141 inline Dataset& WithDataStorage(long long value) {
142 SetDataStorage(value);
143 return *this;
144 }
146
148
151 inline long long GetNumRecords() const { return m_numRecords; }
152 inline bool NumRecordsHasBeenSet() const { return m_numRecordsHasBeenSet; }
153 inline void SetNumRecords(long long value) {
154 m_numRecordsHasBeenSet = true;
155 m_numRecords = value;
156 }
157 inline Dataset& WithNumRecords(long long value) {
158 SetNumRecords(value);
159 return *this;
160 }
162 private:
163 Aws::String m_identityId;
164
165 Aws::String m_datasetName;
166
167 Aws::Utils::DateTime m_creationDate{};
168
169 Aws::Utils::DateTime m_lastModifiedDate{};
170
171 Aws::String m_lastModifiedBy;
172
173 long long m_dataStorage{0};
174
175 long long m_numRecords{0};
176 bool m_identityIdHasBeenSet = false;
177 bool m_datasetNameHasBeenSet = false;
178 bool m_creationDateHasBeenSet = false;
179 bool m_lastModifiedDateHasBeenSet = false;
180 bool m_lastModifiedByHasBeenSet = false;
181 bool m_dataStorageHasBeenSet = false;
182 bool m_numRecordsHasBeenSet = false;
183};
184
185} // namespace Model
186} // namespace CognitoSync
187} // namespace Aws
void SetNumRecords(long long value)
Definition Dataset.h:153
bool IdentityIdHasBeenSet() const
Definition Dataset.h:45
AWS_COGNITOSYNC_API Dataset & operator=(Aws::Utils::Json::JsonView jsonValue)
bool LastModifiedByHasBeenSet() const
Definition Dataset.h:118
void SetDataStorage(long long value)
Definition Dataset.h:137
bool CreationDateHasBeenSet() const
Definition Dataset.h:82
const Aws::Utils::DateTime & GetCreationDate() const
Definition Dataset.h:81
Dataset & WithIdentityId(IdentityIdT &&value)
Definition Dataset.h:52
Dataset & WithCreationDate(CreationDateT &&value)
Definition Dataset.h:89
void SetIdentityId(IdentityIdT &&value)
Definition Dataset.h:47
AWS_COGNITOSYNC_API Dataset()=default
bool DatasetNameHasBeenSet() const
Definition Dataset.h:64
Dataset & WithDatasetName(DatasetNameT &&value)
Definition Dataset.h:71
long long GetNumRecords() const
Definition Dataset.h:151
long long GetDataStorage() const
Definition Dataset.h:135
const Aws::String & GetDatasetName() const
Definition Dataset.h:63
Dataset & WithLastModifiedDate(LastModifiedDateT &&value)
Definition Dataset.h:107
const Aws::Utils::DateTime & GetLastModifiedDate() const
Definition Dataset.h:99
bool LastModifiedDateHasBeenSet() const
Definition Dataset.h:100
AWS_COGNITOSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
Dataset & WithNumRecords(long long value)
Definition Dataset.h:157
void SetDatasetName(DatasetNameT &&value)
Definition Dataset.h:66
Dataset & WithDataStorage(long long value)
Definition Dataset.h:141
void SetLastModifiedBy(LastModifiedByT &&value)
Definition Dataset.h:120
const Aws::String & GetLastModifiedBy() const
Definition Dataset.h:117
AWS_COGNITOSYNC_API Dataset(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetIdentityId() const
Definition Dataset.h:44
Dataset & WithLastModifiedBy(LastModifiedByT &&value)
Definition Dataset.h:125
void SetCreationDate(CreationDateT &&value)
Definition Dataset.h:84
void SetLastModifiedDate(LastModifiedDateT &&value)
Definition Dataset.h:102
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue