AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetInsightId(const Aws::String& value) { m_insightIdHasBeenSet = true; m_insightId = value; }
56 inline void SetInsightId(Aws::String&& value) { m_insightIdHasBeenSet = true; m_insightId = std::move(value); }
57 inline void SetInsightId(const char* value) { m_insightIdHasBeenSet = true; m_insightId.assign(value); }
58 inline Insight& WithInsightId(const Aws::String& value) { SetInsightId(value); return *this;}
59 inline Insight& WithInsightId(Aws::String&& value) { SetInsightId(std::move(value)); return *this;}
60 inline Insight& WithInsightId(const char* value) { SetInsightId(value); return *this;}
62
64
67 inline const Aws::String& GetGroupARN() const{ return m_groupARN; }
68 inline bool GroupARNHasBeenSet() const { return m_groupARNHasBeenSet; }
69 inline void SetGroupARN(const Aws::String& value) { m_groupARNHasBeenSet = true; m_groupARN = value; }
70 inline void SetGroupARN(Aws::String&& value) { m_groupARNHasBeenSet = true; m_groupARN = std::move(value); }
71 inline void SetGroupARN(const char* value) { m_groupARNHasBeenSet = true; m_groupARN.assign(value); }
72 inline Insight& WithGroupARN(const Aws::String& value) { SetGroupARN(value); return *this;}
73 inline Insight& WithGroupARN(Aws::String&& value) { SetGroupARN(std::move(value)); return *this;}
74 inline Insight& WithGroupARN(const char* value) { SetGroupARN(value); return *this;}
76
78
81 inline const Aws::String& GetGroupName() const{ return m_groupName; }
82 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
83 inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
84 inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
85 inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
86 inline Insight& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
87 inline Insight& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
88 inline Insight& WithGroupName(const char* value) { SetGroupName(value); return *this;}
90
92
93 inline const ServiceId& GetRootCauseServiceId() const{ return m_rootCauseServiceId; }
94 inline bool RootCauseServiceIdHasBeenSet() const { return m_rootCauseServiceIdHasBeenSet; }
95 inline void SetRootCauseServiceId(const ServiceId& value) { m_rootCauseServiceIdHasBeenSet = true; m_rootCauseServiceId = value; }
96 inline void SetRootCauseServiceId(ServiceId&& value) { m_rootCauseServiceIdHasBeenSet = true; m_rootCauseServiceId = std::move(value); }
97 inline Insight& WithRootCauseServiceId(const ServiceId& value) { SetRootCauseServiceId(value); return *this;}
98 inline Insight& WithRootCauseServiceId(ServiceId&& value) { SetRootCauseServiceId(std::move(value)); return *this;}
100
102
105 inline const Aws::Vector<InsightCategory>& GetCategories() const{ return m_categories; }
106 inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; }
107 inline void SetCategories(const Aws::Vector<InsightCategory>& value) { m_categoriesHasBeenSet = true; m_categories = value; }
108 inline void SetCategories(Aws::Vector<InsightCategory>&& value) { m_categoriesHasBeenSet = true; m_categories = std::move(value); }
109 inline Insight& WithCategories(const Aws::Vector<InsightCategory>& value) { SetCategories(value); return *this;}
110 inline Insight& WithCategories(Aws::Vector<InsightCategory>&& value) { SetCategories(std::move(value)); return *this;}
111 inline Insight& AddCategories(const InsightCategory& value) { m_categoriesHasBeenSet = true; m_categories.push_back(value); return *this; }
112 inline Insight& AddCategories(InsightCategory&& value) { m_categoriesHasBeenSet = true; m_categories.push_back(std::move(value)); return *this; }
114
116
119 inline const InsightState& GetState() const{ return m_state; }
120 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
121 inline void SetState(const InsightState& value) { m_stateHasBeenSet = true; m_state = value; }
122 inline void SetState(InsightState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
123 inline Insight& WithState(const InsightState& value) { SetState(value); return *this;}
124 inline Insight& WithState(InsightState&& value) { SetState(std::move(value)); return *this;}
126
128
131 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
132 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
133 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
134 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
135 inline Insight& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
136 inline Insight& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
138
140
143 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
144 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
145 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
146 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
147 inline Insight& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
148 inline Insight& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
150
152
155 inline const Aws::String& GetSummary() const{ return m_summary; }
156 inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; }
157 inline void SetSummary(const Aws::String& value) { m_summaryHasBeenSet = true; m_summary = value; }
158 inline void SetSummary(Aws::String&& value) { m_summaryHasBeenSet = true; m_summary = std::move(value); }
159 inline void SetSummary(const char* value) { m_summaryHasBeenSet = true; m_summary.assign(value); }
160 inline Insight& WithSummary(const Aws::String& value) { SetSummary(value); return *this;}
161 inline Insight& WithSummary(Aws::String&& value) { SetSummary(std::move(value)); return *this;}
162 inline Insight& WithSummary(const char* value) { SetSummary(value); return *this;}
164
166
170 inline const RequestImpactStatistics& GetClientRequestImpactStatistics() const{ return m_clientRequestImpactStatistics; }
171 inline bool ClientRequestImpactStatisticsHasBeenSet() const { return m_clientRequestImpactStatisticsHasBeenSet; }
172 inline void SetClientRequestImpactStatistics(const RequestImpactStatistics& value) { m_clientRequestImpactStatisticsHasBeenSet = true; m_clientRequestImpactStatistics = value; }
173 inline void SetClientRequestImpactStatistics(RequestImpactStatistics&& value) { m_clientRequestImpactStatisticsHasBeenSet = true; m_clientRequestImpactStatistics = std::move(value); }
177
179
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 Insight& AddTopAnomalousServices(const AnomalousService& value) { m_topAnomalousServicesHasBeenSet = true; m_topAnomalousServices.push_back(value); return *this; }
202 inline Insight& AddTopAnomalousServices(AnomalousService&& value) { m_topAnomalousServicesHasBeenSet = true; m_topAnomalousServices.push_back(std::move(value)); return *this; }
204 private:
205
206 Aws::String m_insightId;
207 bool m_insightIdHasBeenSet = false;
208
209 Aws::String m_groupARN;
210 bool m_groupARNHasBeenSet = false;
211
212 Aws::String m_groupName;
213 bool m_groupNameHasBeenSet = false;
214
215 ServiceId m_rootCauseServiceId;
216 bool m_rootCauseServiceIdHasBeenSet = false;
217
218 Aws::Vector<InsightCategory> m_categories;
219 bool m_categoriesHasBeenSet = false;
220
221 InsightState m_state;
222 bool m_stateHasBeenSet = false;
223
224 Aws::Utils::DateTime m_startTime;
225 bool m_startTimeHasBeenSet = false;
226
227 Aws::Utils::DateTime m_endTime;
228 bool m_endTimeHasBeenSet = false;
229
230 Aws::String m_summary;
231 bool m_summaryHasBeenSet = false;
232
233 RequestImpactStatistics m_clientRequestImpactStatistics;
234 bool m_clientRequestImpactStatisticsHasBeenSet = false;
235
236 RequestImpactStatistics m_rootCauseServiceRequestImpactStatistics;
237 bool m_rootCauseServiceRequestImpactStatisticsHasBeenSet = false;
238
239 Aws::Vector<AnomalousService> m_topAnomalousServices;
240 bool m_topAnomalousServicesHasBeenSet = false;
241 };
242
243} // namespace Model
244} // namespace XRay
245} // namespace Aws
const InsightState & GetState() const
Definition Insight.h:119
bool ClientRequestImpactStatisticsHasBeenSet() const
Definition Insight.h:171
Insight & WithRootCauseServiceRequestImpactStatistics(const RequestImpactStatistics &value)
Definition Insight.h:187
void SetClientRequestImpactStatistics(const RequestImpactStatistics &value)
Definition Insight.h:172
void SetState(InsightState &&value)
Definition Insight.h:122
void SetInsightId(Aws::String &&value)
Definition Insight.h:56
void SetClientRequestImpactStatistics(RequestImpactStatistics &&value)
Definition Insight.h:173
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRootCauseServiceRequestImpactStatistics(const RequestImpactStatistics &value)
Definition Insight.h:185
void SetSummary(const char *value)
Definition Insight.h:159
Insight & WithEndTime(Aws::Utils::DateTime &&value)
Definition Insight.h:148
Insight & WithState(InsightState &&value)
Definition Insight.h:124
bool TopAnomalousServicesHasBeenSet() const
Definition Insight.h:196
const Aws::String & GetGroupName() const
Definition Insight.h:81
const Aws::Utils::DateTime & GetEndTime() const
Definition Insight.h:143
Insight & WithGroupName(const Aws::String &value)
Definition Insight.h:86
void SetTopAnomalousServices(Aws::Vector< AnomalousService > &&value)
Definition Insight.h:198
void SetCategories(Aws::Vector< InsightCategory > &&value)
Definition Insight.h:108
void SetState(const InsightState &value)
Definition Insight.h:121
bool RootCauseServiceRequestImpactStatisticsHasBeenSet() const
Definition Insight.h:184
const Aws::Vector< InsightCategory > & GetCategories() const
Definition Insight.h:105
void SetRootCauseServiceRequestImpactStatistics(RequestImpactStatistics &&value)
Definition Insight.h:186
Insight & WithRootCauseServiceId(ServiceId &&value)
Definition Insight.h:98
Insight & WithSummary(const Aws::String &value)
Definition Insight.h:160
void SetEndTime(Aws::Utils::DateTime &&value)
Definition Insight.h:146
Insight & AddTopAnomalousServices(const AnomalousService &value)
Definition Insight.h:201
Insight & WithSummary(const char *value)
Definition Insight.h:162
Insight & WithStartTime(Aws::Utils::DateTime &&value)
Definition Insight.h:136
void SetInsightId(const char *value)
Definition Insight.h:57
bool EndTimeHasBeenSet() const
Definition Insight.h:144
Insight & WithGroupARN(Aws::String &&value)
Definition Insight.h:73
void SetInsightId(const Aws::String &value)
Definition Insight.h:55
Insight & WithStartTime(const Aws::Utils::DateTime &value)
Definition Insight.h:135
Insight & WithSummary(Aws::String &&value)
Definition Insight.h:161
Insight & WithGroupName(Aws::String &&value)
Definition Insight.h:87
Insight & WithInsightId(const Aws::String &value)
Definition Insight.h:58
const Aws::Vector< AnomalousService > & GetTopAnomalousServices() const
Definition Insight.h:195
const Aws::String & GetInsightId() const
Definition Insight.h:53
Insight & WithTopAnomalousServices(const Aws::Vector< AnomalousService > &value)
Definition Insight.h:199
Insight & WithInsightId(Aws::String &&value)
Definition Insight.h:59
const RequestImpactStatistics & GetRootCauseServiceRequestImpactStatistics() const
Definition Insight.h:183
Insight & WithInsightId(const char *value)
Definition Insight.h:60
bool CategoriesHasBeenSet() const
Definition Insight.h:106
void SetEndTime(const Aws::Utils::DateTime &value)
Definition Insight.h:145
Insight & WithRootCauseServiceId(const ServiceId &value)
Definition Insight.h:97
AWS_XRAY_API Insight(Aws::Utils::Json::JsonView jsonValue)
bool SummaryHasBeenSet() const
Definition Insight.h:156
const Aws::String & GetSummary() const
Definition Insight.h:155
Insight & WithCategories(const Aws::Vector< InsightCategory > &value)
Definition Insight.h:109
void SetStartTime(const Aws::Utils::DateTime &value)
Definition Insight.h:133
void SetGroupName(Aws::String &&value)
Definition Insight.h:84
void SetStartTime(Aws::Utils::DateTime &&value)
Definition Insight.h:134
const Aws::Utils::DateTime & GetStartTime() const
Definition Insight.h:131
bool InsightIdHasBeenSet() const
Definition Insight.h:54
void SetGroupARN(const char *value)
Definition Insight.h:71
Insight & WithGroupARN(const char *value)
Definition Insight.h:74
Insight & WithClientRequestImpactStatistics(const RequestImpactStatistics &value)
Definition Insight.h:174
Insight & WithCategories(Aws::Vector< InsightCategory > &&value)
Definition Insight.h:110
const ServiceId & GetRootCauseServiceId() const
Definition Insight.h:93
bool RootCauseServiceIdHasBeenSet() const
Definition Insight.h:94
Insight & WithGroupName(const char *value)
Definition Insight.h:88
void SetGroupARN(Aws::String &&value)
Definition Insight.h:70
void SetRootCauseServiceId(const ServiceId &value)
Definition Insight.h:95
Insight & WithEndTime(const Aws::Utils::DateTime &value)
Definition Insight.h:147
void SetTopAnomalousServices(const Aws::Vector< AnomalousService > &value)
Definition Insight.h:197
const Aws::String & GetGroupARN() const
Definition Insight.h:67
bool StateHasBeenSet() const
Definition Insight.h:120
Insight & WithRootCauseServiceRequestImpactStatistics(RequestImpactStatistics &&value)
Definition Insight.h:188
void SetSummary(const Aws::String &value)
Definition Insight.h:157
bool GroupARNHasBeenSet() const
Definition Insight.h:68
Insight & WithState(const InsightState &value)
Definition Insight.h:123
void SetCategories(const Aws::Vector< InsightCategory > &value)
Definition Insight.h:107
Insight & AddCategories(InsightCategory &&value)
Definition Insight.h:112
void SetGroupName(const Aws::String &value)
Definition Insight.h:83
Insight & AddCategories(const InsightCategory &value)
Definition Insight.h:111
Insight & AddTopAnomalousServices(AnomalousService &&value)
Definition Insight.h:202
bool StartTimeHasBeenSet() const
Definition Insight.h:132
Insight & WithClientRequestImpactStatistics(RequestImpactStatistics &&value)
Definition Insight.h:175
void SetRootCauseServiceId(ServiceId &&value)
Definition Insight.h:96
bool GroupNameHasBeenSet() const
Definition Insight.h:82
Insight & WithTopAnomalousServices(Aws::Vector< AnomalousService > &&value)
Definition Insight.h:200
void SetSummary(Aws::String &&value)
Definition Insight.h:158
void SetGroupName(const char *value)
Definition Insight.h:85
Insight & WithGroupARN(const Aws::String &value)
Definition Insight.h:72
void SetGroupARN(const Aws::String &value)
Definition Insight.h:69
const RequestImpactStatistics & GetClientRequestImpactStatistics() const
Definition Insight.h:170
AWS_XRAY_API Insight & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue