AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
45
46
48
51 inline const Aws::String& GetInsightId() const { return m_insightId; }
52 inline bool InsightIdHasBeenSet() const { return m_insightIdHasBeenSet; }
53 template<typename InsightIdT = Aws::String>
54 void SetInsightId(InsightIdT&& value) { m_insightIdHasBeenSet = true; m_insightId = std::forward<InsightIdT>(value); }
55 template<typename InsightIdT = Aws::String>
56 InsightSummary& WithInsightId(InsightIdT&& value) { SetInsightId(std::forward<InsightIdT>(value)); return *this;}
58
60
63 inline const Aws::String& GetGroupARN() const { return m_groupARN; }
64 inline bool GroupARNHasBeenSet() const { return m_groupARNHasBeenSet; }
65 template<typename GroupARNT = Aws::String>
66 void SetGroupARN(GroupARNT&& value) { m_groupARNHasBeenSet = true; m_groupARN = std::forward<GroupARNT>(value); }
67 template<typename GroupARNT = Aws::String>
68 InsightSummary& WithGroupARN(GroupARNT&& value) { SetGroupARN(std::forward<GroupARNT>(value)); return *this;}
70
72
75 inline const Aws::String& GetGroupName() const { return m_groupName; }
76 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
77 template<typename GroupNameT = Aws::String>
78 void SetGroupName(GroupNameT&& value) { m_groupNameHasBeenSet = true; m_groupName = std::forward<GroupNameT>(value); }
79 template<typename GroupNameT = Aws::String>
80 InsightSummary& WithGroupName(GroupNameT&& value) { SetGroupName(std::forward<GroupNameT>(value)); return *this;}
82
84
85 inline const ServiceId& GetRootCauseServiceId() const { return m_rootCauseServiceId; }
86 inline bool RootCauseServiceIdHasBeenSet() const { return m_rootCauseServiceIdHasBeenSet; }
87 template<typename RootCauseServiceIdT = ServiceId>
88 void SetRootCauseServiceId(RootCauseServiceIdT&& value) { m_rootCauseServiceIdHasBeenSet = true; m_rootCauseServiceId = std::forward<RootCauseServiceIdT>(value); }
89 template<typename RootCauseServiceIdT = ServiceId>
90 InsightSummary& WithRootCauseServiceId(RootCauseServiceIdT&& value) { SetRootCauseServiceId(std::forward<RootCauseServiceIdT>(value)); return *this;}
92
94
97 inline const Aws::Vector<InsightCategory>& GetCategories() const { return m_categories; }
98 inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; }
99 template<typename CategoriesT = Aws::Vector<InsightCategory>>
100 void SetCategories(CategoriesT&& value) { m_categoriesHasBeenSet = true; m_categories = std::forward<CategoriesT>(value); }
101 template<typename CategoriesT = Aws::Vector<InsightCategory>>
102 InsightSummary& WithCategories(CategoriesT&& value) { SetCategories(std::forward<CategoriesT>(value)); return *this;}
103 inline InsightSummary& AddCategories(InsightCategory value) { m_categoriesHasBeenSet = true; m_categories.push_back(value); return *this; }
105
107
110 inline InsightState GetState() const { return m_state; }
111 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
112 inline void SetState(InsightState value) { m_stateHasBeenSet = true; m_state = value; }
113 inline InsightSummary& WithState(InsightState value) { SetState(value); return *this;}
115
117
120 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
121 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
122 template<typename StartTimeT = Aws::Utils::DateTime>
123 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
124 template<typename StartTimeT = Aws::Utils::DateTime>
125 InsightSummary& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
127
129
132 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
133 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
134 template<typename EndTimeT = Aws::Utils::DateTime>
135 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
136 template<typename EndTimeT = Aws::Utils::DateTime>
137 InsightSummary& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
139
141
144 inline const Aws::String& GetSummary() const { return m_summary; }
145 inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; }
146 template<typename SummaryT = Aws::String>
147 void SetSummary(SummaryT&& value) { m_summaryHasBeenSet = true; m_summary = std::forward<SummaryT>(value); }
148 template<typename SummaryT = Aws::String>
149 InsightSummary& WithSummary(SummaryT&& value) { SetSummary(std::forward<SummaryT>(value)); return *this;}
151
153
158 inline const RequestImpactStatistics& GetClientRequestImpactStatistics() const { return m_clientRequestImpactStatistics; }
159 inline bool ClientRequestImpactStatisticsHasBeenSet() const { return m_clientRequestImpactStatisticsHasBeenSet; }
160 template<typename ClientRequestImpactStatisticsT = RequestImpactStatistics>
161 void SetClientRequestImpactStatistics(ClientRequestImpactStatisticsT&& value) { m_clientRequestImpactStatisticsHasBeenSet = true; m_clientRequestImpactStatistics = std::forward<ClientRequestImpactStatisticsT>(value); }
162 template<typename ClientRequestImpactStatisticsT = RequestImpactStatistics>
163 InsightSummary& WithClientRequestImpactStatistics(ClientRequestImpactStatisticsT&& value) { SetClientRequestImpactStatistics(std::forward<ClientRequestImpactStatisticsT>(value)); return *this;}
165
167
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 InsightSummary& 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 InsightSummary& WithTopAnomalousServices(TopAnomalousServicesT&& value) { SetTopAnomalousServices(std::forward<TopAnomalousServicesT>(value)); return *this;}
190 template<typename TopAnomalousServicesT = AnomalousService>
191 InsightSummary& AddTopAnomalousServices(TopAnomalousServicesT&& value) { m_topAnomalousServicesHasBeenSet = true; m_topAnomalousServices.emplace_back(std::forward<TopAnomalousServicesT>(value)); return *this; }
193
195
198 inline const Aws::Utils::DateTime& GetLastUpdateTime() const { return m_lastUpdateTime; }
199 inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; }
200 template<typename LastUpdateTimeT = Aws::Utils::DateTime>
201 void SetLastUpdateTime(LastUpdateTimeT&& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = std::forward<LastUpdateTimeT>(value); }
202 template<typename LastUpdateTimeT = Aws::Utils::DateTime>
203 InsightSummary& WithLastUpdateTime(LastUpdateTimeT&& value) { SetLastUpdateTime(std::forward<LastUpdateTimeT>(value)); return *this;}
205 private:
206
207 Aws::String m_insightId;
208 bool m_insightIdHasBeenSet = false;
209
210 Aws::String m_groupARN;
211 bool m_groupARNHasBeenSet = false;
212
213 Aws::String m_groupName;
214 bool m_groupNameHasBeenSet = false;
215
216 ServiceId m_rootCauseServiceId;
217 bool m_rootCauseServiceIdHasBeenSet = false;
218
219 Aws::Vector<InsightCategory> m_categories;
220 bool m_categoriesHasBeenSet = false;
221
223 bool m_stateHasBeenSet = false;
224
225 Aws::Utils::DateTime m_startTime{};
226 bool m_startTimeHasBeenSet = false;
227
228 Aws::Utils::DateTime m_endTime{};
229 bool m_endTimeHasBeenSet = false;
230
231 Aws::String m_summary;
232 bool m_summaryHasBeenSet = false;
233
234 RequestImpactStatistics m_clientRequestImpactStatistics;
235 bool m_clientRequestImpactStatisticsHasBeenSet = false;
236
237 RequestImpactStatistics m_rootCauseServiceRequestImpactStatistics;
238 bool m_rootCauseServiceRequestImpactStatisticsHasBeenSet = false;
239
240 Aws::Vector<AnomalousService> m_topAnomalousServices;
241 bool m_topAnomalousServicesHasBeenSet = false;
242
243 Aws::Utils::DateTime m_lastUpdateTime{};
244 bool m_lastUpdateTimeHasBeenSet = false;
245 };
246
247} // namespace Model
248} // namespace XRay
249} // namespace Aws
InsightSummary & WithStartTime(StartTimeT &&value)
const Aws::Vector< InsightCategory > & GetCategories() const
const Aws::String & GetInsightId() const
const Aws::String & GetGroupName() const
const RequestImpactStatistics & GetClientRequestImpactStatistics() const
const Aws::String & GetGroupARN() const
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
InsightSummary & WithCategories(CategoriesT &&value)
AWS_XRAY_API InsightSummary(Aws::Utils::Json::JsonView jsonValue)
InsightSummary & WithLastUpdateTime(LastUpdateTimeT &&value)
InsightSummary & WithSummary(SummaryT &&value)
bool RootCauseServiceRequestImpactStatisticsHasBeenSet() const
bool ClientRequestImpactStatisticsHasBeenSet() const
InsightSummary & AddCategories(InsightCategory value)
InsightSummary & WithTopAnomalousServices(TopAnomalousServicesT &&value)
void SetEndTime(EndTimeT &&value)
InsightSummary & WithInsightId(InsightIdT &&value)
void SetInsightId(InsightIdT &&value)
AWS_XRAY_API InsightSummary()=default
InsightSummary & WithGroupARN(GroupARNT &&value)
InsightSummary & WithRootCauseServiceId(RootCauseServiceIdT &&value)
void SetGroupARN(GroupARNT &&value)
AWS_XRAY_API InsightSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetState(InsightState value)
void SetLastUpdateTime(LastUpdateTimeT &&value)
void SetGroupName(GroupNameT &&value)
const Aws::String & GetSummary() const
void SetRootCauseServiceRequestImpactStatistics(RootCauseServiceRequestImpactStatisticsT &&value)
InsightSummary & WithRootCauseServiceRequestImpactStatistics(RootCauseServiceRequestImpactStatisticsT &&value)
const RequestImpactStatistics & GetRootCauseServiceRequestImpactStatistics() const
void SetStartTime(StartTimeT &&value)
const Aws::Utils::DateTime & GetLastUpdateTime() const
const Aws::Utils::DateTime & GetStartTime() const
InsightSummary & WithEndTime(EndTimeT &&value)
InsightSummary & WithClientRequestImpactStatistics(ClientRequestImpactStatisticsT &&value)
const ServiceId & GetRootCauseServiceId() const
InsightSummary & AddTopAnomalousServices(TopAnomalousServicesT &&value)
void SetTopAnomalousServices(TopAnomalousServicesT &&value)
void SetClientRequestImpactStatistics(ClientRequestImpactStatisticsT &&value)
InsightSummary & WithGroupName(GroupNameT &&value)
void SetCategories(CategoriesT &&value)
void SetSummary(SummaryT &&value)
const Aws::Utils::DateTime & GetEndTime() const
InsightSummary & WithState(InsightState value)
void SetRootCauseServiceId(RootCauseServiceIdT &&value)
const Aws::Vector< AnomalousService > & GetTopAnomalousServices() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue