AWS SDK for C++

AWS SDK for C++ Version 1.11.852

Loading...
Searching...
No Matches
GetMigrationResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/opensearch/OpenSearchService_EXPORTS.h>
11#include <aws/opensearch/model/MigrationError.h>
12#include <aws/opensearch/model/MigrationSource.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace OpenSearchService {
26namespace Model {
28 public:
29 AWS_OPENSEARCHSERVICE_API GetMigrationResult() = default;
32
34
37 inline const Aws::String& GetMigrationId() const { return m_migrationId; }
38 template <typename MigrationIdT = Aws::String>
39 void SetMigrationId(MigrationIdT&& value) {
40 m_migrationIdHasBeenSet = true;
41 m_migrationId = std::forward<MigrationIdT>(value);
42 }
43 template <typename MigrationIdT = Aws::String>
44 GetMigrationResult& WithMigrationId(MigrationIdT&& value) {
45 SetMigrationId(std::forward<MigrationIdT>(value));
46 return *this;
47 }
49
51
56 inline const Aws::String& GetStatus() const { return m_status; }
57 template <typename StatusT = Aws::String>
58 void SetStatus(StatusT&& value) {
59 m_statusHasBeenSet = true;
60 m_status = std::forward<StatusT>(value);
61 }
62 template <typename StatusT = Aws::String>
63 GetMigrationResult& WithStatus(StatusT&& value) {
64 SetStatus(std::forward<StatusT>(value));
65 return *this;
66 }
68
70
74 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
75 template <typename ApplicationIdT = Aws::String>
76 void SetApplicationId(ApplicationIdT&& value) {
77 m_applicationIdHasBeenSet = true;
78 m_applicationId = std::forward<ApplicationIdT>(value);
79 }
80 template <typename ApplicationIdT = Aws::String>
81 GetMigrationResult& WithApplicationId(ApplicationIdT&& value) {
82 SetApplicationId(std::forward<ApplicationIdT>(value));
83 return *this;
84 }
86
88
92 inline const MigrationSource& GetSource() const { return m_source; }
93 template <typename SourceT = MigrationSource>
94 void SetSource(SourceT&& value) {
95 m_sourceHasBeenSet = true;
96 m_source = std::forward<SourceT>(value);
97 }
98 template <typename SourceT = MigrationSource>
99 GetMigrationResult& WithSource(SourceT&& value) {
100 SetSource(std::forward<SourceT>(value));
101 return *this;
102 }
104
106
109 inline int GetExportedCount() const { return m_exportedCount; }
110 inline void SetExportedCount(int value) {
111 m_exportedCountHasBeenSet = true;
112 m_exportedCount = value;
113 }
115 SetExportedCount(value);
116 return *this;
117 }
119
121
125 inline int GetImportedCount() const { return m_importedCount; }
126 inline void SetImportedCount(int value) {
127 m_importedCountHasBeenSet = true;
128 m_importedCount = value;
129 }
131 SetImportedCount(value);
132 return *this;
133 }
135
137
140 inline const MigrationError& GetError() const { return m_error; }
141 template <typename ErrorT = MigrationError>
142 void SetError(ErrorT&& value) {
143 m_errorHasBeenSet = true;
144 m_error = std::forward<ErrorT>(value);
145 }
146 template <typename ErrorT = MigrationError>
147 GetMigrationResult& WithError(ErrorT&& value) {
148 SetError(std::forward<ErrorT>(value));
149 return *this;
150 }
152
154
157 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
158 template <typename CreatedAtT = Aws::Utils::DateTime>
159 void SetCreatedAt(CreatedAtT&& value) {
160 m_createdAtHasBeenSet = true;
161 m_createdAt = std::forward<CreatedAtT>(value);
162 }
163 template <typename CreatedAtT = Aws::Utils::DateTime>
164 GetMigrationResult& WithCreatedAt(CreatedAtT&& value) {
165 SetCreatedAt(std::forward<CreatedAtT>(value));
166 return *this;
167 }
169
171
174 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
175 template <typename UpdatedAtT = Aws::Utils::DateTime>
176 void SetUpdatedAt(UpdatedAtT&& value) {
177 m_updatedAtHasBeenSet = true;
178 m_updatedAt = std::forward<UpdatedAtT>(value);
179 }
180 template <typename UpdatedAtT = Aws::Utils::DateTime>
181 GetMigrationResult& WithUpdatedAt(UpdatedAtT&& value) {
182 SetUpdatedAt(std::forward<UpdatedAtT>(value));
183 return *this;
184 }
186
188
189 inline const Aws::String& GetRequestId() const { return m_requestId; }
190 template <typename RequestIdT = Aws::String>
191 void SetRequestId(RequestIdT&& value) {
192 m_requestIdHasBeenSet = true;
193 m_requestId = std::forward<RequestIdT>(value);
194 }
195 template <typename RequestIdT = Aws::String>
196 GetMigrationResult& WithRequestId(RequestIdT&& value) {
197 SetRequestId(std::forward<RequestIdT>(value));
198 return *this;
199 }
201 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
202
203 private:
204 Aws::String m_migrationId;
205
206 Aws::String m_status;
207
208 Aws::String m_applicationId;
209
210 MigrationSource m_source;
211
212 int m_exportedCount{0};
213
214 int m_importedCount{0};
215
216 MigrationError m_error;
217
218 Aws::Utils::DateTime m_createdAt{};
219
220 Aws::Utils::DateTime m_updatedAt{};
221
222 Aws::String m_requestId;
223 Aws::Http::HttpResponseCode m_HttpResponseCode;
224 bool m_migrationIdHasBeenSet = false;
225 bool m_statusHasBeenSet = false;
226 bool m_applicationIdHasBeenSet = false;
227 bool m_sourceHasBeenSet = false;
228 bool m_exportedCountHasBeenSet = false;
229 bool m_importedCountHasBeenSet = false;
230 bool m_errorHasBeenSet = false;
231 bool m_createdAtHasBeenSet = false;
232 bool m_updatedAtHasBeenSet = false;
233 bool m_requestIdHasBeenSet = false;
234};
235
236} // namespace Model
237} // namespace OpenSearchService
238} // namespace Aws
GetMigrationResult & WithUpdatedAt(UpdatedAtT &&value)
AWS_OPENSEARCHSERVICE_API GetMigrationResult()=default
const Aws::Utils::DateTime & GetUpdatedAt() const
AWS_OPENSEARCHSERVICE_API GetMigrationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetMigrationResult & WithStatus(StatusT &&value)
GetMigrationResult & WithApplicationId(ApplicationIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetMigrationResult & WithMigrationId(MigrationIdT &&value)
AWS_OPENSEARCHSERVICE_API GetMigrationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetMigrationResult & WithSource(SourceT &&value)
GetMigrationResult & WithCreatedAt(CreatedAtT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
GetMigrationResult & WithRequestId(RequestIdT &&value)
GetMigrationResult & WithError(ErrorT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue