AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Insight.h
1
6#pragma once
7#include <aws/pi/PI_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/pi/model/ContextType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/pi/model/Severity.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/pi/model/Recommendation.h>
14#include <aws/pi/model/Data.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace PI
28{
29namespace Model
30{
31
38 class Insight
39 {
40 public:
41 AWS_PI_API Insight() = default;
42 AWS_PI_API Insight(Aws::Utils::Json::JsonView jsonValue);
45
46
48
52 inline const Aws::String& GetInsightId() const { return m_insightId; }
53 inline bool InsightIdHasBeenSet() const { return m_insightIdHasBeenSet; }
54 template<typename InsightIdT = Aws::String>
55 void SetInsightId(InsightIdT&& value) { m_insightIdHasBeenSet = true; m_insightId = std::forward<InsightIdT>(value); }
56 template<typename InsightIdT = Aws::String>
57 Insight& WithInsightId(InsightIdT&& value) { SetInsightId(std::forward<InsightIdT>(value)); return *this;}
59
61
65 inline const Aws::String& GetInsightType() const { return m_insightType; }
66 inline bool InsightTypeHasBeenSet() const { return m_insightTypeHasBeenSet; }
67 template<typename InsightTypeT = Aws::String>
68 void SetInsightType(InsightTypeT&& value) { m_insightTypeHasBeenSet = true; m_insightType = std::forward<InsightTypeT>(value); }
69 template<typename InsightTypeT = Aws::String>
70 Insight& WithInsightType(InsightTypeT&& value) { SetInsightType(std::forward<InsightTypeT>(value)); return *this;}
72
74
77 inline ContextType GetContext() const { return m_context; }
78 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
79 inline void SetContext(ContextType value) { m_contextHasBeenSet = true; m_context = value; }
80 inline Insight& WithContext(ContextType value) { SetContext(value); return *this;}
82
84
88 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
89 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
90 template<typename StartTimeT = Aws::Utils::DateTime>
91 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
92 template<typename StartTimeT = Aws::Utils::DateTime>
93 Insight& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
95
97
101 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
102 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
103 template<typename EndTimeT = Aws::Utils::DateTime>
104 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
105 template<typename EndTimeT = Aws::Utils::DateTime>
106 Insight& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
108
110
114 inline Severity GetSeverity() const { return m_severity; }
115 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
116 inline void SetSeverity(Severity value) { m_severityHasBeenSet = true; m_severity = value; }
117 inline Insight& WithSeverity(Severity value) { SetSeverity(value); return *this;}
119
121
125 inline const Aws::Vector<Insight>& GetSupportingInsights() const { return m_supportingInsights; }
126 inline bool SupportingInsightsHasBeenSet() const { return m_supportingInsightsHasBeenSet; }
127 template<typename SupportingInsightsT = Aws::Vector<Insight>>
128 void SetSupportingInsights(SupportingInsightsT&& value) { m_supportingInsightsHasBeenSet = true; m_supportingInsights = std::forward<SupportingInsightsT>(value); }
129 template<typename SupportingInsightsT = Aws::Vector<Insight>>
130 Insight& WithSupportingInsights(SupportingInsightsT&& value) { SetSupportingInsights(std::forward<SupportingInsightsT>(value)); return *this;}
131 template<typename SupportingInsightsT = Insight>
132 Insight& AddSupportingInsights(SupportingInsightsT&& value) { m_supportingInsightsHasBeenSet = true; m_supportingInsights.emplace_back(std::forward<SupportingInsightsT>(value)); return *this; }
134
136
141 inline const Aws::String& GetDescription() const { return m_description; }
142 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
143 template<typename DescriptionT = Aws::String>
144 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
145 template<typename DescriptionT = Aws::String>
146 Insight& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
148
150
155 inline const Aws::Vector<Recommendation>& GetRecommendations() const { return m_recommendations; }
156 inline bool RecommendationsHasBeenSet() const { return m_recommendationsHasBeenSet; }
157 template<typename RecommendationsT = Aws::Vector<Recommendation>>
158 void SetRecommendations(RecommendationsT&& value) { m_recommendationsHasBeenSet = true; m_recommendations = std::forward<RecommendationsT>(value); }
159 template<typename RecommendationsT = Aws::Vector<Recommendation>>
160 Insight& WithRecommendations(RecommendationsT&& value) { SetRecommendations(std::forward<RecommendationsT>(value)); return *this;}
161 template<typename RecommendationsT = Recommendation>
162 Insight& AddRecommendations(RecommendationsT&& value) { m_recommendationsHasBeenSet = true; m_recommendations.emplace_back(std::forward<RecommendationsT>(value)); return *this; }
164
166
170 inline const Aws::Vector<Data>& GetInsightData() const { return m_insightData; }
171 inline bool InsightDataHasBeenSet() const { return m_insightDataHasBeenSet; }
172 template<typename InsightDataT = Aws::Vector<Data>>
173 void SetInsightData(InsightDataT&& value) { m_insightDataHasBeenSet = true; m_insightData = std::forward<InsightDataT>(value); }
174 template<typename InsightDataT = Aws::Vector<Data>>
175 Insight& WithInsightData(InsightDataT&& value) { SetInsightData(std::forward<InsightDataT>(value)); return *this;}
176 template<typename InsightDataT = Data>
177 Insight& AddInsightData(InsightDataT&& value) { m_insightDataHasBeenSet = true; m_insightData.emplace_back(std::forward<InsightDataT>(value)); return *this; }
179
181
185 inline const Aws::Vector<Data>& GetBaselineData() const { return m_baselineData; }
186 inline bool BaselineDataHasBeenSet() const { return m_baselineDataHasBeenSet; }
187 template<typename BaselineDataT = Aws::Vector<Data>>
188 void SetBaselineData(BaselineDataT&& value) { m_baselineDataHasBeenSet = true; m_baselineData = std::forward<BaselineDataT>(value); }
189 template<typename BaselineDataT = Aws::Vector<Data>>
190 Insight& WithBaselineData(BaselineDataT&& value) { SetBaselineData(std::forward<BaselineDataT>(value)); return *this;}
191 template<typename BaselineDataT = Data>
192 Insight& AddBaselineData(BaselineDataT&& value) { m_baselineDataHasBeenSet = true; m_baselineData.emplace_back(std::forward<BaselineDataT>(value)); return *this; }
194 private:
195
196 Aws::String m_insightId;
197 bool m_insightIdHasBeenSet = false;
198
199 Aws::String m_insightType;
200 bool m_insightTypeHasBeenSet = false;
201
203 bool m_contextHasBeenSet = false;
204
205 Aws::Utils::DateTime m_startTime{};
206 bool m_startTimeHasBeenSet = false;
207
208 Aws::Utils::DateTime m_endTime{};
209 bool m_endTimeHasBeenSet = false;
210
211 Severity m_severity{Severity::NOT_SET};
212 bool m_severityHasBeenSet = false;
213
214 Aws::Vector<Insight> m_supportingInsights;
215 bool m_supportingInsightsHasBeenSet = false;
216
217 Aws::String m_description;
218 bool m_descriptionHasBeenSet = false;
219
220 Aws::Vector<Recommendation> m_recommendations;
221 bool m_recommendationsHasBeenSet = false;
222
223 Aws::Vector<Data> m_insightData;
224 bool m_insightDataHasBeenSet = false;
225
226 Aws::Vector<Data> m_baselineData;
227 bool m_baselineDataHasBeenSet = false;
228 };
229
230} // namespace Model
231} // namespace PI
232} // namespace Aws
Insight & WithDescription(DescriptionT &&value)
Definition Insight.h:146
const Aws::Vector< Recommendation > & GetRecommendations() const
Definition Insight.h:155
const Aws::String & GetInsightType() const
Definition Insight.h:65
const Aws::String & GetDescription() const
Definition Insight.h:141
void SetInsightId(InsightIdT &&value)
Definition Insight.h:55
AWS_PI_API Insight()=default
Insight & WithSeverity(Severity value)
Definition Insight.h:117
void SetEndTime(EndTimeT &&value)
Definition Insight.h:104
bool BaselineDataHasBeenSet() const
Definition Insight.h:186
Insight & WithRecommendations(RecommendationsT &&value)
Definition Insight.h:160
Insight & WithInsightType(InsightTypeT &&value)
Definition Insight.h:70
Insight & WithBaselineData(BaselineDataT &&value)
Definition Insight.h:190
Severity GetSeverity() const
Definition Insight.h:114
bool InsightIdHasBeenSet() const
Definition Insight.h:53
void SetInsightType(InsightTypeT &&value)
Definition Insight.h:68
AWS_PI_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PI_API Insight & operator=(Aws::Utils::Json::JsonView jsonValue)
bool SeverityHasBeenSet() const
Definition Insight.h:115
bool InsightTypeHasBeenSet() const
Definition Insight.h:66
bool RecommendationsHasBeenSet() const
Definition Insight.h:156
bool StartTimeHasBeenSet() const
Definition Insight.h:89
const Aws::Utils::DateTime & GetEndTime() const
Definition Insight.h:101
AWS_PI_API Insight(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetStartTime() const
Definition Insight.h:88
const Aws::Vector< Data > & GetInsightData() const
Definition Insight.h:170
bool EndTimeHasBeenSet() const
Definition Insight.h:102
void SetSeverity(Severity value)
Definition Insight.h:116
bool ContextHasBeenSet() const
Definition Insight.h:78
const Aws::String & GetInsightId() const
Definition Insight.h:52
bool DescriptionHasBeenSet() const
Definition Insight.h:142
Insight & AddBaselineData(BaselineDataT &&value)
Definition Insight.h:192
Insight & WithSupportingInsights(SupportingInsightsT &&value)
Definition Insight.h:130
void SetBaselineData(BaselineDataT &&value)
Definition Insight.h:188
bool SupportingInsightsHasBeenSet() const
Definition Insight.h:126
void SetDescription(DescriptionT &&value)
Definition Insight.h:144
Insight & AddRecommendations(RecommendationsT &&value)
Definition Insight.h:162
Insight & WithInsightData(InsightDataT &&value)
Definition Insight.h:175
Insight & AddInsightData(InsightDataT &&value)
Definition Insight.h:177
ContextType GetContext() const
Definition Insight.h:77
Insight & WithContext(ContextType value)
Definition Insight.h:80
void SetStartTime(StartTimeT &&value)
Definition Insight.h:91
Insight & WithStartTime(StartTimeT &&value)
Definition Insight.h:93
void SetContext(ContextType value)
Definition Insight.h:79
Insight & WithInsightId(InsightIdT &&value)
Definition Insight.h:57
bool InsightDataHasBeenSet() const
Definition Insight.h:171
void SetRecommendations(RecommendationsT &&value)
Definition Insight.h:158
void SetSupportingInsights(SupportingInsightsT &&value)
Definition Insight.h:128
Insight & AddSupportingInsights(SupportingInsightsT &&value)
Definition Insight.h:132
const Aws::Vector< Data > & GetBaselineData() const
Definition Insight.h:185
const Aws::Vector< Insight > & GetSupportingInsights() const
Definition Insight.h:125
Insight & WithEndTime(EndTimeT &&value)
Definition Insight.h:106
void SetInsightData(InsightDataT &&value)
Definition Insight.h:173
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue