AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ServerDetail.h
1
6#pragma once
7#include <aws/migrationhubstrategy/MigrationHubStrategyRecommendations_EXPORTS.h>
8#include <aws/migrationhubstrategy/model/S3Object.h>
9#include <aws/migrationhubstrategy/model/AntipatternReportStatus.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/migrationhubstrategy/model/RunTimeAssessmentStatus.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/migrationhubstrategy/model/RecommendationSet.h>
15#include <aws/migrationhubstrategy/model/ServerError.h>
16#include <aws/migrationhubstrategy/model/SystemInfo.h>
17#include <aws/migrationhubstrategy/model/StrategySummary.h>
18#include <aws/migrationhubstrategy/model/AntipatternSeveritySummary.h>
19#include <utility>
20
21namespace Aws
22{
23namespace Utils
24{
25namespace Json
26{
27 class JsonValue;
28 class JsonView;
29} // namespace Json
30} // namespace Utils
31namespace MigrationHubStrategyRecommendations
32{
33namespace Model
34{
35
42 {
43 public:
44 AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API ServerDetail() = default;
45 AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API ServerDetail(Aws::Utils::Json::JsonView jsonValue);
46 AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API ServerDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
47 AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
54 inline const S3Object& GetAntipatternReportS3Object() const { return m_antipatternReportS3Object; }
55 inline bool AntipatternReportS3ObjectHasBeenSet() const { return m_antipatternReportS3ObjectHasBeenSet; }
56 template<typename AntipatternReportS3ObjectT = S3Object>
57 void SetAntipatternReportS3Object(AntipatternReportS3ObjectT&& value) { m_antipatternReportS3ObjectHasBeenSet = true; m_antipatternReportS3Object = std::forward<AntipatternReportS3ObjectT>(value); }
58 template<typename AntipatternReportS3ObjectT = S3Object>
59 ServerDetail& WithAntipatternReportS3Object(AntipatternReportS3ObjectT&& value) { SetAntipatternReportS3Object(std::forward<AntipatternReportS3ObjectT>(value)); return *this;}
61
63
66 inline AntipatternReportStatus GetAntipatternReportStatus() const { return m_antipatternReportStatus; }
67 inline bool AntipatternReportStatusHasBeenSet() const { return m_antipatternReportStatusHasBeenSet; }
68 inline void SetAntipatternReportStatus(AntipatternReportStatus value) { m_antipatternReportStatusHasBeenSet = true; m_antipatternReportStatus = value; }
71
73
76 inline const Aws::String& GetAntipatternReportStatusMessage() const { return m_antipatternReportStatusMessage; }
77 inline bool AntipatternReportStatusMessageHasBeenSet() const { return m_antipatternReportStatusMessageHasBeenSet; }
78 template<typename AntipatternReportStatusMessageT = Aws::String>
79 void SetAntipatternReportStatusMessage(AntipatternReportStatusMessageT&& value) { m_antipatternReportStatusMessageHasBeenSet = true; m_antipatternReportStatusMessage = std::forward<AntipatternReportStatusMessageT>(value); }
80 template<typename AntipatternReportStatusMessageT = Aws::String>
81 ServerDetail& WithAntipatternReportStatusMessage(AntipatternReportStatusMessageT&& value) { SetAntipatternReportStatusMessage(std::forward<AntipatternReportStatusMessageT>(value)); return *this;}
83
85
88 inline const Aws::Vector<StrategySummary>& GetApplicationComponentStrategySummary() const { return m_applicationComponentStrategySummary; }
89 inline bool ApplicationComponentStrategySummaryHasBeenSet() const { return m_applicationComponentStrategySummaryHasBeenSet; }
90 template<typename ApplicationComponentStrategySummaryT = Aws::Vector<StrategySummary>>
91 void SetApplicationComponentStrategySummary(ApplicationComponentStrategySummaryT&& value) { m_applicationComponentStrategySummaryHasBeenSet = true; m_applicationComponentStrategySummary = std::forward<ApplicationComponentStrategySummaryT>(value); }
92 template<typename ApplicationComponentStrategySummaryT = Aws::Vector<StrategySummary>>
93 ServerDetail& WithApplicationComponentStrategySummary(ApplicationComponentStrategySummaryT&& value) { SetApplicationComponentStrategySummary(std::forward<ApplicationComponentStrategySummaryT>(value)); return *this;}
94 template<typename ApplicationComponentStrategySummaryT = StrategySummary>
95 ServerDetail& AddApplicationComponentStrategySummary(ApplicationComponentStrategySummaryT&& value) { m_applicationComponentStrategySummaryHasBeenSet = true; m_applicationComponentStrategySummary.emplace_back(std::forward<ApplicationComponentStrategySummaryT>(value)); return *this; }
97
99
102 inline RunTimeAssessmentStatus GetDataCollectionStatus() const { return m_dataCollectionStatus; }
103 inline bool DataCollectionStatusHasBeenSet() const { return m_dataCollectionStatusHasBeenSet; }
104 inline void SetDataCollectionStatus(RunTimeAssessmentStatus value) { m_dataCollectionStatusHasBeenSet = true; m_dataCollectionStatus = value; }
107
109
112 inline const Aws::String& GetId() const { return m_id; }
113 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
114 template<typename IdT = Aws::String>
115 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
116 template<typename IdT = Aws::String>
117 ServerDetail& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
119
121
124 inline const Aws::Utils::DateTime& GetLastAnalyzedTimestamp() const { return m_lastAnalyzedTimestamp; }
125 inline bool LastAnalyzedTimestampHasBeenSet() const { return m_lastAnalyzedTimestampHasBeenSet; }
126 template<typename LastAnalyzedTimestampT = Aws::Utils::DateTime>
127 void SetLastAnalyzedTimestamp(LastAnalyzedTimestampT&& value) { m_lastAnalyzedTimestampHasBeenSet = true; m_lastAnalyzedTimestamp = std::forward<LastAnalyzedTimestampT>(value); }
128 template<typename LastAnalyzedTimestampT = Aws::Utils::DateTime>
129 ServerDetail& WithLastAnalyzedTimestamp(LastAnalyzedTimestampT&& value) { SetLastAnalyzedTimestamp(std::forward<LastAnalyzedTimestampT>(value)); return *this;}
131
133
136 inline const Aws::Vector<AntipatternSeveritySummary>& GetListAntipatternSeveritySummary() const { return m_listAntipatternSeveritySummary; }
137 inline bool ListAntipatternSeveritySummaryHasBeenSet() const { return m_listAntipatternSeveritySummaryHasBeenSet; }
138 template<typename ListAntipatternSeveritySummaryT = Aws::Vector<AntipatternSeveritySummary>>
139 void SetListAntipatternSeveritySummary(ListAntipatternSeveritySummaryT&& value) { m_listAntipatternSeveritySummaryHasBeenSet = true; m_listAntipatternSeveritySummary = std::forward<ListAntipatternSeveritySummaryT>(value); }
140 template<typename ListAntipatternSeveritySummaryT = Aws::Vector<AntipatternSeveritySummary>>
141 ServerDetail& WithListAntipatternSeveritySummary(ListAntipatternSeveritySummaryT&& value) { SetListAntipatternSeveritySummary(std::forward<ListAntipatternSeveritySummaryT>(value)); return *this;}
142 template<typename ListAntipatternSeveritySummaryT = AntipatternSeveritySummary>
143 ServerDetail& AddListAntipatternSeveritySummary(ListAntipatternSeveritySummaryT&& value) { m_listAntipatternSeveritySummaryHasBeenSet = true; m_listAntipatternSeveritySummary.emplace_back(std::forward<ListAntipatternSeveritySummaryT>(value)); return *this; }
145
147
150 inline const Aws::String& GetName() const { return m_name; }
151 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
152 template<typename NameT = Aws::String>
153 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
154 template<typename NameT = Aws::String>
155 ServerDetail& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
157
159
162 inline const RecommendationSet& GetRecommendationSet() const { return m_recommendationSet; }
163 inline bool RecommendationSetHasBeenSet() const { return m_recommendationSetHasBeenSet; }
164 template<typename RecommendationSetT = RecommendationSet>
165 void SetRecommendationSet(RecommendationSetT&& value) { m_recommendationSetHasBeenSet = true; m_recommendationSet = std::forward<RecommendationSetT>(value); }
166 template<typename RecommendationSetT = RecommendationSet>
167 ServerDetail& WithRecommendationSet(RecommendationSetT&& value) { SetRecommendationSet(std::forward<RecommendationSetT>(value)); return *this;}
169
171
174 inline const ServerError& GetServerError() const { return m_serverError; }
175 inline bool ServerErrorHasBeenSet() const { return m_serverErrorHasBeenSet; }
176 template<typename ServerErrorT = ServerError>
177 void SetServerError(ServerErrorT&& value) { m_serverErrorHasBeenSet = true; m_serverError = std::forward<ServerErrorT>(value); }
178 template<typename ServerErrorT = ServerError>
179 ServerDetail& WithServerError(ServerErrorT&& value) { SetServerError(std::forward<ServerErrorT>(value)); return *this;}
181
183
186 inline const Aws::String& GetServerType() const { return m_serverType; }
187 inline bool ServerTypeHasBeenSet() const { return m_serverTypeHasBeenSet; }
188 template<typename ServerTypeT = Aws::String>
189 void SetServerType(ServerTypeT&& value) { m_serverTypeHasBeenSet = true; m_serverType = std::forward<ServerTypeT>(value); }
190 template<typename ServerTypeT = Aws::String>
191 ServerDetail& WithServerType(ServerTypeT&& value) { SetServerType(std::forward<ServerTypeT>(value)); return *this;}
193
195
199 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
200 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
201 template<typename StatusMessageT = Aws::String>
202 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::forward<StatusMessageT>(value); }
203 template<typename StatusMessageT = Aws::String>
204 ServerDetail& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
206
208
211 inline const SystemInfo& GetSystemInfo() const { return m_systemInfo; }
212 inline bool SystemInfoHasBeenSet() const { return m_systemInfoHasBeenSet; }
213 template<typename SystemInfoT = SystemInfo>
214 void SetSystemInfo(SystemInfoT&& value) { m_systemInfoHasBeenSet = true; m_systemInfo = std::forward<SystemInfoT>(value); }
215 template<typename SystemInfoT = SystemInfo>
216 ServerDetail& WithSystemInfo(SystemInfoT&& value) { SetSystemInfo(std::forward<SystemInfoT>(value)); return *this;}
218 private:
219
220 S3Object m_antipatternReportS3Object;
221 bool m_antipatternReportS3ObjectHasBeenSet = false;
222
224 bool m_antipatternReportStatusHasBeenSet = false;
225
226 Aws::String m_antipatternReportStatusMessage;
227 bool m_antipatternReportStatusMessageHasBeenSet = false;
228
229 Aws::Vector<StrategySummary> m_applicationComponentStrategySummary;
230 bool m_applicationComponentStrategySummaryHasBeenSet = false;
231
233 bool m_dataCollectionStatusHasBeenSet = false;
234
235 Aws::String m_id;
236 bool m_idHasBeenSet = false;
237
238 Aws::Utils::DateTime m_lastAnalyzedTimestamp{};
239 bool m_lastAnalyzedTimestampHasBeenSet = false;
240
241 Aws::Vector<AntipatternSeveritySummary> m_listAntipatternSeveritySummary;
242 bool m_listAntipatternSeveritySummaryHasBeenSet = false;
243
244 Aws::String m_name;
245 bool m_nameHasBeenSet = false;
246
247 RecommendationSet m_recommendationSet;
248 bool m_recommendationSetHasBeenSet = false;
249
250 ServerError m_serverError;
251 bool m_serverErrorHasBeenSet = false;
252
253 Aws::String m_serverType;
254 bool m_serverTypeHasBeenSet = false;
255
256 Aws::String m_statusMessage;
257 bool m_statusMessageHasBeenSet = false;
258
259 SystemInfo m_systemInfo;
260 bool m_systemInfoHasBeenSet = false;
261 };
262
263} // namespace Model
264} // namespace MigrationHubStrategyRecommendations
265} // namespace Aws
ServerDetail & WithAntipatternReportStatusMessage(AntipatternReportStatusMessageT &&value)
ServerDetail & WithLastAnalyzedTimestamp(LastAnalyzedTimestampT &&value)
ServerDetail & WithAntipatternReportStatus(AntipatternReportStatus value)
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API ServerDetail()=default
void SetAntipatternReportStatus(AntipatternReportStatus value)
ServerDetail & AddApplicationComponentStrategySummary(ApplicationComponentStrategySummaryT &&value)
void SetLastAnalyzedTimestamp(LastAnalyzedTimestampT &&value)
ServerDetail & WithListAntipatternSeveritySummary(ListAntipatternSeveritySummaryT &&value)
void SetDataCollectionStatus(RunTimeAssessmentStatus value)
void SetListAntipatternSeveritySummary(ListAntipatternSeveritySummaryT &&value)
ServerDetail & WithAntipatternReportS3Object(AntipatternReportS3ObjectT &&value)
ServerDetail & WithApplicationComponentStrategySummary(ApplicationComponentStrategySummaryT &&value)
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API ServerDetail(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastAnalyzedTimestamp() const
const Aws::Vector< StrategySummary > & GetApplicationComponentStrategySummary() const
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API ServerDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
ServerDetail & WithDataCollectionStatus(RunTimeAssessmentStatus value)
void SetApplicationComponentStrategySummary(ApplicationComponentStrategySummaryT &&value)
const Aws::Vector< AntipatternSeveritySummary > & GetListAntipatternSeveritySummary() const
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAntipatternReportS3Object(AntipatternReportS3ObjectT &&value)
ServerDetail & WithStatusMessage(StatusMessageT &&value)
ServerDetail & WithRecommendationSet(RecommendationSetT &&value)
ServerDetail & AddListAntipatternSeveritySummary(ListAntipatternSeveritySummaryT &&value)
void SetAntipatternReportStatusMessage(AntipatternReportStatusMessageT &&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