AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Problem.h
1
6#pragma once
7#include <aws/application-insights/ApplicationInsights_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/application-insights/model/Status.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/application-insights/model/SeverityLevel.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/application-insights/model/Visibility.h>
14#include <aws/application-insights/model/ResolutionMethod.h>
15#include <aws/application-insights/model/FeedbackKey.h>
16#include <aws/application-insights/model/FeedbackValue.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace ApplicationInsights
30{
31namespace Model
32{
33
40 class Problem
41 {
42 public:
43 AWS_APPLICATIONINSIGHTS_API Problem() = default;
44 AWS_APPLICATIONINSIGHTS_API Problem(Aws::Utils::Json::JsonView jsonValue);
45 AWS_APPLICATIONINSIGHTS_API Problem& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_APPLICATIONINSIGHTS_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const Aws::String& GetId() const { return m_id; }
54 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
55 template<typename IdT = Aws::String>
56 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
57 template<typename IdT = Aws::String>
58 Problem& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
69 template<typename TitleT = Aws::String>
70 Problem& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
72
74
77 inline const Aws::String& GetShortName() const { return m_shortName; }
78 inline bool ShortNameHasBeenSet() const { return m_shortNameHasBeenSet; }
79 template<typename ShortNameT = Aws::String>
80 void SetShortName(ShortNameT&& value) { m_shortNameHasBeenSet = true; m_shortName = std::forward<ShortNameT>(value); }
81 template<typename ShortNameT = Aws::String>
82 Problem& WithShortName(ShortNameT&& value) { SetShortName(std::forward<ShortNameT>(value)); return *this;}
84
86
89 inline const Aws::String& GetInsights() const { return m_insights; }
90 inline bool InsightsHasBeenSet() const { return m_insightsHasBeenSet; }
91 template<typename InsightsT = Aws::String>
92 void SetInsights(InsightsT&& value) { m_insightsHasBeenSet = true; m_insights = std::forward<InsightsT>(value); }
93 template<typename InsightsT = Aws::String>
94 Problem& WithInsights(InsightsT&& value) { SetInsights(std::forward<InsightsT>(value)); return *this;}
96
98
101 inline Status GetStatus() const { return m_status; }
102 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
103 inline void SetStatus(Status value) { m_statusHasBeenSet = true; m_status = value; }
104 inline Problem& WithStatus(Status value) { SetStatus(value); return *this;}
106
108
111 inline const Aws::String& GetAffectedResource() const { return m_affectedResource; }
112 inline bool AffectedResourceHasBeenSet() const { return m_affectedResourceHasBeenSet; }
113 template<typename AffectedResourceT = Aws::String>
114 void SetAffectedResource(AffectedResourceT&& value) { m_affectedResourceHasBeenSet = true; m_affectedResource = std::forward<AffectedResourceT>(value); }
115 template<typename AffectedResourceT = Aws::String>
116 Problem& WithAffectedResource(AffectedResourceT&& value) { SetAffectedResource(std::forward<AffectedResourceT>(value)); return *this;}
118
120
123 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
124 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
125 template<typename StartTimeT = Aws::Utils::DateTime>
126 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
127 template<typename StartTimeT = Aws::Utils::DateTime>
128 Problem& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
130
132
135 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
136 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
137 template<typename EndTimeT = Aws::Utils::DateTime>
138 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
139 template<typename EndTimeT = Aws::Utils::DateTime>
140 Problem& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
142
144
147 inline SeverityLevel GetSeverityLevel() const { return m_severityLevel; }
148 inline bool SeverityLevelHasBeenSet() const { return m_severityLevelHasBeenSet; }
149 inline void SetSeverityLevel(SeverityLevel value) { m_severityLevelHasBeenSet = true; m_severityLevel = value; }
150 inline Problem& WithSeverityLevel(SeverityLevel value) { SetSeverityLevel(value); return *this;}
152
154
158 inline const Aws::String& GetAccountId() const { return m_accountId; }
159 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
160 template<typename AccountIdT = Aws::String>
161 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
162 template<typename AccountIdT = Aws::String>
163 Problem& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
165
167
170 inline const Aws::String& GetResourceGroupName() const { return m_resourceGroupName; }
171 inline bool ResourceGroupNameHasBeenSet() const { return m_resourceGroupNameHasBeenSet; }
172 template<typename ResourceGroupNameT = Aws::String>
173 void SetResourceGroupName(ResourceGroupNameT&& value) { m_resourceGroupNameHasBeenSet = true; m_resourceGroupName = std::forward<ResourceGroupNameT>(value); }
174 template<typename ResourceGroupNameT = Aws::String>
175 Problem& WithResourceGroupName(ResourceGroupNameT&& value) { SetResourceGroupName(std::forward<ResourceGroupNameT>(value)); return *this;}
177
179
182 inline const Aws::Map<FeedbackKey, FeedbackValue>& GetFeedback() const { return m_feedback; }
183 inline bool FeedbackHasBeenSet() const { return m_feedbackHasBeenSet; }
184 template<typename FeedbackT = Aws::Map<FeedbackKey, FeedbackValue>>
185 void SetFeedback(FeedbackT&& value) { m_feedbackHasBeenSet = true; m_feedback = std::forward<FeedbackT>(value); }
186 template<typename FeedbackT = Aws::Map<FeedbackKey, FeedbackValue>>
187 Problem& WithFeedback(FeedbackT&& value) { SetFeedback(std::forward<FeedbackT>(value)); return *this;}
189 m_feedbackHasBeenSet = true; m_feedback.emplace(key, value); return *this;
190 }
192
194
198 inline long long GetRecurringCount() const { return m_recurringCount; }
199 inline bool RecurringCountHasBeenSet() const { return m_recurringCountHasBeenSet; }
200 inline void SetRecurringCount(long long value) { m_recurringCountHasBeenSet = true; m_recurringCount = value; }
201 inline Problem& WithRecurringCount(long long value) { SetRecurringCount(value); return *this;}
203
205
208 inline const Aws::Utils::DateTime& GetLastRecurrenceTime() const { return m_lastRecurrenceTime; }
209 inline bool LastRecurrenceTimeHasBeenSet() const { return m_lastRecurrenceTimeHasBeenSet; }
210 template<typename LastRecurrenceTimeT = Aws::Utils::DateTime>
211 void SetLastRecurrenceTime(LastRecurrenceTimeT&& value) { m_lastRecurrenceTimeHasBeenSet = true; m_lastRecurrenceTime = std::forward<LastRecurrenceTimeT>(value); }
212 template<typename LastRecurrenceTimeT = Aws::Utils::DateTime>
213 Problem& WithLastRecurrenceTime(LastRecurrenceTimeT&& value) { SetLastRecurrenceTime(std::forward<LastRecurrenceTimeT>(value)); return *this;}
215
217
221 inline Visibility GetVisibility() const { return m_visibility; }
222 inline bool VisibilityHasBeenSet() const { return m_visibilityHasBeenSet; }
223 inline void SetVisibility(Visibility value) { m_visibilityHasBeenSet = true; m_visibility = value; }
224 inline Problem& WithVisibility(Visibility value) { SetVisibility(value); return *this;}
226
228
234 inline ResolutionMethod GetResolutionMethod() const { return m_resolutionMethod; }
235 inline bool ResolutionMethodHasBeenSet() const { return m_resolutionMethodHasBeenSet; }
236 inline void SetResolutionMethod(ResolutionMethod value) { m_resolutionMethodHasBeenSet = true; m_resolutionMethod = value; }
237 inline Problem& WithResolutionMethod(ResolutionMethod value) { SetResolutionMethod(value); return *this;}
239 private:
240
241 Aws::String m_id;
242 bool m_idHasBeenSet = false;
243
244 Aws::String m_title;
245 bool m_titleHasBeenSet = false;
246
247 Aws::String m_shortName;
248 bool m_shortNameHasBeenSet = false;
249
250 Aws::String m_insights;
251 bool m_insightsHasBeenSet = false;
252
253 Status m_status{Status::NOT_SET};
254 bool m_statusHasBeenSet = false;
255
256 Aws::String m_affectedResource;
257 bool m_affectedResourceHasBeenSet = false;
258
259 Aws::Utils::DateTime m_startTime{};
260 bool m_startTimeHasBeenSet = false;
261
262 Aws::Utils::DateTime m_endTime{};
263 bool m_endTimeHasBeenSet = false;
264
265 SeverityLevel m_severityLevel{SeverityLevel::NOT_SET};
266 bool m_severityLevelHasBeenSet = false;
267
268 Aws::String m_accountId;
269 bool m_accountIdHasBeenSet = false;
270
271 Aws::String m_resourceGroupName;
272 bool m_resourceGroupNameHasBeenSet = false;
273
275 bool m_feedbackHasBeenSet = false;
276
277 long long m_recurringCount{0};
278 bool m_recurringCountHasBeenSet = false;
279
280 Aws::Utils::DateTime m_lastRecurrenceTime{};
281 bool m_lastRecurrenceTimeHasBeenSet = false;
282
283 Visibility m_visibility{Visibility::NOT_SET};
284 bool m_visibilityHasBeenSet = false;
285
287 bool m_resolutionMethodHasBeenSet = false;
288 };
289
290} // namespace Model
291} // namespace ApplicationInsights
292} // namespace Aws
Problem & WithEndTime(EndTimeT &&value)
Definition Problem.h:140
const Aws::String & GetId() const
Definition Problem.h:53
void SetEndTime(EndTimeT &&value)
Definition Problem.h:138
Problem & WithAffectedResource(AffectedResourceT &&value)
Definition Problem.h:116
Problem & WithAccountId(AccountIdT &&value)
Definition Problem.h:163
void SetAffectedResource(AffectedResourceT &&value)
Definition Problem.h:114
void SetVisibility(Visibility value)
Definition Problem.h:223
AWS_APPLICATIONINSIGHTS_API Problem()=default
Problem & WithVisibility(Visibility value)
Definition Problem.h:224
const Aws::String & GetShortName() const
Definition Problem.h:77
const Aws::String & GetAffectedResource() const
Definition Problem.h:111
Problem & WithSeverityLevel(SeverityLevel value)
Definition Problem.h:150
const Aws::Map< FeedbackKey, FeedbackValue > & GetFeedback() const
Definition Problem.h:182
void SetInsights(InsightsT &&value)
Definition Problem.h:92
const Aws::Utils::DateTime & GetLastRecurrenceTime() const
Definition Problem.h:208
AWS_APPLICATIONINSIGHTS_API Problem(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetEndTime() const
Definition Problem.h:135
void SetResolutionMethod(ResolutionMethod value)
Definition Problem.h:236
Problem & WithFeedback(FeedbackT &&value)
Definition Problem.h:187
Problem & WithResolutionMethod(ResolutionMethod value)
Definition Problem.h:237
void SetLastRecurrenceTime(LastRecurrenceTimeT &&value)
Definition Problem.h:211
Problem & WithShortName(ShortNameT &&value)
Definition Problem.h:82
Problem & WithTitle(TitleT &&value)
Definition Problem.h:70
void SetResourceGroupName(ResourceGroupNameT &&value)
Definition Problem.h:173
void SetShortName(ShortNameT &&value)
Definition Problem.h:80
void SetAccountId(AccountIdT &&value)
Definition Problem.h:161
AWS_APPLICATIONINSIGHTS_API Problem & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSeverityLevel(SeverityLevel value)
Definition Problem.h:149
void SetRecurringCount(long long value)
Definition Problem.h:200
Problem & WithRecurringCount(long long value)
Definition Problem.h:201
Problem & WithStatus(Status value)
Definition Problem.h:104
ResolutionMethod GetResolutionMethod() const
Definition Problem.h:234
void SetStartTime(StartTimeT &&value)
Definition Problem.h:126
Problem & WithInsights(InsightsT &&value)
Definition Problem.h:94
SeverityLevel GetSeverityLevel() const
Definition Problem.h:147
void SetFeedback(FeedbackT &&value)
Definition Problem.h:185
Problem & WithResourceGroupName(ResourceGroupNameT &&value)
Definition Problem.h:175
Problem & AddFeedback(FeedbackKey key, FeedbackValue value)
Definition Problem.h:188
const Aws::String & GetTitle() const
Definition Problem.h:65
const Aws::Utils::DateTime & GetStartTime() const
Definition Problem.h:123
Problem & WithStartTime(StartTimeT &&value)
Definition Problem.h:128
AWS_APPLICATIONINSIGHTS_API Aws::Utils::Json::JsonValue Jsonize() const
Problem & WithLastRecurrenceTime(LastRecurrenceTimeT &&value)
Definition Problem.h:213
const Aws::String & GetInsights() const
Definition Problem.h:89
const Aws::String & GetResourceGroupName() const
Definition Problem.h:170
Problem & WithId(IdT &&value)
Definition Problem.h:58
const Aws::String & GetAccountId() const
Definition Problem.h:158
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