AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Problem.h
1
6#pragma once
7#include <aws/application-insights/ApplicationInsights_EXPORTS.h>
8#include <aws/application-insights/model/FeedbackKey.h>
9#include <aws/application-insights/model/FeedbackValue.h>
10#include <aws/application-insights/model/ResolutionMethod.h>
11#include <aws/application-insights/model/SeverityLevel.h>
12#include <aws/application-insights/model/Status.h>
13#include <aws/application-insights/model/Visibility.h>
14#include <aws/core/utils/DateTime.h>
15#include <aws/core/utils/memory/stl/AWSMap.h>
16#include <aws/core/utils/memory/stl/AWSString.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace ApplicationInsights {
28namespace Model {
29
36class Problem {
37 public:
38 AWS_APPLICATIONINSIGHTS_API Problem() = default;
39 AWS_APPLICATIONINSIGHTS_API Problem(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPLICATIONINSIGHTS_API Problem& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_APPLICATIONINSIGHTS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::String& GetId() const { return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 template <typename IdT = Aws::String>
50 void SetId(IdT&& value) {
51 m_idHasBeenSet = true;
52 m_id = std::forward<IdT>(value);
53 }
54 template <typename IdT = Aws::String>
55 Problem& WithId(IdT&& value) {
56 SetId(std::forward<IdT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetTitle() const { return m_title; }
66 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
67 template <typename TitleT = Aws::String>
68 void SetTitle(TitleT&& value) {
69 m_titleHasBeenSet = true;
70 m_title = std::forward<TitleT>(value);
71 }
72 template <typename TitleT = Aws::String>
73 Problem& WithTitle(TitleT&& value) {
74 SetTitle(std::forward<TitleT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetShortName() const { return m_shortName; }
84 inline bool ShortNameHasBeenSet() const { return m_shortNameHasBeenSet; }
85 template <typename ShortNameT = Aws::String>
86 void SetShortName(ShortNameT&& value) {
87 m_shortNameHasBeenSet = true;
88 m_shortName = std::forward<ShortNameT>(value);
89 }
90 template <typename ShortNameT = Aws::String>
91 Problem& WithShortName(ShortNameT&& value) {
92 SetShortName(std::forward<ShortNameT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetInsights() const { return m_insights; }
102 inline bool InsightsHasBeenSet() const { return m_insightsHasBeenSet; }
103 template <typename InsightsT = Aws::String>
104 void SetInsights(InsightsT&& value) {
105 m_insightsHasBeenSet = true;
106 m_insights = std::forward<InsightsT>(value);
107 }
108 template <typename InsightsT = Aws::String>
109 Problem& WithInsights(InsightsT&& value) {
110 SetInsights(std::forward<InsightsT>(value));
111 return *this;
112 }
114
116
119 inline Status GetStatus() const { return m_status; }
120 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
121 inline void SetStatus(Status value) {
122 m_statusHasBeenSet = true;
123 m_status = value;
124 }
125 inline Problem& WithStatus(Status value) {
126 SetStatus(value);
127 return *this;
128 }
130
132
135 inline const Aws::String& GetAffectedResource() const { return m_affectedResource; }
136 inline bool AffectedResourceHasBeenSet() const { return m_affectedResourceHasBeenSet; }
137 template <typename AffectedResourceT = Aws::String>
138 void SetAffectedResource(AffectedResourceT&& value) {
139 m_affectedResourceHasBeenSet = true;
140 m_affectedResource = std::forward<AffectedResourceT>(value);
141 }
142 template <typename AffectedResourceT = Aws::String>
143 Problem& WithAffectedResource(AffectedResourceT&& value) {
144 SetAffectedResource(std::forward<AffectedResourceT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
154 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
155 template <typename StartTimeT = Aws::Utils::DateTime>
156 void SetStartTime(StartTimeT&& value) {
157 m_startTimeHasBeenSet = true;
158 m_startTime = std::forward<StartTimeT>(value);
159 }
160 template <typename StartTimeT = Aws::Utils::DateTime>
161 Problem& WithStartTime(StartTimeT&& value) {
162 SetStartTime(std::forward<StartTimeT>(value));
163 return *this;
164 }
166
168
171 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
172 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
173 template <typename EndTimeT = Aws::Utils::DateTime>
174 void SetEndTime(EndTimeT&& value) {
175 m_endTimeHasBeenSet = true;
176 m_endTime = std::forward<EndTimeT>(value);
177 }
178 template <typename EndTimeT = Aws::Utils::DateTime>
179 Problem& WithEndTime(EndTimeT&& value) {
180 SetEndTime(std::forward<EndTimeT>(value));
181 return *this;
182 }
184
186
189 inline SeverityLevel GetSeverityLevel() const { return m_severityLevel; }
190 inline bool SeverityLevelHasBeenSet() const { return m_severityLevelHasBeenSet; }
191 inline void SetSeverityLevel(SeverityLevel value) {
192 m_severityLevelHasBeenSet = true;
193 m_severityLevel = value;
194 }
196 SetSeverityLevel(value);
197 return *this;
198 }
200
202
206 inline const Aws::String& GetAccountId() const { return m_accountId; }
207 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
208 template <typename AccountIdT = Aws::String>
209 void SetAccountId(AccountIdT&& value) {
210 m_accountIdHasBeenSet = true;
211 m_accountId = std::forward<AccountIdT>(value);
212 }
213 template <typename AccountIdT = Aws::String>
214 Problem& WithAccountId(AccountIdT&& value) {
215 SetAccountId(std::forward<AccountIdT>(value));
216 return *this;
217 }
219
221
224 inline const Aws::String& GetResourceGroupName() const { return m_resourceGroupName; }
225 inline bool ResourceGroupNameHasBeenSet() const { return m_resourceGroupNameHasBeenSet; }
226 template <typename ResourceGroupNameT = Aws::String>
227 void SetResourceGroupName(ResourceGroupNameT&& value) {
228 m_resourceGroupNameHasBeenSet = true;
229 m_resourceGroupName = std::forward<ResourceGroupNameT>(value);
230 }
231 template <typename ResourceGroupNameT = Aws::String>
232 Problem& WithResourceGroupName(ResourceGroupNameT&& value) {
233 SetResourceGroupName(std::forward<ResourceGroupNameT>(value));
234 return *this;
235 }
237
239
242 inline const Aws::Map<FeedbackKey, FeedbackValue>& GetFeedback() const { return m_feedback; }
243 inline bool FeedbackHasBeenSet() const { return m_feedbackHasBeenSet; }
244 template <typename FeedbackT = Aws::Map<FeedbackKey, FeedbackValue>>
245 void SetFeedback(FeedbackT&& value) {
246 m_feedbackHasBeenSet = true;
247 m_feedback = std::forward<FeedbackT>(value);
248 }
249 template <typename FeedbackT = Aws::Map<FeedbackKey, FeedbackValue>>
250 Problem& WithFeedback(FeedbackT&& value) {
251 SetFeedback(std::forward<FeedbackT>(value));
252 return *this;
253 }
255 m_feedbackHasBeenSet = true;
256 m_feedback.emplace(key, value);
257 return *this;
258 }
260
262
266 inline long long GetRecurringCount() const { return m_recurringCount; }
267 inline bool RecurringCountHasBeenSet() const { return m_recurringCountHasBeenSet; }
268 inline void SetRecurringCount(long long value) {
269 m_recurringCountHasBeenSet = true;
270 m_recurringCount = value;
271 }
272 inline Problem& WithRecurringCount(long long value) {
273 SetRecurringCount(value);
274 return *this;
275 }
277
279
282 inline const Aws::Utils::DateTime& GetLastRecurrenceTime() const { return m_lastRecurrenceTime; }
283 inline bool LastRecurrenceTimeHasBeenSet() const { return m_lastRecurrenceTimeHasBeenSet; }
284 template <typename LastRecurrenceTimeT = Aws::Utils::DateTime>
285 void SetLastRecurrenceTime(LastRecurrenceTimeT&& value) {
286 m_lastRecurrenceTimeHasBeenSet = true;
287 m_lastRecurrenceTime = std::forward<LastRecurrenceTimeT>(value);
288 }
289 template <typename LastRecurrenceTimeT = Aws::Utils::DateTime>
290 Problem& WithLastRecurrenceTime(LastRecurrenceTimeT&& value) {
291 SetLastRecurrenceTime(std::forward<LastRecurrenceTimeT>(value));
292 return *this;
293 }
295
297
301 inline Visibility GetVisibility() const { return m_visibility; }
302 inline bool VisibilityHasBeenSet() const { return m_visibilityHasBeenSet; }
303 inline void SetVisibility(Visibility value) {
304 m_visibilityHasBeenSet = true;
305 m_visibility = value;
306 }
308 SetVisibility(value);
309 return *this;
310 }
312
314
320 inline ResolutionMethod GetResolutionMethod() const { return m_resolutionMethod; }
321 inline bool ResolutionMethodHasBeenSet() const { return m_resolutionMethodHasBeenSet; }
323 m_resolutionMethodHasBeenSet = true;
324 m_resolutionMethod = value;
325 }
327 SetResolutionMethod(value);
328 return *this;
329 }
331 private:
332 Aws::String m_id;
333
334 Aws::String m_title;
335
336 Aws::String m_shortName;
337
338 Aws::String m_insights;
339
340 Status m_status{Status::NOT_SET};
341
342 Aws::String m_affectedResource;
343
344 Aws::Utils::DateTime m_startTime{};
345
346 Aws::Utils::DateTime m_endTime{};
347
348 SeverityLevel m_severityLevel{SeverityLevel::NOT_SET};
349
350 Aws::String m_accountId;
351
352 Aws::String m_resourceGroupName;
353
355
356 long long m_recurringCount{0};
357
358 Aws::Utils::DateTime m_lastRecurrenceTime{};
359
360 Visibility m_visibility{Visibility::NOT_SET};
361
363 bool m_idHasBeenSet = false;
364 bool m_titleHasBeenSet = false;
365 bool m_shortNameHasBeenSet = false;
366 bool m_insightsHasBeenSet = false;
367 bool m_statusHasBeenSet = false;
368 bool m_affectedResourceHasBeenSet = false;
369 bool m_startTimeHasBeenSet = false;
370 bool m_endTimeHasBeenSet = false;
371 bool m_severityLevelHasBeenSet = false;
372 bool m_accountIdHasBeenSet = false;
373 bool m_resourceGroupNameHasBeenSet = false;
374 bool m_feedbackHasBeenSet = false;
375 bool m_recurringCountHasBeenSet = false;
376 bool m_lastRecurrenceTimeHasBeenSet = false;
377 bool m_visibilityHasBeenSet = false;
378 bool m_resolutionMethodHasBeenSet = false;
379};
380
381} // namespace Model
382} // namespace ApplicationInsights
383} // namespace Aws
Problem & WithEndTime(EndTimeT &&value)
Definition Problem.h:179
const Aws::String & GetId() const
Definition Problem.h:47
void SetEndTime(EndTimeT &&value)
Definition Problem.h:174
Problem & WithAffectedResource(AffectedResourceT &&value)
Definition Problem.h:143
Problem & WithAccountId(AccountIdT &&value)
Definition Problem.h:214
void SetAffectedResource(AffectedResourceT &&value)
Definition Problem.h:138
void SetVisibility(Visibility value)
Definition Problem.h:303
AWS_APPLICATIONINSIGHTS_API Problem()=default
Problem & WithVisibility(Visibility value)
Definition Problem.h:307
const Aws::String & GetShortName() const
Definition Problem.h:83
const Aws::String & GetAffectedResource() const
Definition Problem.h:135
Problem & WithSeverityLevel(SeverityLevel value)
Definition Problem.h:195
const Aws::Map< FeedbackKey, FeedbackValue > & GetFeedback() const
Definition Problem.h:242
void SetInsights(InsightsT &&value)
Definition Problem.h:104
const Aws::Utils::DateTime & GetLastRecurrenceTime() const
Definition Problem.h:282
AWS_APPLICATIONINSIGHTS_API Problem(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetEndTime() const
Definition Problem.h:171
void SetResolutionMethod(ResolutionMethod value)
Definition Problem.h:322
Problem & WithFeedback(FeedbackT &&value)
Definition Problem.h:250
Problem & WithResolutionMethod(ResolutionMethod value)
Definition Problem.h:326
void SetLastRecurrenceTime(LastRecurrenceTimeT &&value)
Definition Problem.h:285
Problem & WithShortName(ShortNameT &&value)
Definition Problem.h:91
Problem & WithTitle(TitleT &&value)
Definition Problem.h:73
void SetResourceGroupName(ResourceGroupNameT &&value)
Definition Problem.h:227
void SetShortName(ShortNameT &&value)
Definition Problem.h:86
void SetAccountId(AccountIdT &&value)
Definition Problem.h:209
AWS_APPLICATIONINSIGHTS_API Problem & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSeverityLevel(SeverityLevel value)
Definition Problem.h:191
void SetRecurringCount(long long value)
Definition Problem.h:268
Problem & WithRecurringCount(long long value)
Definition Problem.h:272
Problem & WithStatus(Status value)
Definition Problem.h:125
ResolutionMethod GetResolutionMethod() const
Definition Problem.h:320
void SetStartTime(StartTimeT &&value)
Definition Problem.h:156
Problem & WithInsights(InsightsT &&value)
Definition Problem.h:109
SeverityLevel GetSeverityLevel() const
Definition Problem.h:189
void SetFeedback(FeedbackT &&value)
Definition Problem.h:245
Problem & WithResourceGroupName(ResourceGroupNameT &&value)
Definition Problem.h:232
Problem & AddFeedback(FeedbackKey key, FeedbackValue value)
Definition Problem.h:254
const Aws::String & GetTitle() const
Definition Problem.h:65
const Aws::Utils::DateTime & GetStartTime() const
Definition Problem.h:153
Problem & WithStartTime(StartTimeT &&value)
Definition Problem.h:161
AWS_APPLICATIONINSIGHTS_API Aws::Utils::Json::JsonValue Jsonize() const
Problem & WithLastRecurrenceTime(LastRecurrenceTimeT &&value)
Definition Problem.h:290
const Aws::String & GetInsights() const
Definition Problem.h:101
const Aws::String & GetResourceGroupName() const
Definition Problem.h:224
Problem & WithId(IdT &&value)
Definition Problem.h:55
const Aws::String & GetAccountId() const
Definition Problem.h:206
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue