AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Insight.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
40 class Insight
41 {
42 public:
43 AWS_XRAY_API Insight() = default;
44 AWS_XRAY_API Insight(Aws::Utils::Json::JsonView jsonValue);
47
48
50
53 inline const Aws::String& GetInsightId() const { return m_insightId; }
54 inline bool InsightIdHasBeenSet() const { return m_insightIdHasBeenSet; }
55 template<typename InsightIdT = Aws::String>
56 void SetInsightId(InsightIdT&& value) { m_insightIdHasBeenSet = true; m_insightId = std::forward<InsightIdT>(value); }
57 template<typename InsightIdT = Aws::String>
58 Insight& WithInsightId(InsightIdT&& value) { SetInsightId(std::forward<InsightIdT>(value)); return *this;}
60
62
65 inline const Aws::String& GetGroupARN() const { return m_groupARN; }
66 inline bool GroupARNHasBeenSet() const { return m_groupARNHasBeenSet; }
67 template<typename GroupARNT = Aws::String>
68 void SetGroupARN(GroupARNT&& value) { m_groupARNHasBeenSet = true; m_groupARN = std::forward<GroupARNT>(value); }
69 template<typename GroupARNT = Aws::String>
70 Insight& WithGroupARN(GroupARNT&& value) { SetGroupARN(std::forward<GroupARNT>(value)); return *this;}
72
74
77 inline const Aws::String& GetGroupName() const { return m_groupName; }
78 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
79 template<typename GroupNameT = Aws::String>
80 void SetGroupName(GroupNameT&& value) { m_groupNameHasBeenSet = true; m_groupName = std::forward<GroupNameT>(value); }
81 template<typename GroupNameT = Aws::String>
82 Insight& WithGroupName(GroupNameT&& value) { SetGroupName(std::forward<GroupNameT>(value)); return *this;}
84
86
87 inline const ServiceId& GetRootCauseServiceId() const { return m_rootCauseServiceId; }
88 inline bool RootCauseServiceIdHasBeenSet() const { return m_rootCauseServiceIdHasBeenSet; }
89 template<typename RootCauseServiceIdT = ServiceId>
90 void SetRootCauseServiceId(RootCauseServiceIdT&& value) { m_rootCauseServiceIdHasBeenSet = true; m_rootCauseServiceId = std::forward<RootCauseServiceIdT>(value); }
91 template<typename RootCauseServiceIdT = ServiceId>
92 Insight& WithRootCauseServiceId(RootCauseServiceIdT&& value) { SetRootCauseServiceId(std::forward<RootCauseServiceIdT>(value)); return *this;}
94
96
99 inline const Aws::Vector<InsightCategory>& GetCategories() const { return m_categories; }
100 inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; }
101 template<typename CategoriesT = Aws::Vector<InsightCategory>>
102 void SetCategories(CategoriesT&& value) { m_categoriesHasBeenSet = true; m_categories = std::forward<CategoriesT>(value); }
103 template<typename CategoriesT = Aws::Vector<InsightCategory>>
104 Insight& WithCategories(CategoriesT&& value) { SetCategories(std::forward<CategoriesT>(value)); return *this;}
105 inline Insight& AddCategories(InsightCategory value) { m_categoriesHasBeenSet = true; m_categories.push_back(value); return *this; }
107
109
112 inline InsightState GetState() const { return m_state; }
113 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
114 inline void SetState(InsightState value) { m_stateHasBeenSet = true; m_state = value; }
115 inline Insight& WithState(InsightState value) { SetState(value); return *this;}
117
119
122 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
123 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
124 template<typename StartTimeT = Aws::Utils::DateTime>
125 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
126 template<typename StartTimeT = Aws::Utils::DateTime>
127 Insight& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
129
131
134 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
135 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
136 template<typename EndTimeT = Aws::Utils::DateTime>
137 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
138 template<typename EndTimeT = Aws::Utils::DateTime>
139 Insight& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
141
143
146 inline const Aws::String& GetSummary() const { return m_summary; }
147 inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; }
148 template<typename SummaryT = Aws::String>
149 void SetSummary(SummaryT&& value) { m_summaryHasBeenSet = true; m_summary = std::forward<SummaryT>(value); }
150 template<typename SummaryT = Aws::String>
151 Insight& WithSummary(SummaryT&& value) { SetSummary(std::forward<SummaryT>(value)); return *this;}
153
155
159 inline const RequestImpactStatistics& GetClientRequestImpactStatistics() const { return m_clientRequestImpactStatistics; }
160 inline bool ClientRequestImpactStatisticsHasBeenSet() const { return m_clientRequestImpactStatisticsHasBeenSet; }
161 template<typename ClientRequestImpactStatisticsT = RequestImpactStatistics>
162 void SetClientRequestImpactStatistics(ClientRequestImpactStatisticsT&& value) { m_clientRequestImpactStatisticsHasBeenSet = true; m_clientRequestImpactStatistics = std::forward<ClientRequestImpactStatisticsT>(value); }
163 template<typename ClientRequestImpactStatisticsT = RequestImpactStatistics>
164 Insight& WithClientRequestImpactStatistics(ClientRequestImpactStatisticsT&& value) { SetClientRequestImpactStatistics(std::forward<ClientRequestImpactStatisticsT>(value)); return *this;}
166
168
172 inline const RequestImpactStatistics& GetRootCauseServiceRequestImpactStatistics() const { return m_rootCauseServiceRequestImpactStatistics; }
173 inline bool RootCauseServiceRequestImpactStatisticsHasBeenSet() const { return m_rootCauseServiceRequestImpactStatisticsHasBeenSet; }
174 template<typename RootCauseServiceRequestImpactStatisticsT = RequestImpactStatistics>
175 void SetRootCauseServiceRequestImpactStatistics(RootCauseServiceRequestImpactStatisticsT&& value) { m_rootCauseServiceRequestImpactStatisticsHasBeenSet = true; m_rootCauseServiceRequestImpactStatistics = std::forward<RootCauseServiceRequestImpactStatisticsT>(value); }
176 template<typename RootCauseServiceRequestImpactStatisticsT = RequestImpactStatistics>
177 Insight& WithRootCauseServiceRequestImpactStatistics(RootCauseServiceRequestImpactStatisticsT&& value) { SetRootCauseServiceRequestImpactStatistics(std::forward<RootCauseServiceRequestImpactStatisticsT>(value)); return *this;}
179
181
184 inline const Aws::Vector<AnomalousService>& GetTopAnomalousServices() const { return m_topAnomalousServices; }
185 inline bool TopAnomalousServicesHasBeenSet() const { return m_topAnomalousServicesHasBeenSet; }
186 template<typename TopAnomalousServicesT = Aws::Vector<AnomalousService>>
187 void SetTopAnomalousServices(TopAnomalousServicesT&& value) { m_topAnomalousServicesHasBeenSet = true; m_topAnomalousServices = std::forward<TopAnomalousServicesT>(value); }
188 template<typename TopAnomalousServicesT = Aws::Vector<AnomalousService>>
189 Insight& WithTopAnomalousServices(TopAnomalousServicesT&& value) { SetTopAnomalousServices(std::forward<TopAnomalousServicesT>(value)); return *this;}
190 template<typename TopAnomalousServicesT = AnomalousService>
191 Insight& AddTopAnomalousServices(TopAnomalousServicesT&& value) { m_topAnomalousServicesHasBeenSet = true; m_topAnomalousServices.emplace_back(std::forward<TopAnomalousServicesT>(value)); return *this; }
193 private:
194
195 Aws::String m_insightId;
196 bool m_insightIdHasBeenSet = false;
197
198 Aws::String m_groupARN;
199 bool m_groupARNHasBeenSet = false;
200
201 Aws::String m_groupName;
202 bool m_groupNameHasBeenSet = false;
203
204 ServiceId m_rootCauseServiceId;
205 bool m_rootCauseServiceIdHasBeenSet = false;
206
207 Aws::Vector<InsightCategory> m_categories;
208 bool m_categoriesHasBeenSet = false;
209
211 bool m_stateHasBeenSet = false;
212
213 Aws::Utils::DateTime m_startTime{};
214 bool m_startTimeHasBeenSet = false;
215
216 Aws::Utils::DateTime m_endTime{};
217 bool m_endTimeHasBeenSet = false;
218
219 Aws::String m_summary;
220 bool m_summaryHasBeenSet = false;
221
222 RequestImpactStatistics m_clientRequestImpactStatistics;
223 bool m_clientRequestImpactStatisticsHasBeenSet = false;
224
225 RequestImpactStatistics m_rootCauseServiceRequestImpactStatistics;
226 bool m_rootCauseServiceRequestImpactStatisticsHasBeenSet = false;
227
228 Aws::Vector<AnomalousService> m_topAnomalousServices;
229 bool m_topAnomalousServicesHasBeenSet = false;
230 };
231
232} // namespace Model
233} // namespace XRay
234} // namespace Aws
void SetInsightId(InsightIdT &&value)
Definition Insight.h:56
bool ClientRequestImpactStatisticsHasBeenSet() const
Definition Insight.h:160
Insight & WithRootCauseServiceRequestImpactStatistics(RootCauseServiceRequestImpactStatisticsT &&value)
Definition Insight.h:177
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
bool TopAnomalousServicesHasBeenSet() const
Definition Insight.h:185
const Aws::String & GetGroupName() const
Definition Insight.h:77
const Aws::Utils::DateTime & GetEndTime() const
Definition Insight.h:134
Insight & WithRootCauseServiceId(RootCauseServiceIdT &&value)
Definition Insight.h:92
Insight & WithStartTime(StartTimeT &&value)
Definition Insight.h:127
bool RootCauseServiceRequestImpactStatisticsHasBeenSet() const
Definition Insight.h:173
const Aws::Vector< InsightCategory > & GetCategories() const
Definition Insight.h:99
void SetSummary(SummaryT &&value)
Definition Insight.h:149
Insight & WithEndTime(EndTimeT &&value)
Definition Insight.h:139
void SetRootCauseServiceRequestImpactStatistics(RootCauseServiceRequestImpactStatisticsT &&value)
Definition Insight.h:175
void SetState(InsightState value)
Definition Insight.h:114
Insight & WithClientRequestImpactStatistics(ClientRequestImpactStatisticsT &&value)
Definition Insight.h:164
Insight & WithGroupARN(GroupARNT &&value)
Definition Insight.h:70
void SetStartTime(StartTimeT &&value)
Definition Insight.h:125
bool EndTimeHasBeenSet() const
Definition Insight.h:135
Insight & WithState(InsightState value)
Definition Insight.h:115
const Aws::Vector< AnomalousService > & GetTopAnomalousServices() const
Definition Insight.h:184
const Aws::String & GetInsightId() const
Definition Insight.h:53
Insight & WithInsightId(InsightIdT &&value)
Definition Insight.h:58
const RequestImpactStatistics & GetRootCauseServiceRequestImpactStatistics() const
Definition Insight.h:172
bool CategoriesHasBeenSet() const
Definition Insight.h:100
void SetRootCauseServiceId(RootCauseServiceIdT &&value)
Definition Insight.h:90
AWS_XRAY_API Insight(Aws::Utils::Json::JsonView jsonValue)
bool SummaryHasBeenSet() const
Definition Insight.h:147
void SetClientRequestImpactStatistics(ClientRequestImpactStatisticsT &&value)
Definition Insight.h:162
const Aws::String & GetSummary() const
Definition Insight.h:146
void SetTopAnomalousServices(TopAnomalousServicesT &&value)
Definition Insight.h:187
Insight & WithSummary(SummaryT &&value)
Definition Insight.h:151
Insight & WithCategories(CategoriesT &&value)
Definition Insight.h:104
const Aws::Utils::DateTime & GetStartTime() const
Definition Insight.h:122
Insight & WithTopAnomalousServices(TopAnomalousServicesT &&value)
Definition Insight.h:189
bool InsightIdHasBeenSet() const
Definition Insight.h:54
const ServiceId & GetRootCauseServiceId() const
Definition Insight.h:87
bool RootCauseServiceIdHasBeenSet() const
Definition Insight.h:88
const Aws::String & GetGroupARN() const
Definition Insight.h:65
bool StateHasBeenSet() const
Definition Insight.h:113
InsightState GetState() const
Definition Insight.h:112
bool GroupARNHasBeenSet() const
Definition Insight.h:66
void SetCategories(CategoriesT &&value)
Definition Insight.h:102
bool StartTimeHasBeenSet() const
Definition Insight.h:123
void SetGroupName(GroupNameT &&value)
Definition Insight.h:80
void SetGroupARN(GroupARNT &&value)
Definition Insight.h:68
bool GroupNameHasBeenSet() const
Definition Insight.h:78
void SetEndTime(EndTimeT &&value)
Definition Insight.h:137
Insight & AddCategories(InsightCategory value)
Definition Insight.h:105
Insight & WithGroupName(GroupNameT &&value)
Definition Insight.h:82
const RequestImpactStatistics & GetClientRequestImpactStatistics() const
Definition Insight.h:159
AWS_XRAY_API Insight & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_XRAY_API Insight()=default
Insight & AddTopAnomalousServices(TopAnomalousServicesT &&value)
Definition Insight.h:191
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue