AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ApplicationComponentDetail.h
1
6#pragma once
7#include <aws/migrationhubstrategy/MigrationHubStrategyRecommendations_EXPORTS.h>
8#include <aws/migrationhubstrategy/model/SrcCodeOrDbAnalysisStatus.h>
9#include <aws/migrationhubstrategy/model/S3Object.h>
10#include <aws/migrationhubstrategy/model/AntipatternReportStatus.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/migrationhubstrategy/model/AppType.h>
13#include <aws/migrationhubstrategy/model/AppUnitError.h>
14#include <aws/migrationhubstrategy/model/DatabaseConfigDetail.h>
15#include <aws/migrationhubstrategy/model/InclusionStatus.h>
16#include <aws/core/utils/DateTime.h>
17#include <aws/core/utils/memory/stl/AWSVector.h>
18#include <aws/migrationhubstrategy/model/RecommendationSet.h>
19#include <aws/migrationhubstrategy/model/ResourceSubType.h>
20#include <aws/migrationhubstrategy/model/RuntimeAnalysisStatus.h>
21#include <aws/migrationhubstrategy/model/AntipatternSeveritySummary.h>
22#include <aws/migrationhubstrategy/model/Result.h>
23#include <aws/migrationhubstrategy/model/SourceCodeRepository.h>
24#include <utility>
25
26namespace Aws
27{
28namespace Utils
29{
30namespace Json
31{
32 class JsonValue;
33 class JsonView;
34} // namespace Json
35} // namespace Utils
36namespace MigrationHubStrategyRecommendations
37{
38namespace Model
39{
40
48 {
49 public:
50 AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API ApplicationComponentDetail() = default;
51 AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API ApplicationComponentDetail(Aws::Utils::Json::JsonView jsonValue);
52 AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API ApplicationComponentDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
53 AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
54
55
57
61 inline SrcCodeOrDbAnalysisStatus GetAnalysisStatus() const { return m_analysisStatus; }
62 inline bool AnalysisStatusHasBeenSet() const { return m_analysisStatusHasBeenSet; }
63 inline void SetAnalysisStatus(SrcCodeOrDbAnalysisStatus value) { m_analysisStatusHasBeenSet = true; m_analysisStatus = value; }
66
68
72 inline const S3Object& GetAntipatternReportS3Object() const { return m_antipatternReportS3Object; }
73 inline bool AntipatternReportS3ObjectHasBeenSet() const { return m_antipatternReportS3ObjectHasBeenSet; }
74 template<typename AntipatternReportS3ObjectT = S3Object>
75 void SetAntipatternReportS3Object(AntipatternReportS3ObjectT&& value) { m_antipatternReportS3ObjectHasBeenSet = true; m_antipatternReportS3Object = std::forward<AntipatternReportS3ObjectT>(value); }
76 template<typename AntipatternReportS3ObjectT = S3Object>
77 ApplicationComponentDetail& WithAntipatternReportS3Object(AntipatternReportS3ObjectT&& value) { SetAntipatternReportS3Object(std::forward<AntipatternReportS3ObjectT>(value)); return *this;}
79
81
84 inline AntipatternReportStatus GetAntipatternReportStatus() const { return m_antipatternReportStatus; }
85 inline bool AntipatternReportStatusHasBeenSet() const { return m_antipatternReportStatusHasBeenSet; }
86 inline void SetAntipatternReportStatus(AntipatternReportStatus value) { m_antipatternReportStatusHasBeenSet = true; m_antipatternReportStatus = value; }
89
91
94 inline const Aws::String& GetAntipatternReportStatusMessage() const { return m_antipatternReportStatusMessage; }
95 inline bool AntipatternReportStatusMessageHasBeenSet() const { return m_antipatternReportStatusMessageHasBeenSet; }
96 template<typename AntipatternReportStatusMessageT = Aws::String>
97 void SetAntipatternReportStatusMessage(AntipatternReportStatusMessageT&& value) { m_antipatternReportStatusMessageHasBeenSet = true; m_antipatternReportStatusMessage = std::forward<AntipatternReportStatusMessageT>(value); }
98 template<typename AntipatternReportStatusMessageT = Aws::String>
99 ApplicationComponentDetail& WithAntipatternReportStatusMessage(AntipatternReportStatusMessageT&& value) { SetAntipatternReportStatusMessage(std::forward<AntipatternReportStatusMessageT>(value)); return *this;}
101
103
106 inline AppType GetAppType() const { return m_appType; }
107 inline bool AppTypeHasBeenSet() const { return m_appTypeHasBeenSet; }
108 inline void SetAppType(AppType value) { m_appTypeHasBeenSet = true; m_appType = value; }
109 inline ApplicationComponentDetail& WithAppType(AppType value) { SetAppType(value); return *this;}
111
113
116 inline const AppUnitError& GetAppUnitError() const { return m_appUnitError; }
117 inline bool AppUnitErrorHasBeenSet() const { return m_appUnitErrorHasBeenSet; }
118 template<typename AppUnitErrorT = AppUnitError>
119 void SetAppUnitError(AppUnitErrorT&& value) { m_appUnitErrorHasBeenSet = true; m_appUnitError = std::forward<AppUnitErrorT>(value); }
120 template<typename AppUnitErrorT = AppUnitError>
121 ApplicationComponentDetail& WithAppUnitError(AppUnitErrorT&& value) { SetAppUnitError(std::forward<AppUnitErrorT>(value)); return *this;}
123
125
128 inline const Aws::String& GetAssociatedServerId() const { return m_associatedServerId; }
129 inline bool AssociatedServerIdHasBeenSet() const { return m_associatedServerIdHasBeenSet; }
130 template<typename AssociatedServerIdT = Aws::String>
131 void SetAssociatedServerId(AssociatedServerIdT&& value) { m_associatedServerIdHasBeenSet = true; m_associatedServerId = std::forward<AssociatedServerIdT>(value); }
132 template<typename AssociatedServerIdT = Aws::String>
133 ApplicationComponentDetail& WithAssociatedServerId(AssociatedServerIdT&& value) { SetAssociatedServerId(std::forward<AssociatedServerIdT>(value)); return *this;}
135
137
141 inline const DatabaseConfigDetail& GetDatabaseConfigDetail() const { return m_databaseConfigDetail; }
142 inline bool DatabaseConfigDetailHasBeenSet() const { return m_databaseConfigDetailHasBeenSet; }
143 template<typename DatabaseConfigDetailT = DatabaseConfigDetail>
144 void SetDatabaseConfigDetail(DatabaseConfigDetailT&& value) { m_databaseConfigDetailHasBeenSet = true; m_databaseConfigDetail = std::forward<DatabaseConfigDetailT>(value); }
145 template<typename DatabaseConfigDetailT = DatabaseConfigDetail>
146 ApplicationComponentDetail& WithDatabaseConfigDetail(DatabaseConfigDetailT&& value) { SetDatabaseConfigDetail(std::forward<DatabaseConfigDetailT>(value)); return *this;}
148
150
153 inline const Aws::String& GetId() const { return m_id; }
154 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
155 template<typename IdT = Aws::String>
156 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
157 template<typename IdT = Aws::String>
158 ApplicationComponentDetail& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
160
162
166 inline InclusionStatus GetInclusionStatus() const { return m_inclusionStatus; }
167 inline bool InclusionStatusHasBeenSet() const { return m_inclusionStatusHasBeenSet; }
168 inline void SetInclusionStatus(InclusionStatus value) { m_inclusionStatusHasBeenSet = true; m_inclusionStatus = value; }
171
173
176 inline const Aws::Utils::DateTime& GetLastAnalyzedTimestamp() const { return m_lastAnalyzedTimestamp; }
177 inline bool LastAnalyzedTimestampHasBeenSet() const { return m_lastAnalyzedTimestampHasBeenSet; }
178 template<typename LastAnalyzedTimestampT = Aws::Utils::DateTime>
179 void SetLastAnalyzedTimestamp(LastAnalyzedTimestampT&& value) { m_lastAnalyzedTimestampHasBeenSet = true; m_lastAnalyzedTimestamp = std::forward<LastAnalyzedTimestampT>(value); }
180 template<typename LastAnalyzedTimestampT = Aws::Utils::DateTime>
181 ApplicationComponentDetail& WithLastAnalyzedTimestamp(LastAnalyzedTimestampT&& value) { SetLastAnalyzedTimestamp(std::forward<LastAnalyzedTimestampT>(value)); return *this;}
183
185
188 inline const Aws::Vector<AntipatternSeveritySummary>& GetListAntipatternSeveritySummary() const { return m_listAntipatternSeveritySummary; }
189 inline bool ListAntipatternSeveritySummaryHasBeenSet() const { return m_listAntipatternSeveritySummaryHasBeenSet; }
190 template<typename ListAntipatternSeveritySummaryT = Aws::Vector<AntipatternSeveritySummary>>
191 void SetListAntipatternSeveritySummary(ListAntipatternSeveritySummaryT&& value) { m_listAntipatternSeveritySummaryHasBeenSet = true; m_listAntipatternSeveritySummary = std::forward<ListAntipatternSeveritySummaryT>(value); }
192 template<typename ListAntipatternSeveritySummaryT = Aws::Vector<AntipatternSeveritySummary>>
193 ApplicationComponentDetail& WithListAntipatternSeveritySummary(ListAntipatternSeveritySummaryT&& value) { SetListAntipatternSeveritySummary(std::forward<ListAntipatternSeveritySummaryT>(value)); return *this;}
194 template<typename ListAntipatternSeveritySummaryT = AntipatternSeveritySummary>
195 ApplicationComponentDetail& AddListAntipatternSeveritySummary(ListAntipatternSeveritySummaryT&& value) { m_listAntipatternSeveritySummaryHasBeenSet = true; m_listAntipatternSeveritySummary.emplace_back(std::forward<ListAntipatternSeveritySummaryT>(value)); return *this; }
197
199
202 inline bool GetMoreServerAssociationExists() const { return m_moreServerAssociationExists; }
203 inline bool MoreServerAssociationExistsHasBeenSet() const { return m_moreServerAssociationExistsHasBeenSet; }
204 inline void SetMoreServerAssociationExists(bool value) { m_moreServerAssociationExistsHasBeenSet = true; m_moreServerAssociationExists = value; }
207
209
212 inline const Aws::String& GetName() const { return m_name; }
213 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
214 template<typename NameT = Aws::String>
215 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
216 template<typename NameT = Aws::String>
217 ApplicationComponentDetail& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
219
221
224 inline const Aws::String& GetOsDriver() const { return m_osDriver; }
225 inline bool OsDriverHasBeenSet() const { return m_osDriverHasBeenSet; }
226 template<typename OsDriverT = Aws::String>
227 void SetOsDriver(OsDriverT&& value) { m_osDriverHasBeenSet = true; m_osDriver = std::forward<OsDriverT>(value); }
228 template<typename OsDriverT = Aws::String>
229 ApplicationComponentDetail& WithOsDriver(OsDriverT&& value) { SetOsDriver(std::forward<OsDriverT>(value)); return *this;}
231
233
236 inline const Aws::String& GetOsVersion() const { return m_osVersion; }
237 inline bool OsVersionHasBeenSet() const { return m_osVersionHasBeenSet; }
238 template<typename OsVersionT = Aws::String>
239 void SetOsVersion(OsVersionT&& value) { m_osVersionHasBeenSet = true; m_osVersion = std::forward<OsVersionT>(value); }
240 template<typename OsVersionT = Aws::String>
241 ApplicationComponentDetail& WithOsVersion(OsVersionT&& value) { SetOsVersion(std::forward<OsVersionT>(value)); return *this;}
243
245
248 inline const RecommendationSet& GetRecommendationSet() const { return m_recommendationSet; }
249 inline bool RecommendationSetHasBeenSet() const { return m_recommendationSetHasBeenSet; }
250 template<typename RecommendationSetT = RecommendationSet>
251 void SetRecommendationSet(RecommendationSetT&& value) { m_recommendationSetHasBeenSet = true; m_recommendationSet = std::forward<RecommendationSetT>(value); }
252 template<typename RecommendationSetT = RecommendationSet>
253 ApplicationComponentDetail& WithRecommendationSet(RecommendationSetT&& value) { SetRecommendationSet(std::forward<RecommendationSetT>(value)); return *this;}
255
257
260 inline ResourceSubType GetResourceSubType() const { return m_resourceSubType; }
261 inline bool ResourceSubTypeHasBeenSet() const { return m_resourceSubTypeHasBeenSet; }
262 inline void SetResourceSubType(ResourceSubType value) { m_resourceSubTypeHasBeenSet = true; m_resourceSubType = value; }
265
267
270 inline const Aws::Vector<Result>& GetResultList() const { return m_resultList; }
271 inline bool ResultListHasBeenSet() const { return m_resultListHasBeenSet; }
272 template<typename ResultListT = Aws::Vector<Result>>
273 void SetResultList(ResultListT&& value) { m_resultListHasBeenSet = true; m_resultList = std::forward<ResultListT>(value); }
274 template<typename ResultListT = Aws::Vector<Result>>
275 ApplicationComponentDetail& WithResultList(ResultListT&& value) { SetResultList(std::forward<ResultListT>(value)); return *this;}
276 template<typename ResultListT = Result>
277 ApplicationComponentDetail& AddResultList(ResultListT&& value) { m_resultListHasBeenSet = true; m_resultList.emplace_back(std::forward<ResultListT>(value)); return *this; }
279
281
284 inline RuntimeAnalysisStatus GetRuntimeStatus() const { return m_runtimeStatus; }
285 inline bool RuntimeStatusHasBeenSet() const { return m_runtimeStatusHasBeenSet; }
286 inline void SetRuntimeStatus(RuntimeAnalysisStatus value) { m_runtimeStatusHasBeenSet = true; m_runtimeStatus = value; }
289
291
294 inline const Aws::String& GetRuntimeStatusMessage() const { return m_runtimeStatusMessage; }
295 inline bool RuntimeStatusMessageHasBeenSet() const { return m_runtimeStatusMessageHasBeenSet; }
296 template<typename RuntimeStatusMessageT = Aws::String>
297 void SetRuntimeStatusMessage(RuntimeStatusMessageT&& value) { m_runtimeStatusMessageHasBeenSet = true; m_runtimeStatusMessage = std::forward<RuntimeStatusMessageT>(value); }
298 template<typename RuntimeStatusMessageT = Aws::String>
299 ApplicationComponentDetail& WithRuntimeStatusMessage(RuntimeStatusMessageT&& value) { SetRuntimeStatusMessage(std::forward<RuntimeStatusMessageT>(value)); return *this;}
301
303
307 inline const Aws::Vector<SourceCodeRepository>& GetSourceCodeRepositories() const { return m_sourceCodeRepositories; }
308 inline bool SourceCodeRepositoriesHasBeenSet() const { return m_sourceCodeRepositoriesHasBeenSet; }
309 template<typename SourceCodeRepositoriesT = Aws::Vector<SourceCodeRepository>>
310 void SetSourceCodeRepositories(SourceCodeRepositoriesT&& value) { m_sourceCodeRepositoriesHasBeenSet = true; m_sourceCodeRepositories = std::forward<SourceCodeRepositoriesT>(value); }
311 template<typename SourceCodeRepositoriesT = Aws::Vector<SourceCodeRepository>>
312 ApplicationComponentDetail& WithSourceCodeRepositories(SourceCodeRepositoriesT&& value) { SetSourceCodeRepositories(std::forward<SourceCodeRepositoriesT>(value)); return *this;}
313 template<typename SourceCodeRepositoriesT = SourceCodeRepository>
314 ApplicationComponentDetail& AddSourceCodeRepositories(SourceCodeRepositoriesT&& value) { m_sourceCodeRepositoriesHasBeenSet = true; m_sourceCodeRepositories.emplace_back(std::forward<SourceCodeRepositoriesT>(value)); return *this; }
316
318
321 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
322 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
323 template<typename StatusMessageT = Aws::String>
324 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::forward<StatusMessageT>(value); }
325 template<typename StatusMessageT = Aws::String>
326 ApplicationComponentDetail& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
328 private:
329
331 bool m_analysisStatusHasBeenSet = false;
332
333 S3Object m_antipatternReportS3Object;
334 bool m_antipatternReportS3ObjectHasBeenSet = false;
335
337 bool m_antipatternReportStatusHasBeenSet = false;
338
339 Aws::String m_antipatternReportStatusMessage;
340 bool m_antipatternReportStatusMessageHasBeenSet = false;
341
342 AppType m_appType{AppType::NOT_SET};
343 bool m_appTypeHasBeenSet = false;
344
345 AppUnitError m_appUnitError;
346 bool m_appUnitErrorHasBeenSet = false;
347
348 Aws::String m_associatedServerId;
349 bool m_associatedServerIdHasBeenSet = false;
350
351 DatabaseConfigDetail m_databaseConfigDetail;
352 bool m_databaseConfigDetailHasBeenSet = false;
353
354 Aws::String m_id;
355 bool m_idHasBeenSet = false;
356
357 InclusionStatus m_inclusionStatus{InclusionStatus::NOT_SET};
358 bool m_inclusionStatusHasBeenSet = false;
359
360 Aws::Utils::DateTime m_lastAnalyzedTimestamp{};
361 bool m_lastAnalyzedTimestampHasBeenSet = false;
362
363 Aws::Vector<AntipatternSeveritySummary> m_listAntipatternSeveritySummary;
364 bool m_listAntipatternSeveritySummaryHasBeenSet = false;
365
366 bool m_moreServerAssociationExists{false};
367 bool m_moreServerAssociationExistsHasBeenSet = false;
368
369 Aws::String m_name;
370 bool m_nameHasBeenSet = false;
371
372 Aws::String m_osDriver;
373 bool m_osDriverHasBeenSet = false;
374
375 Aws::String m_osVersion;
376 bool m_osVersionHasBeenSet = false;
377
378 RecommendationSet m_recommendationSet;
379 bool m_recommendationSetHasBeenSet = false;
380
381 ResourceSubType m_resourceSubType{ResourceSubType::NOT_SET};
382 bool m_resourceSubTypeHasBeenSet = false;
383
384 Aws::Vector<Result> m_resultList;
385 bool m_resultListHasBeenSet = false;
386
388 bool m_runtimeStatusHasBeenSet = false;
389
390 Aws::String m_runtimeStatusMessage;
391 bool m_runtimeStatusMessageHasBeenSet = false;
392
393 Aws::Vector<SourceCodeRepository> m_sourceCodeRepositories;
394 bool m_sourceCodeRepositoriesHasBeenSet = false;
395
396 Aws::String m_statusMessage;
397 bool m_statusMessageHasBeenSet = false;
398 };
399
400} // namespace Model
401} // namespace MigrationHubStrategyRecommendations
402} // namespace Aws
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API ApplicationComponentDetail()=default
ApplicationComponentDetail & WithAntipatternReportStatusMessage(AntipatternReportStatusMessageT &&value)
ApplicationComponentDetail & WithDatabaseConfigDetail(DatabaseConfigDetailT &&value)
ApplicationComponentDetail & WithSourceCodeRepositories(SourceCodeRepositoriesT &&value)
ApplicationComponentDetail & WithRuntimeStatus(RuntimeAnalysisStatus value)
ApplicationComponentDetail & WithRuntimeStatusMessage(RuntimeStatusMessageT &&value)
ApplicationComponentDetail & AddListAntipatternSeveritySummary(ListAntipatternSeveritySummaryT &&value)
ApplicationComponentDetail & WithAntipatternReportS3Object(AntipatternReportS3ObjectT &&value)
ApplicationComponentDetail & WithRecommendationSet(RecommendationSetT &&value)
ApplicationComponentDetail & WithLastAnalyzedTimestamp(LastAnalyzedTimestampT &&value)
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API ApplicationComponentDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
ApplicationComponentDetail & WithAntipatternReportStatus(AntipatternReportStatus value)
ApplicationComponentDetail & WithAssociatedServerId(AssociatedServerIdT &&value)
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
ApplicationComponentDetail & AddSourceCodeRepositories(SourceCodeRepositoriesT &&value)
const Aws::Vector< AntipatternSeveritySummary > & GetListAntipatternSeveritySummary() const
ApplicationComponentDetail & WithListAntipatternSeveritySummary(ListAntipatternSeveritySummaryT &&value)
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API ApplicationComponentDetail(Aws::Utils::Json::JsonView jsonValue)
ApplicationComponentDetail & WithAnalysisStatus(SrcCodeOrDbAnalysisStatus value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue