AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
InsightEvent.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/xray/XRay_EXPORTS.h>
11#include <aws/xray/model/AnomalousService.h>
12#include <aws/xray/model/RequestImpactStatistics.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace XRay {
24namespace Model {
25
35 public:
36 AWS_XRAY_API InsightEvent() = default;
40
42
45 inline const Aws::String& GetSummary() const { return m_summary; }
46 inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; }
47 template <typename SummaryT = Aws::String>
48 void SetSummary(SummaryT&& value) {
49 m_summaryHasBeenSet = true;
50 m_summary = std::forward<SummaryT>(value);
51 }
52 template <typename SummaryT = Aws::String>
53 InsightEvent& WithSummary(SummaryT&& value) {
54 SetSummary(std::forward<SummaryT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::Utils::DateTime& GetEventTime() const { return m_eventTime; }
64 inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; }
65 template <typename EventTimeT = Aws::Utils::DateTime>
66 void SetEventTime(EventTimeT&& value) {
67 m_eventTimeHasBeenSet = true;
68 m_eventTime = std::forward<EventTimeT>(value);
69 }
70 template <typename EventTimeT = Aws::Utils::DateTime>
71 InsightEvent& WithEventTime(EventTimeT&& value) {
72 SetEventTime(std::forward<EventTimeT>(value));
73 return *this;
74 }
76
78
82 inline const RequestImpactStatistics& GetClientRequestImpactStatistics() const { return m_clientRequestImpactStatistics; }
83 inline bool ClientRequestImpactStatisticsHasBeenSet() const { return m_clientRequestImpactStatisticsHasBeenSet; }
84 template <typename ClientRequestImpactStatisticsT = RequestImpactStatistics>
85 void SetClientRequestImpactStatistics(ClientRequestImpactStatisticsT&& value) {
86 m_clientRequestImpactStatisticsHasBeenSet = true;
87 m_clientRequestImpactStatistics = std::forward<ClientRequestImpactStatisticsT>(value);
88 }
89 template <typename ClientRequestImpactStatisticsT = RequestImpactStatistics>
90 InsightEvent& WithClientRequestImpactStatistics(ClientRequestImpactStatisticsT&& value) {
91 SetClientRequestImpactStatistics(std::forward<ClientRequestImpactStatisticsT>(value));
92 return *this;
93 }
95
97
102 return m_rootCauseServiceRequestImpactStatistics;
103 }
104 inline bool RootCauseServiceRequestImpactStatisticsHasBeenSet() const { return m_rootCauseServiceRequestImpactStatisticsHasBeenSet; }
105 template <typename RootCauseServiceRequestImpactStatisticsT = RequestImpactStatistics>
106 void SetRootCauseServiceRequestImpactStatistics(RootCauseServiceRequestImpactStatisticsT&& value) {
107 m_rootCauseServiceRequestImpactStatisticsHasBeenSet = true;
108 m_rootCauseServiceRequestImpactStatistics = std::forward<RootCauseServiceRequestImpactStatisticsT>(value);
109 }
110 template <typename RootCauseServiceRequestImpactStatisticsT = RequestImpactStatistics>
111 InsightEvent& WithRootCauseServiceRequestImpactStatistics(RootCauseServiceRequestImpactStatisticsT&& value) {
112 SetRootCauseServiceRequestImpactStatistics(std::forward<RootCauseServiceRequestImpactStatisticsT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::Vector<AnomalousService>& GetTopAnomalousServices() const { return m_topAnomalousServices; }
122 inline bool TopAnomalousServicesHasBeenSet() const { return m_topAnomalousServicesHasBeenSet; }
123 template <typename TopAnomalousServicesT = Aws::Vector<AnomalousService>>
124 void SetTopAnomalousServices(TopAnomalousServicesT&& value) {
125 m_topAnomalousServicesHasBeenSet = true;
126 m_topAnomalousServices = std::forward<TopAnomalousServicesT>(value);
127 }
128 template <typename TopAnomalousServicesT = Aws::Vector<AnomalousService>>
129 InsightEvent& WithTopAnomalousServices(TopAnomalousServicesT&& value) {
130 SetTopAnomalousServices(std::forward<TopAnomalousServicesT>(value));
131 return *this;
132 }
133 template <typename TopAnomalousServicesT = AnomalousService>
134 InsightEvent& AddTopAnomalousServices(TopAnomalousServicesT&& value) {
135 m_topAnomalousServicesHasBeenSet = true;
136 m_topAnomalousServices.emplace_back(std::forward<TopAnomalousServicesT>(value));
137 return *this;
138 }
140 private:
141 Aws::String m_summary;
142
143 Aws::Utils::DateTime m_eventTime{};
144
145 RequestImpactStatistics m_clientRequestImpactStatistics;
146
147 RequestImpactStatistics m_rootCauseServiceRequestImpactStatistics;
148
149 Aws::Vector<AnomalousService> m_topAnomalousServices;
150 bool m_summaryHasBeenSet = false;
151 bool m_eventTimeHasBeenSet = false;
152 bool m_clientRequestImpactStatisticsHasBeenSet = false;
153 bool m_rootCauseServiceRequestImpactStatisticsHasBeenSet = false;
154 bool m_topAnomalousServicesHasBeenSet = false;
155};
156
157} // namespace Model
158} // namespace XRay
159} // namespace Aws
InsightEvent & WithEventTime(EventTimeT &&value)
InsightEvent & WithSummary(SummaryT &&value)
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRootCauseServiceRequestImpactStatistics(RootCauseServiceRequestImpactStatisticsT &&value)
InsightEvent & WithTopAnomalousServices(TopAnomalousServicesT &&value)
bool ClientRequestImpactStatisticsHasBeenSet() const
void SetClientRequestImpactStatistics(ClientRequestImpactStatisticsT &&value)
InsightEvent & AddTopAnomalousServices(TopAnomalousServicesT &&value)
const Aws::String & GetSummary() const
InsightEvent & WithClientRequestImpactStatistics(ClientRequestImpactStatisticsT &&value)
const RequestImpactStatistics & GetClientRequestImpactStatistics() const
void SetTopAnomalousServices(TopAnomalousServicesT &&value)
AWS_XRAY_API InsightEvent(Aws::Utils::Json::JsonView jsonValue)
void SetEventTime(EventTimeT &&value)
InsightEvent & WithRootCauseServiceRequestImpactStatistics(RootCauseServiceRequestImpactStatisticsT &&value)
bool TopAnomalousServicesHasBeenSet() const
const RequestImpactStatistics & GetRootCauseServiceRequestImpactStatistics() const
void SetSummary(SummaryT &&value)
const Aws::Vector< AnomalousService > & GetTopAnomalousServices() const
AWS_XRAY_API InsightEvent()=default
AWS_XRAY_API InsightEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
bool RootCauseServiceRequestImpactStatisticsHasBeenSet() const
const Aws::Utils::DateTime & GetEventTime() 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