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>
17template <
typename RESULT_TYPE>
18class AmazonWebServiceResult;
25namespace OpenSearchService {
38 template <
typename MigrationIdT = Aws::String>
40 m_migrationIdHasBeenSet =
true;
41 m_migrationId = std::forward<MigrationIdT>(value);
43 template <
typename MigrationIdT = Aws::String>
57 template <
typename StatusT = Aws::String>
59 m_statusHasBeenSet =
true;
60 m_status = std::forward<StatusT>(value);
62 template <
typename StatusT = Aws::String>
75 template <
typename ApplicationIdT = Aws::String>
77 m_applicationIdHasBeenSet =
true;
78 m_applicationId = std::forward<ApplicationIdT>(value);
80 template <
typename ApplicationIdT = Aws::String>
93 template <
typename SourceT = MigrationSource>
95 m_sourceHasBeenSet =
true;
96 m_source = std::forward<SourceT>(value);
98 template <
typename SourceT = MigrationSource>
111 m_exportedCountHasBeenSet =
true;
112 m_exportedCount = value;
127 m_importedCountHasBeenSet =
true;
128 m_importedCount = value;
141 template <
typename ErrorT = MigrationError>
143 m_errorHasBeenSet =
true;
144 m_error = std::forward<ErrorT>(value);
146 template <
typename ErrorT = MigrationError>
148 SetError(std::forward<ErrorT>(value));
158 template <
typename CreatedAtT = Aws::Utils::DateTime>
160 m_createdAtHasBeenSet =
true;
161 m_createdAt = std::forward<CreatedAtT>(value);
163 template <
typename CreatedAtT = Aws::Utils::DateTime>
175 template <
typename UpdatedAtT = Aws::Utils::DateTime>
177 m_updatedAtHasBeenSet =
true;
178 m_updatedAt = std::forward<UpdatedAtT>(value);
180 template <
typename UpdatedAtT = Aws::Utils::DateTime>
190 template <
typename RequestIdT = Aws::String>
192 m_requestIdHasBeenSet =
true;
193 m_requestId = std::forward<RequestIdT>(value);
195 template <
typename RequestIdT = Aws::String>
212 int m_exportedCount{0};
214 int m_importedCount{0};
216 MigrationError m_error;
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;
void SetMigrationId(MigrationIdT &&value)
GetMigrationResult & WithUpdatedAt(UpdatedAtT &&value)
const MigrationSource & GetSource() const
void SetSource(SourceT &&value)
AWS_OPENSEARCHSERVICE_API GetMigrationResult()=default
const Aws::String & GetApplicationId() const
void SetStatus(StatusT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
GetMigrationResult & WithExportedCount(int value)
const Aws::String & GetMigrationId() const
void SetImportedCount(int value)
AWS_OPENSEARCHSERVICE_API GetMigrationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
int GetImportedCount() const
void SetApplicationId(ApplicationIdT &&value)
void SetError(ErrorT &&value)
void SetCreatedAt(CreatedAtT &&value)
GetMigrationResult & WithStatus(StatusT &&value)
const MigrationError & GetError() const
GetMigrationResult & WithApplicationId(ApplicationIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetMigrationResult & WithImportedCount(int value)
GetMigrationResult & WithMigrationId(MigrationIdT &&value)
int GetExportedCount() const
AWS_OPENSEARCHSERVICE_API GetMigrationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetMigrationResult & WithSource(SourceT &&value)
GetMigrationResult & WithCreatedAt(CreatedAtT &&value)
const Aws::String & GetRequestId() const
void SetExportedCount(int value)
void SetRequestId(RequestIdT &&value)
void SetUpdatedAt(UpdatedAtT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
GetMigrationResult & WithRequestId(RequestIdT &&value)
const Aws::String & GetStatus() const
GetMigrationResult & WithError(ErrorT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue