AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InsightEvent.h
1
6#pragma once
7#include <aws/xray/XRay_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/xray/model/RequestImpactStatistics.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/xray/model/AnomalousService.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace XRay
26{
27namespace Model
28{
29
39 {
40 public:
41 AWS_XRAY_API InsightEvent();
45
46
48
51 inline const Aws::String& GetSummary() const{ return m_summary; }
52 inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; }
53 inline void SetSummary(const Aws::String& value) { m_summaryHasBeenSet = true; m_summary = value; }
54 inline void SetSummary(Aws::String&& value) { m_summaryHasBeenSet = true; m_summary = std::move(value); }
55 inline void SetSummary(const char* value) { m_summaryHasBeenSet = true; m_summary.assign(value); }
56 inline InsightEvent& WithSummary(const Aws::String& value) { SetSummary(value); return *this;}
57 inline InsightEvent& WithSummary(Aws::String&& value) { SetSummary(std::move(value)); return *this;}
58 inline InsightEvent& WithSummary(const char* value) { SetSummary(value); return *this;}
60
62
65 inline const Aws::Utils::DateTime& GetEventTime() const{ return m_eventTime; }
66 inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; }
67 inline void SetEventTime(const Aws::Utils::DateTime& value) { m_eventTimeHasBeenSet = true; m_eventTime = value; }
68 inline void SetEventTime(Aws::Utils::DateTime&& value) { m_eventTimeHasBeenSet = true; m_eventTime = std::move(value); }
69 inline InsightEvent& WithEventTime(const Aws::Utils::DateTime& value) { SetEventTime(value); return *this;}
70 inline InsightEvent& WithEventTime(Aws::Utils::DateTime&& value) { SetEventTime(std::move(value)); return *this;}
72
74
78 inline const RequestImpactStatistics& GetClientRequestImpactStatistics() const{ return m_clientRequestImpactStatistics; }
79 inline bool ClientRequestImpactStatisticsHasBeenSet() const { return m_clientRequestImpactStatisticsHasBeenSet; }
80 inline void SetClientRequestImpactStatistics(const RequestImpactStatistics& value) { m_clientRequestImpactStatisticsHasBeenSet = true; m_clientRequestImpactStatistics = value; }
81 inline void SetClientRequestImpactStatistics(RequestImpactStatistics&& value) { m_clientRequestImpactStatisticsHasBeenSet = true; m_clientRequestImpactStatistics = std::move(value); }
85
87
91 inline const RequestImpactStatistics& GetRootCauseServiceRequestImpactStatistics() const{ return m_rootCauseServiceRequestImpactStatistics; }
92 inline bool RootCauseServiceRequestImpactStatisticsHasBeenSet() const { return m_rootCauseServiceRequestImpactStatisticsHasBeenSet; }
93 inline void SetRootCauseServiceRequestImpactStatistics(const RequestImpactStatistics& value) { m_rootCauseServiceRequestImpactStatisticsHasBeenSet = true; m_rootCauseServiceRequestImpactStatistics = value; }
94 inline void SetRootCauseServiceRequestImpactStatistics(RequestImpactStatistics&& value) { m_rootCauseServiceRequestImpactStatisticsHasBeenSet = true; m_rootCauseServiceRequestImpactStatistics = std::move(value); }
98
100
103 inline const Aws::Vector<AnomalousService>& GetTopAnomalousServices() const{ return m_topAnomalousServices; }
104 inline bool TopAnomalousServicesHasBeenSet() const { return m_topAnomalousServicesHasBeenSet; }
105 inline void SetTopAnomalousServices(const Aws::Vector<AnomalousService>& value) { m_topAnomalousServicesHasBeenSet = true; m_topAnomalousServices = value; }
106 inline void SetTopAnomalousServices(Aws::Vector<AnomalousService>&& value) { m_topAnomalousServicesHasBeenSet = true; m_topAnomalousServices = std::move(value); }
109 inline InsightEvent& AddTopAnomalousServices(const AnomalousService& value) { m_topAnomalousServicesHasBeenSet = true; m_topAnomalousServices.push_back(value); return *this; }
110 inline InsightEvent& AddTopAnomalousServices(AnomalousService&& value) { m_topAnomalousServicesHasBeenSet = true; m_topAnomalousServices.push_back(std::move(value)); return *this; }
112 private:
113
114 Aws::String m_summary;
115 bool m_summaryHasBeenSet = false;
116
117 Aws::Utils::DateTime m_eventTime;
118 bool m_eventTimeHasBeenSet = false;
119
120 RequestImpactStatistics m_clientRequestImpactStatistics;
121 bool m_clientRequestImpactStatisticsHasBeenSet = false;
122
123 RequestImpactStatistics m_rootCauseServiceRequestImpactStatistics;
124 bool m_rootCauseServiceRequestImpactStatisticsHasBeenSet = false;
125
126 Aws::Vector<AnomalousService> m_topAnomalousServices;
127 bool m_topAnomalousServicesHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace XRay
132} // namespace Aws
void SetRootCauseServiceRequestImpactStatistics(RequestImpactStatistics &&value)
void SetTopAnomalousServices(const Aws::Vector< AnomalousService > &value)
InsightEvent & WithClientRequestImpactStatistics(RequestImpactStatistics &&value)
InsightEvent & WithEventTime(Aws::Utils::DateTime &&value)
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
InsightEvent & WithSummary(const Aws::String &value)
InsightEvent & WithSummary(const char *value)
bool ClientRequestImpactStatisticsHasBeenSet() const
InsightEvent & WithEventTime(const Aws::Utils::DateTime &value)
InsightEvent & WithSummary(Aws::String &&value)
void SetRootCauseServiceRequestImpactStatistics(const RequestImpactStatistics &value)
void SetSummary(const Aws::String &value)
InsightEvent & WithTopAnomalousServices(Aws::Vector< AnomalousService > &&value)
void SetClientRequestImpactStatistics(RequestImpactStatistics &&value)
InsightEvent & WithTopAnomalousServices(const Aws::Vector< AnomalousService > &value)
void SetSummary(Aws::String &&value)
void SetTopAnomalousServices(Aws::Vector< AnomalousService > &&value)
InsightEvent & WithRootCauseServiceRequestImpactStatistics(const RequestImpactStatistics &value)
const Aws::String & GetSummary() const
const RequestImpactStatistics & GetClientRequestImpactStatistics() const
AWS_XRAY_API InsightEvent(Aws::Utils::Json::JsonView jsonValue)
InsightEvent & WithClientRequestImpactStatistics(const RequestImpactStatistics &value)
InsightEvent & WithRootCauseServiceRequestImpactStatistics(RequestImpactStatistics &&value)
void SetClientRequestImpactStatistics(const RequestImpactStatistics &value)
void SetEventTime(const Aws::Utils::DateTime &value)
bool TopAnomalousServicesHasBeenSet() const
void SetSummary(const char *value)
const RequestImpactStatistics & GetRootCauseServiceRequestImpactStatistics() const
InsightEvent & AddTopAnomalousServices(const AnomalousService &value)
const Aws::Vector< AnomalousService > & GetTopAnomalousServices() const
void SetEventTime(Aws::Utils::DateTime &&value)
AWS_XRAY_API InsightEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
bool RootCauseServiceRequestImpactStatisticsHasBeenSet() const
InsightEvent & AddTopAnomalousServices(AnomalousService &&value)
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