AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InsightSummary.h
1
6#pragma once
7#include <aws/xray/XRay_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/xray/model/ServiceId.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/xray/model/InsightState.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/xray/model/RequestImpactStatistics.h>
14#include <aws/xray/model/InsightCategory.h>
15#include <aws/xray/model/AnomalousService.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace XRay
29{
30namespace Model
31{
32
39 {
40 public:
41 AWS_XRAY_API InsightSummary();
45
46
48
51 inline const Aws::String& GetInsightId() const{ return m_insightId; }
52 inline bool InsightIdHasBeenSet() const { return m_insightIdHasBeenSet; }
53 inline void SetInsightId(const Aws::String& value) { m_insightIdHasBeenSet = true; m_insightId = value; }
54 inline void SetInsightId(Aws::String&& value) { m_insightIdHasBeenSet = true; m_insightId = std::move(value); }
55 inline void SetInsightId(const char* value) { m_insightIdHasBeenSet = true; m_insightId.assign(value); }
56 inline InsightSummary& WithInsightId(const Aws::String& value) { SetInsightId(value); return *this;}
57 inline InsightSummary& WithInsightId(Aws::String&& value) { SetInsightId(std::move(value)); return *this;}
58 inline InsightSummary& WithInsightId(const char* value) { SetInsightId(value); return *this;}
60
62
65 inline const Aws::String& GetGroupARN() const{ return m_groupARN; }
66 inline bool GroupARNHasBeenSet() const { return m_groupARNHasBeenSet; }
67 inline void SetGroupARN(const Aws::String& value) { m_groupARNHasBeenSet = true; m_groupARN = value; }
68 inline void SetGroupARN(Aws::String&& value) { m_groupARNHasBeenSet = true; m_groupARN = std::move(value); }
69 inline void SetGroupARN(const char* value) { m_groupARNHasBeenSet = true; m_groupARN.assign(value); }
70 inline InsightSummary& WithGroupARN(const Aws::String& value) { SetGroupARN(value); return *this;}
71 inline InsightSummary& WithGroupARN(Aws::String&& value) { SetGroupARN(std::move(value)); return *this;}
72 inline InsightSummary& WithGroupARN(const char* value) { SetGroupARN(value); return *this;}
74
76
79 inline const Aws::String& GetGroupName() const{ return m_groupName; }
80 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
81 inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
82 inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
83 inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
84 inline InsightSummary& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
85 inline InsightSummary& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
86 inline InsightSummary& WithGroupName(const char* value) { SetGroupName(value); return *this;}
88
90
91 inline const ServiceId& GetRootCauseServiceId() const{ return m_rootCauseServiceId; }
92 inline bool RootCauseServiceIdHasBeenSet() const { return m_rootCauseServiceIdHasBeenSet; }
93 inline void SetRootCauseServiceId(const ServiceId& value) { m_rootCauseServiceIdHasBeenSet = true; m_rootCauseServiceId = value; }
94 inline void SetRootCauseServiceId(ServiceId&& value) { m_rootCauseServiceIdHasBeenSet = true; m_rootCauseServiceId = std::move(value); }
95 inline InsightSummary& WithRootCauseServiceId(const ServiceId& value) { SetRootCauseServiceId(value); return *this;}
96 inline InsightSummary& WithRootCauseServiceId(ServiceId&& value) { SetRootCauseServiceId(std::move(value)); return *this;}
98
100
103 inline const Aws::Vector<InsightCategory>& GetCategories() const{ return m_categories; }
104 inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; }
105 inline void SetCategories(const Aws::Vector<InsightCategory>& value) { m_categoriesHasBeenSet = true; m_categories = value; }
106 inline void SetCategories(Aws::Vector<InsightCategory>&& value) { m_categoriesHasBeenSet = true; m_categories = std::move(value); }
107 inline InsightSummary& WithCategories(const Aws::Vector<InsightCategory>& value) { SetCategories(value); return *this;}
108 inline InsightSummary& WithCategories(Aws::Vector<InsightCategory>&& value) { SetCategories(std::move(value)); return *this;}
109 inline InsightSummary& AddCategories(const InsightCategory& value) { m_categoriesHasBeenSet = true; m_categories.push_back(value); return *this; }
110 inline InsightSummary& AddCategories(InsightCategory&& value) { m_categoriesHasBeenSet = true; m_categories.push_back(std::move(value)); return *this; }
112
114
117 inline const InsightState& GetState() const{ return m_state; }
118 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
119 inline void SetState(const InsightState& value) { m_stateHasBeenSet = true; m_state = value; }
120 inline void SetState(InsightState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
121 inline InsightSummary& WithState(const InsightState& value) { SetState(value); return *this;}
122 inline InsightSummary& WithState(InsightState&& value) { SetState(std::move(value)); return *this;}
124
126
129 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
130 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
131 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
132 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
133 inline InsightSummary& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
134 inline InsightSummary& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
136
138
141 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
142 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
143 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
144 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
145 inline InsightSummary& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
146 inline InsightSummary& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
148
150
153 inline const Aws::String& GetSummary() const{ return m_summary; }
154 inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; }
155 inline void SetSummary(const Aws::String& value) { m_summaryHasBeenSet = true; m_summary = value; }
156 inline void SetSummary(Aws::String&& value) { m_summaryHasBeenSet = true; m_summary = std::move(value); }
157 inline void SetSummary(const char* value) { m_summaryHasBeenSet = true; m_summary.assign(value); }
158 inline InsightSummary& WithSummary(const Aws::String& value) { SetSummary(value); return *this;}
159 inline InsightSummary& WithSummary(Aws::String&& value) { SetSummary(std::move(value)); return *this;}
160 inline InsightSummary& WithSummary(const char* value) { SetSummary(value); return *this;}
162
164
169 inline const RequestImpactStatistics& GetClientRequestImpactStatistics() const{ return m_clientRequestImpactStatistics; }
170 inline bool ClientRequestImpactStatisticsHasBeenSet() const { return m_clientRequestImpactStatisticsHasBeenSet; }
171 inline void SetClientRequestImpactStatistics(const RequestImpactStatistics& value) { m_clientRequestImpactStatisticsHasBeenSet = true; m_clientRequestImpactStatistics = value; }
172 inline void SetClientRequestImpactStatistics(RequestImpactStatistics&& value) { m_clientRequestImpactStatisticsHasBeenSet = true; m_clientRequestImpactStatistics = std::move(value); }
176
178
183 inline const RequestImpactStatistics& GetRootCauseServiceRequestImpactStatistics() const{ return m_rootCauseServiceRequestImpactStatistics; }
184 inline bool RootCauseServiceRequestImpactStatisticsHasBeenSet() const { return m_rootCauseServiceRequestImpactStatisticsHasBeenSet; }
185 inline void SetRootCauseServiceRequestImpactStatistics(const RequestImpactStatistics& value) { m_rootCauseServiceRequestImpactStatisticsHasBeenSet = true; m_rootCauseServiceRequestImpactStatistics = value; }
186 inline void SetRootCauseServiceRequestImpactStatistics(RequestImpactStatistics&& value) { m_rootCauseServiceRequestImpactStatisticsHasBeenSet = true; m_rootCauseServiceRequestImpactStatistics = std::move(value); }
190
192
195 inline const Aws::Vector<AnomalousService>& GetTopAnomalousServices() const{ return m_topAnomalousServices; }
196 inline bool TopAnomalousServicesHasBeenSet() const { return m_topAnomalousServicesHasBeenSet; }
197 inline void SetTopAnomalousServices(const Aws::Vector<AnomalousService>& value) { m_topAnomalousServicesHasBeenSet = true; m_topAnomalousServices = value; }
198 inline void SetTopAnomalousServices(Aws::Vector<AnomalousService>&& value) { m_topAnomalousServicesHasBeenSet = true; m_topAnomalousServices = std::move(value); }
201 inline InsightSummary& AddTopAnomalousServices(const AnomalousService& value) { m_topAnomalousServicesHasBeenSet = true; m_topAnomalousServices.push_back(value); return *this; }
202 inline InsightSummary& AddTopAnomalousServices(AnomalousService&& value) { m_topAnomalousServicesHasBeenSet = true; m_topAnomalousServices.push_back(std::move(value)); return *this; }
204
206
209 inline const Aws::Utils::DateTime& GetLastUpdateTime() const{ return m_lastUpdateTime; }
210 inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; }
211 inline void SetLastUpdateTime(const Aws::Utils::DateTime& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = value; }
212 inline void SetLastUpdateTime(Aws::Utils::DateTime&& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = std::move(value); }
213 inline InsightSummary& WithLastUpdateTime(const Aws::Utils::DateTime& value) { SetLastUpdateTime(value); return *this;}
214 inline InsightSummary& WithLastUpdateTime(Aws::Utils::DateTime&& value) { SetLastUpdateTime(std::move(value)); return *this;}
216 private:
217
218 Aws::String m_insightId;
219 bool m_insightIdHasBeenSet = false;
220
221 Aws::String m_groupARN;
222 bool m_groupARNHasBeenSet = false;
223
224 Aws::String m_groupName;
225 bool m_groupNameHasBeenSet = false;
226
227 ServiceId m_rootCauseServiceId;
228 bool m_rootCauseServiceIdHasBeenSet = false;
229
230 Aws::Vector<InsightCategory> m_categories;
231 bool m_categoriesHasBeenSet = false;
232
233 InsightState m_state;
234 bool m_stateHasBeenSet = false;
235
236 Aws::Utils::DateTime m_startTime;
237 bool m_startTimeHasBeenSet = false;
238
239 Aws::Utils::DateTime m_endTime;
240 bool m_endTimeHasBeenSet = false;
241
242 Aws::String m_summary;
243 bool m_summaryHasBeenSet = false;
244
245 RequestImpactStatistics m_clientRequestImpactStatistics;
246 bool m_clientRequestImpactStatisticsHasBeenSet = false;
247
248 RequestImpactStatistics m_rootCauseServiceRequestImpactStatistics;
249 bool m_rootCauseServiceRequestImpactStatisticsHasBeenSet = false;
250
251 Aws::Vector<AnomalousService> m_topAnomalousServices;
252 bool m_topAnomalousServicesHasBeenSet = false;
253
254 Aws::Utils::DateTime m_lastUpdateTime;
255 bool m_lastUpdateTimeHasBeenSet = false;
256 };
257
258} // namespace Model
259} // namespace XRay
260} // namespace Aws
const InsightState & GetState() const
const Aws::Vector< InsightCategory > & GetCategories() const
const Aws::String & GetInsightId() const
const Aws::String & GetGroupName() const
void SetState(InsightState &&value)
InsightSummary & WithRootCauseServiceRequestImpactStatistics(const RequestImpactStatistics &value)
const RequestImpactStatistics & GetClientRequestImpactStatistics() const
const Aws::String & GetGroupARN() const
void SetEndTime(const Aws::Utils::DateTime &value)
void SetLastUpdateTime(Aws::Utils::DateTime &&value)
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSummary(const Aws::String &value)
AWS_XRAY_API InsightSummary(Aws::Utils::Json::JsonView jsonValue)
void SetCategories(const Aws::Vector< InsightCategory > &value)
void SetState(const InsightState &value)
void SetRootCauseServiceId(ServiceId &&value)
void SetGroupName(const char *value)
void SetStartTime(Aws::Utils::DateTime &&value)
InsightSummary & WithStartTime(Aws::Utils::DateTime &&value)
void SetTopAnomalousServices(Aws::Vector< AnomalousService > &&value)
void SetClientRequestImpactStatistics(const RequestImpactStatistics &value)
InsightSummary & WithRootCauseServiceId(const ServiceId &value)
void SetRootCauseServiceRequestImpactStatistics(RequestImpactStatistics &&value)
bool RootCauseServiceRequestImpactStatisticsHasBeenSet() const
bool ClientRequestImpactStatisticsHasBeenSet() const
void SetSummary(const char *value)
InsightSummary & WithSummary(const char *value)
void SetRootCauseServiceId(const ServiceId &value)
void SetLastUpdateTime(const Aws::Utils::DateTime &value)
InsightSummary & WithGroupName(const Aws::String &value)
void SetGroupARN(const Aws::String &value)
void SetInsightId(Aws::String &&value)
InsightSummary & WithTopAnomalousServices(const Aws::Vector< AnomalousService > &value)
InsightSummary & WithInsightId(const char *value)
InsightSummary & WithCategories(Aws::Vector< InsightCategory > &&value)
AWS_XRAY_API InsightSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
InsightSummary & AddTopAnomalousServices(AnomalousService &&value)
InsightSummary & WithStartTime(const Aws::Utils::DateTime &value)
InsightSummary & WithGroupARN(Aws::String &&value)
void SetRootCauseServiceRequestImpactStatistics(const RequestImpactStatistics &value)
InsightSummary & WithSummary(Aws::String &&value)
void SetGroupName(Aws::String &&value)
InsightSummary & WithRootCauseServiceRequestImpactStatistics(RequestImpactStatistics &&value)
void SetGroupARN(Aws::String &&value)
InsightSummary & WithGroupName(Aws::String &&value)
void SetStartTime(const Aws::Utils::DateTime &value)
const Aws::String & GetSummary() const
InsightSummary & AddTopAnomalousServices(const AnomalousService &value)
InsightSummary & WithState(InsightState &&value)
InsightSummary & WithLastUpdateTime(const Aws::Utils::DateTime &value)
void SetSummary(Aws::String &&value)
const RequestImpactStatistics & GetRootCauseServiceRequestImpactStatistics() const
InsightSummary & WithGroupARN(const Aws::String &value)
void SetCategories(Aws::Vector< InsightCategory > &&value)
const Aws::Utils::DateTime & GetLastUpdateTime() const
InsightSummary & WithRootCauseServiceId(ServiceId &&value)
InsightSummary & WithEndTime(Aws::Utils::DateTime &&value)
InsightSummary & WithTopAnomalousServices(Aws::Vector< AnomalousService > &&value)
void SetGroupARN(const char *value)
const Aws::Utils::DateTime & GetStartTime() const
InsightSummary & WithInsightId(Aws::String &&value)
InsightSummary & WithSummary(const Aws::String &value)
InsightSummary & WithGroupName(const char *value)
InsightSummary & WithState(const InsightState &value)
InsightSummary & WithClientRequestImpactStatistics(RequestImpactStatistics &&value)
const ServiceId & GetRootCauseServiceId() const
InsightSummary & WithLastUpdateTime(Aws::Utils::DateTime &&value)
void SetClientRequestImpactStatistics(RequestImpactStatistics &&value)
void SetEndTime(Aws::Utils::DateTime &&value)
InsightSummary & WithInsightId(const Aws::String &value)
void SetTopAnomalousServices(const Aws::Vector< AnomalousService > &value)
InsightSummary & WithEndTime(const Aws::Utils::DateTime &value)
InsightSummary & AddCategories(const InsightCategory &value)
InsightSummary & WithCategories(const Aws::Vector< InsightCategory > &value)
const Aws::Utils::DateTime & GetEndTime() const
void SetGroupName(const Aws::String &value)
void SetInsightId(const Aws::String &value)
const Aws::Vector< AnomalousService > & GetTopAnomalousServices() const
InsightSummary & WithGroupARN(const char *value)
void SetInsightId(const char *value)
InsightSummary & AddCategories(InsightCategory &&value)
InsightSummary & WithClientRequestImpactStatistics(const RequestImpactStatistics &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