AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Insight.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/pi/PI_EXPORTS.h>
11#include <aws/pi/model/ContextType.h>
12#include <aws/pi/model/Data.h>
13#include <aws/pi/model/Recommendation.h>
14#include <aws/pi/model/Severity.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace PI {
26namespace Model {
27
34class Insight {
35 public:
36 AWS_PI_API Insight() = default;
37 AWS_PI_API Insight(Aws::Utils::Json::JsonView jsonValue);
40
42
46 inline const Aws::String& GetInsightId() const { return m_insightId; }
47 inline bool InsightIdHasBeenSet() const { return m_insightIdHasBeenSet; }
48 template <typename InsightIdT = Aws::String>
49 void SetInsightId(InsightIdT&& value) {
50 m_insightIdHasBeenSet = true;
51 m_insightId = std::forward<InsightIdT>(value);
52 }
53 template <typename InsightIdT = Aws::String>
54 Insight& WithInsightId(InsightIdT&& value) {
55 SetInsightId(std::forward<InsightIdT>(value));
56 return *this;
57 }
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) {
69 m_insightTypeHasBeenSet = true;
70 m_insightType = std::forward<InsightTypeT>(value);
71 }
72 template <typename InsightTypeT = Aws::String>
73 Insight& WithInsightType(InsightTypeT&& value) {
74 SetInsightType(std::forward<InsightTypeT>(value));
75 return *this;
76 }
78
80
83 inline ContextType GetContext() const { return m_context; }
84 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
85 inline void SetContext(ContextType value) {
86 m_contextHasBeenSet = true;
87 m_context = value;
88 }
90 SetContext(value);
91 return *this;
92 }
94
96
100 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
101 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
102 template <typename StartTimeT = Aws::Utils::DateTime>
103 void SetStartTime(StartTimeT&& value) {
104 m_startTimeHasBeenSet = true;
105 m_startTime = std::forward<StartTimeT>(value);
106 }
107 template <typename StartTimeT = Aws::Utils::DateTime>
108 Insight& WithStartTime(StartTimeT&& value) {
109 SetStartTime(std::forward<StartTimeT>(value));
110 return *this;
111 }
113
115
119 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
120 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
121 template <typename EndTimeT = Aws::Utils::DateTime>
122 void SetEndTime(EndTimeT&& value) {
123 m_endTimeHasBeenSet = true;
124 m_endTime = std::forward<EndTimeT>(value);
125 }
126 template <typename EndTimeT = Aws::Utils::DateTime>
127 Insight& WithEndTime(EndTimeT&& value) {
128 SetEndTime(std::forward<EndTimeT>(value));
129 return *this;
130 }
132
134
138 inline Severity GetSeverity() const { return m_severity; }
139 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
140 inline void SetSeverity(Severity value) {
141 m_severityHasBeenSet = true;
142 m_severity = value;
143 }
145 SetSeverity(value);
146 return *this;
147 }
149
151
155 inline const Aws::Vector<Insight>& GetSupportingInsights() const { return m_supportingInsights; }
156 inline bool SupportingInsightsHasBeenSet() const { return m_supportingInsightsHasBeenSet; }
157 template <typename SupportingInsightsT = Aws::Vector<Insight>>
158 void SetSupportingInsights(SupportingInsightsT&& value) {
159 m_supportingInsightsHasBeenSet = true;
160 m_supportingInsights = std::forward<SupportingInsightsT>(value);
161 }
162 template <typename SupportingInsightsT = Aws::Vector<Insight>>
163 Insight& WithSupportingInsights(SupportingInsightsT&& value) {
164 SetSupportingInsights(std::forward<SupportingInsightsT>(value));
165 return *this;
166 }
167 template <typename SupportingInsightsT = Insight>
168 Insight& AddSupportingInsights(SupportingInsightsT&& value) {
169 m_supportingInsightsHasBeenSet = true;
170 m_supportingInsights.emplace_back(std::forward<SupportingInsightsT>(value));
171 return *this;
172 }
174
176
181 inline const Aws::String& GetDescription() const { return m_description; }
182 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
183 template <typename DescriptionT = Aws::String>
184 void SetDescription(DescriptionT&& value) {
185 m_descriptionHasBeenSet = true;
186 m_description = std::forward<DescriptionT>(value);
187 }
188 template <typename DescriptionT = Aws::String>
189 Insight& WithDescription(DescriptionT&& value) {
190 SetDescription(std::forward<DescriptionT>(value));
191 return *this;
192 }
194
196
201 inline const Aws::Vector<Recommendation>& GetRecommendations() const { return m_recommendations; }
202 inline bool RecommendationsHasBeenSet() const { return m_recommendationsHasBeenSet; }
203 template <typename RecommendationsT = Aws::Vector<Recommendation>>
204 void SetRecommendations(RecommendationsT&& value) {
205 m_recommendationsHasBeenSet = true;
206 m_recommendations = std::forward<RecommendationsT>(value);
207 }
208 template <typename RecommendationsT = Aws::Vector<Recommendation>>
209 Insight& WithRecommendations(RecommendationsT&& value) {
210 SetRecommendations(std::forward<RecommendationsT>(value));
211 return *this;
212 }
213 template <typename RecommendationsT = Recommendation>
214 Insight& AddRecommendations(RecommendationsT&& value) {
215 m_recommendationsHasBeenSet = true;
216 m_recommendations.emplace_back(std::forward<RecommendationsT>(value));
217 return *this;
218 }
220
222
226 inline const Aws::Vector<Data>& GetInsightData() const { return m_insightData; }
227 inline bool InsightDataHasBeenSet() const { return m_insightDataHasBeenSet; }
228 template <typename InsightDataT = Aws::Vector<Data>>
229 void SetInsightData(InsightDataT&& value) {
230 m_insightDataHasBeenSet = true;
231 m_insightData = std::forward<InsightDataT>(value);
232 }
233 template <typename InsightDataT = Aws::Vector<Data>>
234 Insight& WithInsightData(InsightDataT&& value) {
235 SetInsightData(std::forward<InsightDataT>(value));
236 return *this;
237 }
238 template <typename InsightDataT = Data>
239 Insight& AddInsightData(InsightDataT&& value) {
240 m_insightDataHasBeenSet = true;
241 m_insightData.emplace_back(std::forward<InsightDataT>(value));
242 return *this;
243 }
245
247
251 inline const Aws::Vector<Data>& GetBaselineData() const { return m_baselineData; }
252 inline bool BaselineDataHasBeenSet() const { return m_baselineDataHasBeenSet; }
253 template <typename BaselineDataT = Aws::Vector<Data>>
254 void SetBaselineData(BaselineDataT&& value) {
255 m_baselineDataHasBeenSet = true;
256 m_baselineData = std::forward<BaselineDataT>(value);
257 }
258 template <typename BaselineDataT = Aws::Vector<Data>>
259 Insight& WithBaselineData(BaselineDataT&& value) {
260 SetBaselineData(std::forward<BaselineDataT>(value));
261 return *this;
262 }
263 template <typename BaselineDataT = Data>
264 Insight& AddBaselineData(BaselineDataT&& value) {
265 m_baselineDataHasBeenSet = true;
266 m_baselineData.emplace_back(std::forward<BaselineDataT>(value));
267 return *this;
268 }
270 private:
271 Aws::String m_insightId;
272
273 Aws::String m_insightType;
274
276
277 Aws::Utils::DateTime m_startTime{};
278
279 Aws::Utils::DateTime m_endTime{};
280
281 Severity m_severity{Severity::NOT_SET};
282
283 Aws::Vector<Insight> m_supportingInsights;
284
285 Aws::String m_description;
286
287 Aws::Vector<Recommendation> m_recommendations;
288
289 Aws::Vector<Data> m_insightData;
290
291 Aws::Vector<Data> m_baselineData;
292 bool m_insightIdHasBeenSet = false;
293 bool m_insightTypeHasBeenSet = false;
294 bool m_contextHasBeenSet = false;
295 bool m_startTimeHasBeenSet = false;
296 bool m_endTimeHasBeenSet = false;
297 bool m_severityHasBeenSet = false;
298 bool m_supportingInsightsHasBeenSet = false;
299 bool m_descriptionHasBeenSet = false;
300 bool m_recommendationsHasBeenSet = false;
301 bool m_insightDataHasBeenSet = false;
302 bool m_baselineDataHasBeenSet = false;
303};
304
305} // namespace Model
306} // namespace PI
307} // namespace Aws
Insight & WithDescription(DescriptionT &&value)
Definition Insight.h:189
const Aws::Vector< Recommendation > & GetRecommendations() const
Definition Insight.h:201
const Aws::String & GetInsightType() const
Definition Insight.h:65
const Aws::String & GetDescription() const
Definition Insight.h:181
void SetInsightId(InsightIdT &&value)
Definition Insight.h:49
AWS_PI_API Insight()=default
Insight & WithSeverity(Severity value)
Definition Insight.h:144
void SetEndTime(EndTimeT &&value)
Definition Insight.h:122
bool BaselineDataHasBeenSet() const
Definition Insight.h:252
Insight & WithRecommendations(RecommendationsT &&value)
Definition Insight.h:209
Insight & WithInsightType(InsightTypeT &&value)
Definition Insight.h:73
Insight & WithBaselineData(BaselineDataT &&value)
Definition Insight.h:259
Severity GetSeverity() const
Definition Insight.h:138
bool InsightIdHasBeenSet() const
Definition Insight.h:47
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:139
bool InsightTypeHasBeenSet() const
Definition Insight.h:66
bool RecommendationsHasBeenSet() const
Definition Insight.h:202
bool StartTimeHasBeenSet() const
Definition Insight.h:101
const Aws::Utils::DateTime & GetEndTime() const
Definition Insight.h:119
AWS_PI_API Insight(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetStartTime() const
Definition Insight.h:100
const Aws::Vector< Data > & GetInsightData() const
Definition Insight.h:226
bool EndTimeHasBeenSet() const
Definition Insight.h:120
void SetSeverity(Severity value)
Definition Insight.h:140
bool ContextHasBeenSet() const
Definition Insight.h:84
const Aws::String & GetInsightId() const
Definition Insight.h:46
bool DescriptionHasBeenSet() const
Definition Insight.h:182
Insight & AddBaselineData(BaselineDataT &&value)
Definition Insight.h:264
Insight & WithSupportingInsights(SupportingInsightsT &&value)
Definition Insight.h:163
void SetBaselineData(BaselineDataT &&value)
Definition Insight.h:254
bool SupportingInsightsHasBeenSet() const
Definition Insight.h:156
void SetDescription(DescriptionT &&value)
Definition Insight.h:184
Insight & AddRecommendations(RecommendationsT &&value)
Definition Insight.h:214
Insight & WithInsightData(InsightDataT &&value)
Definition Insight.h:234
Insight & AddInsightData(InsightDataT &&value)
Definition Insight.h:239
ContextType GetContext() const
Definition Insight.h:83
Insight & WithContext(ContextType value)
Definition Insight.h:89
void SetStartTime(StartTimeT &&value)
Definition Insight.h:103
Insight & WithStartTime(StartTimeT &&value)
Definition Insight.h:108
void SetContext(ContextType value)
Definition Insight.h:85
Insight & WithInsightId(InsightIdT &&value)
Definition Insight.h:54
bool InsightDataHasBeenSet() const
Definition Insight.h:227
void SetRecommendations(RecommendationsT &&value)
Definition Insight.h:204
void SetSupportingInsights(SupportingInsightsT &&value)
Definition Insight.h:158
Insight & AddSupportingInsights(SupportingInsightsT &&value)
Definition Insight.h:168
const Aws::Vector< Data > & GetBaselineData() const
Definition Insight.h:251
const Aws::Vector< Insight > & GetSupportingInsights() const
Definition Insight.h:155
Insight & WithEndTime(EndTimeT &&value)
Definition Insight.h:127
void SetInsightData(InsightDataT &&value)
Definition Insight.h:229
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue