AWS SDK for C++

AWS SDK for C++ Version 1.11.852

Loading...
Searching...
No Matches
MigrationSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/opensearch/OpenSearchService_EXPORTS.h>
10#include <aws/opensearch/model/MigrationError.h>
11#include <aws/opensearch/model/MigrationSource.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace OpenSearchService {
23namespace Model {
24
32 public:
33 AWS_OPENSEARCHSERVICE_API MigrationSummary() = default;
34 AWS_OPENSEARCHSERVICE_API MigrationSummary(Aws::Utils::Json::JsonView jsonValue);
35 AWS_OPENSEARCHSERVICE_API MigrationSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetMigrationId() const { return m_migrationId; }
43 inline bool MigrationIdHasBeenSet() const { return m_migrationIdHasBeenSet; }
44 template <typename MigrationIdT = Aws::String>
45 void SetMigrationId(MigrationIdT&& value) {
46 m_migrationIdHasBeenSet = true;
47 m_migrationId = std::forward<MigrationIdT>(value);
48 }
49 template <typename MigrationIdT = Aws::String>
50 MigrationSummary& WithMigrationId(MigrationIdT&& value) {
51 SetMigrationId(std::forward<MigrationIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetStatus() const { return m_status; }
61 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
62 template <typename StatusT = Aws::String>
63 void SetStatus(StatusT&& value) {
64 m_statusHasBeenSet = true;
65 m_status = std::forward<StatusT>(value);
66 }
67 template <typename StatusT = Aws::String>
68 MigrationSummary& WithStatus(StatusT&& value) {
69 SetStatus(std::forward<StatusT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
80 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
81 template <typename ApplicationIdT = Aws::String>
82 void SetApplicationId(ApplicationIdT&& value) {
83 m_applicationIdHasBeenSet = true;
84 m_applicationId = std::forward<ApplicationIdT>(value);
85 }
86 template <typename ApplicationIdT = Aws::String>
87 MigrationSummary& WithApplicationId(ApplicationIdT&& value) {
88 SetApplicationId(std::forward<ApplicationIdT>(value));
89 return *this;
90 }
92
94
97 inline const MigrationSource& GetSource() const { return m_source; }
98 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
99 template <typename SourceT = MigrationSource>
100 void SetSource(SourceT&& value) {
101 m_sourceHasBeenSet = true;
102 m_source = std::forward<SourceT>(value);
103 }
104 template <typename SourceT = MigrationSource>
105 MigrationSummary& WithSource(SourceT&& value) {
106 SetSource(std::forward<SourceT>(value));
107 return *this;
108 }
110
112
115 inline int GetExportedCount() const { return m_exportedCount; }
116 inline bool ExportedCountHasBeenSet() const { return m_exportedCountHasBeenSet; }
117 inline void SetExportedCount(int value) {
118 m_exportedCountHasBeenSet = true;
119 m_exportedCount = value;
120 }
122 SetExportedCount(value);
123 return *this;
124 }
126
128
132 inline int GetImportedCount() const { return m_importedCount; }
133 inline bool ImportedCountHasBeenSet() const { return m_importedCountHasBeenSet; }
134 inline void SetImportedCount(int value) {
135 m_importedCountHasBeenSet = true;
136 m_importedCount = value;
137 }
139 SetImportedCount(value);
140 return *this;
141 }
143
145
148 inline const MigrationError& GetError() const { return m_error; }
149 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
150 template <typename ErrorT = MigrationError>
151 void SetError(ErrorT&& value) {
152 m_errorHasBeenSet = true;
153 m_error = std::forward<ErrorT>(value);
154 }
155 template <typename ErrorT = MigrationError>
156 MigrationSummary& WithError(ErrorT&& value) {
157 SetError(std::forward<ErrorT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
167 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
168 template <typename CreatedAtT = Aws::Utils::DateTime>
169 void SetCreatedAt(CreatedAtT&& value) {
170 m_createdAtHasBeenSet = true;
171 m_createdAt = std::forward<CreatedAtT>(value);
172 }
173 template <typename CreatedAtT = Aws::Utils::DateTime>
174 MigrationSummary& WithCreatedAt(CreatedAtT&& value) {
175 SetCreatedAt(std::forward<CreatedAtT>(value));
176 return *this;
177 }
179
181
184 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
185 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
186 template <typename UpdatedAtT = Aws::Utils::DateTime>
187 void SetUpdatedAt(UpdatedAtT&& value) {
188 m_updatedAtHasBeenSet = true;
189 m_updatedAt = std::forward<UpdatedAtT>(value);
190 }
191 template <typename UpdatedAtT = Aws::Utils::DateTime>
192 MigrationSummary& WithUpdatedAt(UpdatedAtT&& value) {
193 SetUpdatedAt(std::forward<UpdatedAtT>(value));
194 return *this;
195 }
197 private:
198 Aws::String m_migrationId;
199
200 Aws::String m_status;
201
202 Aws::String m_applicationId;
203
204 MigrationSource m_source;
205
206 int m_exportedCount{0};
207
208 int m_importedCount{0};
209
210 MigrationError m_error;
211
212 Aws::Utils::DateTime m_createdAt{};
213
214 Aws::Utils::DateTime m_updatedAt{};
215 bool m_migrationIdHasBeenSet = false;
216 bool m_statusHasBeenSet = false;
217 bool m_applicationIdHasBeenSet = false;
218 bool m_sourceHasBeenSet = false;
219 bool m_exportedCountHasBeenSet = false;
220 bool m_importedCountHasBeenSet = false;
221 bool m_errorHasBeenSet = false;
222 bool m_createdAtHasBeenSet = false;
223 bool m_updatedAtHasBeenSet = false;
224};
225
226} // namespace Model
227} // namespace OpenSearchService
228} // namespace Aws
AWS_OPENSEARCHSERVICE_API MigrationSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API MigrationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
MigrationSummary & WithCreatedAt(CreatedAtT &&value)
MigrationSummary & WithUpdatedAt(UpdatedAtT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
MigrationSummary & WithApplicationId(ApplicationIdT &&value)
MigrationSummary & WithStatus(StatusT &&value)
AWS_OPENSEARCHSERVICE_API MigrationSummary()=default
MigrationSummary & WithSource(SourceT &&value)
MigrationSummary & WithMigrationId(MigrationIdT &&value)
MigrationSummary & WithError(ErrorT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue