AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetInsightId(const Aws::String& value) { m_insightIdHasBeenSet = true; m_insightId = value; }
55 inline void SetInsightId(Aws::String&& value) { m_insightIdHasBeenSet = true; m_insightId = std::move(value); }
56 inline void SetInsightId(const char* value) { m_insightIdHasBeenSet = true; m_insightId.assign(value); }
57 inline Insight& WithInsightId(const Aws::String& value) { SetInsightId(value); return *this;}
58 inline Insight& WithInsightId(Aws::String&& value) { SetInsightId(std::move(value)); return *this;}
59 inline Insight& WithInsightId(const char* value) { SetInsightId(value); return *this;}
61
63
67 inline const Aws::String& GetInsightType() const{ return m_insightType; }
68 inline bool InsightTypeHasBeenSet() const { return m_insightTypeHasBeenSet; }
69 inline void SetInsightType(const Aws::String& value) { m_insightTypeHasBeenSet = true; m_insightType = value; }
70 inline void SetInsightType(Aws::String&& value) { m_insightTypeHasBeenSet = true; m_insightType = std::move(value); }
71 inline void SetInsightType(const char* value) { m_insightTypeHasBeenSet = true; m_insightType.assign(value); }
72 inline Insight& WithInsightType(const Aws::String& value) { SetInsightType(value); return *this;}
73 inline Insight& WithInsightType(Aws::String&& value) { SetInsightType(std::move(value)); return *this;}
74 inline Insight& WithInsightType(const char* value) { SetInsightType(value); return *this;}
76
78
81 inline const ContextType& GetContext() const{ return m_context; }
82 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
83 inline void SetContext(const ContextType& value) { m_contextHasBeenSet = true; m_context = value; }
84 inline void SetContext(ContextType&& value) { m_contextHasBeenSet = true; m_context = std::move(value); }
85 inline Insight& WithContext(const ContextType& value) { SetContext(value); return *this;}
86 inline Insight& WithContext(ContextType&& value) { SetContext(std::move(value)); return *this;}
88
90
94 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
95 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
96 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
97 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
98 inline Insight& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
99 inline Insight& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
101
103
107 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
108 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
109 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
110 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
111 inline Insight& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
112 inline Insight& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
114
116
120 inline const Severity& GetSeverity() const{ return m_severity; }
121 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
122 inline void SetSeverity(const Severity& value) { m_severityHasBeenSet = true; m_severity = value; }
123 inline void SetSeverity(Severity&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
124 inline Insight& WithSeverity(const Severity& value) { SetSeverity(value); return *this;}
125 inline Insight& WithSeverity(Severity&& value) { SetSeverity(std::move(value)); return *this;}
127
129
133 inline const Aws::Vector<Insight>& GetSupportingInsights() const{ return m_supportingInsights; }
134 inline bool SupportingInsightsHasBeenSet() const { return m_supportingInsightsHasBeenSet; }
135 inline void SetSupportingInsights(const Aws::Vector<Insight>& value) { m_supportingInsightsHasBeenSet = true; m_supportingInsights = value; }
136 inline void SetSupportingInsights(Aws::Vector<Insight>&& value) { m_supportingInsightsHasBeenSet = true; m_supportingInsights = std::move(value); }
137 inline Insight& WithSupportingInsights(const Aws::Vector<Insight>& value) { SetSupportingInsights(value); return *this;}
138 inline Insight& WithSupportingInsights(Aws::Vector<Insight>&& value) { SetSupportingInsights(std::move(value)); return *this;}
139 inline Insight& AddSupportingInsights(const Insight& value) { m_supportingInsightsHasBeenSet = true; m_supportingInsights.push_back(value); return *this; }
140 inline Insight& AddSupportingInsights(Insight&& value) { m_supportingInsightsHasBeenSet = true; m_supportingInsights.push_back(std::move(value)); return *this; }
142
144
149 inline const Aws::String& GetDescription() const{ return m_description; }
150 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
151 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
152 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
153 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
154 inline Insight& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
155 inline Insight& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
156 inline Insight& WithDescription(const char* value) { SetDescription(value); return *this;}
158
160
165 inline const Aws::Vector<Recommendation>& GetRecommendations() const{ return m_recommendations; }
166 inline bool RecommendationsHasBeenSet() const { return m_recommendationsHasBeenSet; }
167 inline void SetRecommendations(const Aws::Vector<Recommendation>& value) { m_recommendationsHasBeenSet = true; m_recommendations = value; }
168 inline void SetRecommendations(Aws::Vector<Recommendation>&& value) { m_recommendationsHasBeenSet = true; m_recommendations = std::move(value); }
169 inline Insight& WithRecommendations(const Aws::Vector<Recommendation>& value) { SetRecommendations(value); return *this;}
170 inline Insight& WithRecommendations(Aws::Vector<Recommendation>&& value) { SetRecommendations(std::move(value)); return *this;}
171 inline Insight& AddRecommendations(const Recommendation& value) { m_recommendationsHasBeenSet = true; m_recommendations.push_back(value); return *this; }
172 inline Insight& AddRecommendations(Recommendation&& value) { m_recommendationsHasBeenSet = true; m_recommendations.push_back(std::move(value)); return *this; }
174
176
180 inline const Aws::Vector<Data>& GetInsightData() const{ return m_insightData; }
181 inline bool InsightDataHasBeenSet() const { return m_insightDataHasBeenSet; }
182 inline void SetInsightData(const Aws::Vector<Data>& value) { m_insightDataHasBeenSet = true; m_insightData = value; }
183 inline void SetInsightData(Aws::Vector<Data>&& value) { m_insightDataHasBeenSet = true; m_insightData = std::move(value); }
184 inline Insight& WithInsightData(const Aws::Vector<Data>& value) { SetInsightData(value); return *this;}
185 inline Insight& WithInsightData(Aws::Vector<Data>&& value) { SetInsightData(std::move(value)); return *this;}
186 inline Insight& AddInsightData(const Data& value) { m_insightDataHasBeenSet = true; m_insightData.push_back(value); return *this; }
187 inline Insight& AddInsightData(Data&& value) { m_insightDataHasBeenSet = true; m_insightData.push_back(std::move(value)); return *this; }
189
191
195 inline const Aws::Vector<Data>& GetBaselineData() const{ return m_baselineData; }
196 inline bool BaselineDataHasBeenSet() const { return m_baselineDataHasBeenSet; }
197 inline void SetBaselineData(const Aws::Vector<Data>& value) { m_baselineDataHasBeenSet = true; m_baselineData = value; }
198 inline void SetBaselineData(Aws::Vector<Data>&& value) { m_baselineDataHasBeenSet = true; m_baselineData = std::move(value); }
199 inline Insight& WithBaselineData(const Aws::Vector<Data>& value) { SetBaselineData(value); return *this;}
200 inline Insight& WithBaselineData(Aws::Vector<Data>&& value) { SetBaselineData(std::move(value)); return *this;}
201 inline Insight& AddBaselineData(const Data& value) { m_baselineDataHasBeenSet = true; m_baselineData.push_back(value); return *this; }
202 inline Insight& AddBaselineData(Data&& value) { m_baselineDataHasBeenSet = true; m_baselineData.push_back(std::move(value)); return *this; }
204 private:
205
206 Aws::String m_insightId;
207 bool m_insightIdHasBeenSet = false;
208
209 Aws::String m_insightType;
210 bool m_insightTypeHasBeenSet = false;
211
212 ContextType m_context;
213 bool m_contextHasBeenSet = false;
214
215 Aws::Utils::DateTime m_startTime;
216 bool m_startTimeHasBeenSet = false;
217
218 Aws::Utils::DateTime m_endTime;
219 bool m_endTimeHasBeenSet = false;
220
221 Severity m_severity;
222 bool m_severityHasBeenSet = false;
223
224 Aws::Vector<Insight> m_supportingInsights;
225 bool m_supportingInsightsHasBeenSet = false;
226
227 Aws::String m_description;
228 bool m_descriptionHasBeenSet = false;
229
230 Aws::Vector<Recommendation> m_recommendations;
231 bool m_recommendationsHasBeenSet = false;
232
233 Aws::Vector<Data> m_insightData;
234 bool m_insightDataHasBeenSet = false;
235
236 Aws::Vector<Data> m_baselineData;
237 bool m_baselineDataHasBeenSet = false;
238 };
239
240} // namespace Model
241} // namespace PI
242} // namespace Aws
const Aws::Vector< Recommendation > & GetRecommendations() const
Definition Insight.h:165
void SetDescription(const char *value)
Definition Insight.h:153
const Aws::String & GetInsightType() const
Definition Insight.h:67
const Aws::String & GetDescription() const
Definition Insight.h:149
void SetInsightType(const char *value)
Definition Insight.h:71
Insight & WithEndTime(Aws::Utils::DateTime &&value)
Definition Insight.h:112
Insight & WithRecommendations(Aws::Vector< Recommendation > &&value)
Definition Insight.h:170
Insight & AddRecommendations(const Recommendation &value)
Definition Insight.h:171
void SetStartTime(Aws::Utils::DateTime &&value)
Definition Insight.h:97
Insight & WithRecommendations(const Aws::Vector< Recommendation > &value)
Definition Insight.h:169
Insight & WithStartTime(Aws::Utils::DateTime &&value)
Definition Insight.h:99
Insight & WithEndTime(const Aws::Utils::DateTime &value)
Definition Insight.h:111
void SetInsightId(Aws::String &&value)
Definition Insight.h:55
bool BaselineDataHasBeenSet() const
Definition Insight.h:196
Insight & AddBaselineData(const Data &value)
Definition Insight.h:201
void SetDescription(Aws::String &&value)
Definition Insight.h:152
Insight & WithInsightType(Aws::String &&value)
Definition Insight.h:73
Insight & AddSupportingInsights(const Insight &value)
Definition Insight.h:139
void SetDescription(const Aws::String &value)
Definition Insight.h:151
Insight & AddBaselineData(Data &&value)
Definition Insight.h:202
Insight & AddRecommendations(Recommendation &&value)
Definition Insight.h:172
Insight & WithInsightData(Aws::Vector< Data > &&value)
Definition Insight.h:185
bool InsightIdHasBeenSet() const
Definition Insight.h:53
void SetSeverity(const Severity &value)
Definition Insight.h:122
AWS_PI_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PI_API Insight & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetBaselineData(Aws::Vector< Data > &&value)
Definition Insight.h:198
bool SeverityHasBeenSet() const
Definition Insight.h:121
bool InsightTypeHasBeenSet() const
Definition Insight.h:68
bool RecommendationsHasBeenSet() const
Definition Insight.h:166
bool StartTimeHasBeenSet() const
Definition Insight.h:95
void SetContext(const ContextType &value)
Definition Insight.h:83
const Aws::Utils::DateTime & GetEndTime() const
Definition Insight.h:107
AWS_PI_API Insight(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetStartTime() const
Definition Insight.h:94
const Aws::Vector< Data > & GetInsightData() const
Definition Insight.h:180
void SetSupportingInsights(Aws::Vector< Insight > &&value)
Definition Insight.h:136
Insight & AddInsightData(Data &&value)
Definition Insight.h:187
Insight & WithSeverity(Severity &&value)
Definition Insight.h:125
bool EndTimeHasBeenSet() const
Definition Insight.h:108
bool ContextHasBeenSet() const
Definition Insight.h:82
const Aws::String & GetInsightId() const
Definition Insight.h:52
bool DescriptionHasBeenSet() const
Definition Insight.h:150
Insight & WithInsightId(const char *value)
Definition Insight.h:59
void SetBaselineData(const Aws::Vector< Data > &value)
Definition Insight.h:197
void SetRecommendations(Aws::Vector< Recommendation > &&value)
Definition Insight.h:168
Insight & WithInsightId(Aws::String &&value)
Definition Insight.h:58
bool SupportingInsightsHasBeenSet() const
Definition Insight.h:134
void SetInsightType(Aws::String &&value)
Definition Insight.h:70
Insight & WithBaselineData(const Aws::Vector< Data > &value)
Definition Insight.h:199
Insight & AddSupportingInsights(Insight &&value)
Definition Insight.h:140
Insight & WithBaselineData(Aws::Vector< Data > &&value)
Definition Insight.h:200
void SetInsightData(const Aws::Vector< Data > &value)
Definition Insight.h:182
Insight & WithInsightData(const Aws::Vector< Data > &value)
Definition Insight.h:184
void SetContext(ContextType &&value)
Definition Insight.h:84
Insight & WithDescription(Aws::String &&value)
Definition Insight.h:155
Insight & WithSupportingInsights(Aws::Vector< Insight > &&value)
Definition Insight.h:138
Insight & AddInsightData(const Data &value)
Definition Insight.h:186
Insight & WithInsightType(const Aws::String &value)
Definition Insight.h:72
void SetInsightId(const Aws::String &value)
Definition Insight.h:54
const ContextType & GetContext() const
Definition Insight.h:81
bool InsightDataHasBeenSet() const
Definition Insight.h:181
void SetEndTime(const Aws::Utils::DateTime &value)
Definition Insight.h:109
void SetSeverity(Severity &&value)
Definition Insight.h:123
const Severity & GetSeverity() const
Definition Insight.h:120
void SetRecommendations(const Aws::Vector< Recommendation > &value)
Definition Insight.h:167
Insight & WithInsightType(const char *value)
Definition Insight.h:74
Insight & WithStartTime(const Aws::Utils::DateTime &value)
Definition Insight.h:98
void SetInsightId(const char *value)
Definition Insight.h:56
const Aws::Vector< Data > & GetBaselineData() const
Definition Insight.h:195
Insight & WithContext(ContextType &&value)
Definition Insight.h:86
Insight & WithSeverity(const Severity &value)
Definition Insight.h:124
Insight & WithContext(const ContextType &value)
Definition Insight.h:85
void SetInsightType(const Aws::String &value)
Definition Insight.h:69
Insight & WithDescription(const char *value)
Definition Insight.h:156
void SetSupportingInsights(const Aws::Vector< Insight > &value)
Definition Insight.h:135
const Aws::Vector< Insight > & GetSupportingInsights() const
Definition Insight.h:133
void SetStartTime(const Aws::Utils::DateTime &value)
Definition Insight.h:96
Insight & WithSupportingInsights(const Aws::Vector< Insight > &value)
Definition Insight.h:137
Insight & WithDescription(const Aws::String &value)
Definition Insight.h:154
Insight & WithInsightId(const Aws::String &value)
Definition Insight.h:57
void SetEndTime(Aws::Utils::DateTime &&value)
Definition Insight.h:110
void SetInsightData(Aws::Vector< Data > &&value)
Definition Insight.h:183
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue