AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
56 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
57 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
58 inline Problem& WithId(const Aws::String& value) { SetId(value); return *this;}
59 inline Problem& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
60 inline Problem& WithId(const char* value) { SetId(value); return *this;}
62
64
67 inline const Aws::String& GetTitle() const{ return m_title; }
68 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
69 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
70 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
71 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
72 inline Problem& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
73 inline Problem& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
74 inline Problem& WithTitle(const char* value) { SetTitle(value); return *this;}
76
78
81 inline const Aws::String& GetShortName() const{ return m_shortName; }
82 inline bool ShortNameHasBeenSet() const { return m_shortNameHasBeenSet; }
83 inline void SetShortName(const Aws::String& value) { m_shortNameHasBeenSet = true; m_shortName = value; }
84 inline void SetShortName(Aws::String&& value) { m_shortNameHasBeenSet = true; m_shortName = std::move(value); }
85 inline void SetShortName(const char* value) { m_shortNameHasBeenSet = true; m_shortName.assign(value); }
86 inline Problem& WithShortName(const Aws::String& value) { SetShortName(value); return *this;}
87 inline Problem& WithShortName(Aws::String&& value) { SetShortName(std::move(value)); return *this;}
88 inline Problem& WithShortName(const char* value) { SetShortName(value); return *this;}
90
92
95 inline const Aws::String& GetInsights() const{ return m_insights; }
96 inline bool InsightsHasBeenSet() const { return m_insightsHasBeenSet; }
97 inline void SetInsights(const Aws::String& value) { m_insightsHasBeenSet = true; m_insights = value; }
98 inline void SetInsights(Aws::String&& value) { m_insightsHasBeenSet = true; m_insights = std::move(value); }
99 inline void SetInsights(const char* value) { m_insightsHasBeenSet = true; m_insights.assign(value); }
100 inline Problem& WithInsights(const Aws::String& value) { SetInsights(value); return *this;}
101 inline Problem& WithInsights(Aws::String&& value) { SetInsights(std::move(value)); return *this;}
102 inline Problem& WithInsights(const char* value) { SetInsights(value); return *this;}
104
106
109 inline const Status& GetStatus() const{ return m_status; }
110 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
111 inline void SetStatus(const Status& value) { m_statusHasBeenSet = true; m_status = value; }
112 inline void SetStatus(Status&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
113 inline Problem& WithStatus(const Status& value) { SetStatus(value); return *this;}
114 inline Problem& WithStatus(Status&& value) { SetStatus(std::move(value)); return *this;}
116
118
121 inline const Aws::String& GetAffectedResource() const{ return m_affectedResource; }
122 inline bool AffectedResourceHasBeenSet() const { return m_affectedResourceHasBeenSet; }
123 inline void SetAffectedResource(const Aws::String& value) { m_affectedResourceHasBeenSet = true; m_affectedResource = value; }
124 inline void SetAffectedResource(Aws::String&& value) { m_affectedResourceHasBeenSet = true; m_affectedResource = std::move(value); }
125 inline void SetAffectedResource(const char* value) { m_affectedResourceHasBeenSet = true; m_affectedResource.assign(value); }
126 inline Problem& WithAffectedResource(const Aws::String& value) { SetAffectedResource(value); return *this;}
127 inline Problem& WithAffectedResource(Aws::String&& value) { SetAffectedResource(std::move(value)); return *this;}
128 inline Problem& WithAffectedResource(const char* value) { SetAffectedResource(value); return *this;}
130
132
135 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
136 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
137 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
138 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
139 inline Problem& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
140 inline Problem& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
142
144
147 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
148 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
149 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
150 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
151 inline Problem& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
152 inline Problem& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
154
156
159 inline const SeverityLevel& GetSeverityLevel() const{ return m_severityLevel; }
160 inline bool SeverityLevelHasBeenSet() const { return m_severityLevelHasBeenSet; }
161 inline void SetSeverityLevel(const SeverityLevel& value) { m_severityLevelHasBeenSet = true; m_severityLevel = value; }
162 inline void SetSeverityLevel(SeverityLevel&& value) { m_severityLevelHasBeenSet = true; m_severityLevel = std::move(value); }
163 inline Problem& WithSeverityLevel(const SeverityLevel& value) { SetSeverityLevel(value); return *this;}
164 inline Problem& WithSeverityLevel(SeverityLevel&& value) { SetSeverityLevel(std::move(value)); return *this;}
166
168
172 inline const Aws::String& GetAccountId() const{ return m_accountId; }
173 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
174 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
175 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
176 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
177 inline Problem& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
178 inline Problem& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
179 inline Problem& WithAccountId(const char* value) { SetAccountId(value); return *this;}
181
183
186 inline const Aws::String& GetResourceGroupName() const{ return m_resourceGroupName; }
187 inline bool ResourceGroupNameHasBeenSet() const { return m_resourceGroupNameHasBeenSet; }
188 inline void SetResourceGroupName(const Aws::String& value) { m_resourceGroupNameHasBeenSet = true; m_resourceGroupName = value; }
189 inline void SetResourceGroupName(Aws::String&& value) { m_resourceGroupNameHasBeenSet = true; m_resourceGroupName = std::move(value); }
190 inline void SetResourceGroupName(const char* value) { m_resourceGroupNameHasBeenSet = true; m_resourceGroupName.assign(value); }
191 inline Problem& WithResourceGroupName(const Aws::String& value) { SetResourceGroupName(value); return *this;}
192 inline Problem& WithResourceGroupName(Aws::String&& value) { SetResourceGroupName(std::move(value)); return *this;}
193 inline Problem& WithResourceGroupName(const char* value) { SetResourceGroupName(value); return *this;}
195
197
200 inline const Aws::Map<FeedbackKey, FeedbackValue>& GetFeedback() const{ return m_feedback; }
201 inline bool FeedbackHasBeenSet() const { return m_feedbackHasBeenSet; }
202 inline void SetFeedback(const Aws::Map<FeedbackKey, FeedbackValue>& value) { m_feedbackHasBeenSet = true; m_feedback = value; }
203 inline void SetFeedback(Aws::Map<FeedbackKey, FeedbackValue>&& value) { m_feedbackHasBeenSet = true; m_feedback = std::move(value); }
204 inline Problem& WithFeedback(const Aws::Map<FeedbackKey, FeedbackValue>& value) { SetFeedback(value); return *this;}
205 inline Problem& WithFeedback(Aws::Map<FeedbackKey, FeedbackValue>&& value) { SetFeedback(std::move(value)); return *this;}
206 inline Problem& AddFeedback(const FeedbackKey& key, const FeedbackValue& value) { m_feedbackHasBeenSet = true; m_feedback.emplace(key, value); return *this; }
207 inline Problem& AddFeedback(FeedbackKey&& key, const FeedbackValue& value) { m_feedbackHasBeenSet = true; m_feedback.emplace(std::move(key), value); return *this; }
208 inline Problem& AddFeedback(const FeedbackKey& key, FeedbackValue&& value) { m_feedbackHasBeenSet = true; m_feedback.emplace(key, std::move(value)); return *this; }
209 inline Problem& AddFeedback(FeedbackKey&& key, FeedbackValue&& value) { m_feedbackHasBeenSet = true; m_feedback.emplace(std::move(key), std::move(value)); return *this; }
211
213
217 inline long long GetRecurringCount() const{ return m_recurringCount; }
218 inline bool RecurringCountHasBeenSet() const { return m_recurringCountHasBeenSet; }
219 inline void SetRecurringCount(long long value) { m_recurringCountHasBeenSet = true; m_recurringCount = value; }
220 inline Problem& WithRecurringCount(long long value) { SetRecurringCount(value); return *this;}
222
224
227 inline const Aws::Utils::DateTime& GetLastRecurrenceTime() const{ return m_lastRecurrenceTime; }
228 inline bool LastRecurrenceTimeHasBeenSet() const { return m_lastRecurrenceTimeHasBeenSet; }
229 inline void SetLastRecurrenceTime(const Aws::Utils::DateTime& value) { m_lastRecurrenceTimeHasBeenSet = true; m_lastRecurrenceTime = value; }
230 inline void SetLastRecurrenceTime(Aws::Utils::DateTime&& value) { m_lastRecurrenceTimeHasBeenSet = true; m_lastRecurrenceTime = std::move(value); }
231 inline Problem& WithLastRecurrenceTime(const Aws::Utils::DateTime& value) { SetLastRecurrenceTime(value); return *this;}
232 inline Problem& WithLastRecurrenceTime(Aws::Utils::DateTime&& value) { SetLastRecurrenceTime(std::move(value)); return *this;}
234
236
240 inline const Visibility& GetVisibility() const{ return m_visibility; }
241 inline bool VisibilityHasBeenSet() const { return m_visibilityHasBeenSet; }
242 inline void SetVisibility(const Visibility& value) { m_visibilityHasBeenSet = true; m_visibility = value; }
243 inline void SetVisibility(Visibility&& value) { m_visibilityHasBeenSet = true; m_visibility = std::move(value); }
244 inline Problem& WithVisibility(const Visibility& value) { SetVisibility(value); return *this;}
245 inline Problem& WithVisibility(Visibility&& value) { SetVisibility(std::move(value)); return *this;}
247
249
255 inline const ResolutionMethod& GetResolutionMethod() const{ return m_resolutionMethod; }
256 inline bool ResolutionMethodHasBeenSet() const { return m_resolutionMethodHasBeenSet; }
257 inline void SetResolutionMethod(const ResolutionMethod& value) { m_resolutionMethodHasBeenSet = true; m_resolutionMethod = value; }
258 inline void SetResolutionMethod(ResolutionMethod&& value) { m_resolutionMethodHasBeenSet = true; m_resolutionMethod = std::move(value); }
259 inline Problem& WithResolutionMethod(const ResolutionMethod& value) { SetResolutionMethod(value); return *this;}
260 inline Problem& WithResolutionMethod(ResolutionMethod&& value) { SetResolutionMethod(std::move(value)); return *this;}
262 private:
263
264 Aws::String m_id;
265 bool m_idHasBeenSet = false;
266
267 Aws::String m_title;
268 bool m_titleHasBeenSet = false;
269
270 Aws::String m_shortName;
271 bool m_shortNameHasBeenSet = false;
272
273 Aws::String m_insights;
274 bool m_insightsHasBeenSet = false;
275
276 Status m_status;
277 bool m_statusHasBeenSet = false;
278
279 Aws::String m_affectedResource;
280 bool m_affectedResourceHasBeenSet = false;
281
282 Aws::Utils::DateTime m_startTime;
283 bool m_startTimeHasBeenSet = false;
284
285 Aws::Utils::DateTime m_endTime;
286 bool m_endTimeHasBeenSet = false;
287
288 SeverityLevel m_severityLevel;
289 bool m_severityLevelHasBeenSet = false;
290
291 Aws::String m_accountId;
292 bool m_accountIdHasBeenSet = false;
293
294 Aws::String m_resourceGroupName;
295 bool m_resourceGroupNameHasBeenSet = false;
296
298 bool m_feedbackHasBeenSet = false;
299
300 long long m_recurringCount;
301 bool m_recurringCountHasBeenSet = false;
302
303 Aws::Utils::DateTime m_lastRecurrenceTime;
304 bool m_lastRecurrenceTimeHasBeenSet = false;
305
306 Visibility m_visibility;
307 bool m_visibilityHasBeenSet = false;
308
309 ResolutionMethod m_resolutionMethod;
310 bool m_resolutionMethodHasBeenSet = false;
311 };
312
313} // namespace Model
314} // namespace ApplicationInsights
315} // namespace Aws
void SetInsights(Aws::String &&value)
Definition Problem.h:98
void SetEndTime(Aws::Utils::DateTime &&value)
Definition Problem.h:150
const Visibility & GetVisibility() const
Definition Problem.h:240
void SetId(const char *value)
Definition Problem.h:57
Problem & AddFeedback(FeedbackKey &&key, const FeedbackValue &value)
Definition Problem.h:207
const Aws::String & GetId() const
Definition Problem.h:53
void SetSeverityLevel(SeverityLevel &&value)
Definition Problem.h:162
void SetResourceGroupName(const char *value)
Definition Problem.h:190
void SetResourceGroupName(const Aws::String &value)
Definition Problem.h:188
AWS_APPLICATIONINSIGHTS_API Problem()
Problem & WithResourceGroupName(const Aws::String &value)
Definition Problem.h:191
Problem & AddFeedback(FeedbackKey &&key, FeedbackValue &&value)
Definition Problem.h:209
Problem & WithId(const char *value)
Definition Problem.h:60
const SeverityLevel & GetSeverityLevel() const
Definition Problem.h:159
Problem & WithShortName(const char *value)
Definition Problem.h:88
Problem & WithShortName(const Aws::String &value)
Definition Problem.h:86
void SetVisibility(Visibility &&value)
Definition Problem.h:243
void SetAccountId(Aws::String &&value)
Definition Problem.h:175
Problem & WithInsights(Aws::String &&value)
Definition Problem.h:101
void SetInsights(const char *value)
Definition Problem.h:99
const Aws::String & GetShortName() const
Definition Problem.h:81
const Aws::String & GetAffectedResource() const
Definition Problem.h:121
Problem & WithFeedback(Aws::Map< FeedbackKey, FeedbackValue > &&value)
Definition Problem.h:205
void SetResourceGroupName(Aws::String &&value)
Definition Problem.h:189
Problem & WithResolutionMethod(const ResolutionMethod &value)
Definition Problem.h:259
const Aws::Map< FeedbackKey, FeedbackValue > & GetFeedback() const
Definition Problem.h:200
Problem & WithId(Aws::String &&value)
Definition Problem.h:59
Problem & WithShortName(Aws::String &&value)
Definition Problem.h:87
Problem & WithVisibility(const Visibility &value)
Definition Problem.h:244
void SetStatus(const Status &value)
Definition Problem.h:111
Problem & WithEndTime(Aws::Utils::DateTime &&value)
Definition Problem.h:152
Problem & WithVisibility(Visibility &&value)
Definition Problem.h:245
Problem & WithStatus(const Status &value)
Definition Problem.h:113
Problem & WithAffectedResource(const char *value)
Definition Problem.h:128
const Status & GetStatus() const
Definition Problem.h:109
Problem & WithLastRecurrenceTime(const Aws::Utils::DateTime &value)
Definition Problem.h:231
Problem & WithTitle(const char *value)
Definition Problem.h:74
Problem & WithStartTime(Aws::Utils::DateTime &&value)
Definition Problem.h:140
void SetTitle(const Aws::String &value)
Definition Problem.h:69
Problem & WithAccountId(Aws::String &&value)
Definition Problem.h:178
const Aws::Utils::DateTime & GetLastRecurrenceTime() const
Definition Problem.h:227
Problem & WithStatus(Status &&value)
Definition Problem.h:114
Problem & WithFeedback(const Aws::Map< FeedbackKey, FeedbackValue > &value)
Definition Problem.h:204
AWS_APPLICATIONINSIGHTS_API Problem(Aws::Utils::Json::JsonView jsonValue)
void SetAffectedResource(const Aws::String &value)
Definition Problem.h:123
Problem & WithTitle(const Aws::String &value)
Definition Problem.h:72
const Aws::Utils::DateTime & GetEndTime() const
Definition Problem.h:147
Problem & WithStartTime(const Aws::Utils::DateTime &value)
Definition Problem.h:139
void SetStartTime(Aws::Utils::DateTime &&value)
Definition Problem.h:138
Problem & WithResourceGroupName(Aws::String &&value)
Definition Problem.h:192
void SetStartTime(const Aws::Utils::DateTime &value)
Definition Problem.h:137
Problem & WithInsights(const char *value)
Definition Problem.h:102
void SetFeedback(Aws::Map< FeedbackKey, FeedbackValue > &&value)
Definition Problem.h:203
void SetVisibility(const Visibility &value)
Definition Problem.h:242
void SetTitle(Aws::String &&value)
Definition Problem.h:70
void SetResolutionMethod(const ResolutionMethod &value)
Definition Problem.h:257
Problem & WithInsights(const Aws::String &value)
Definition Problem.h:100
void SetResolutionMethod(ResolutionMethod &&value)
Definition Problem.h:258
const ResolutionMethod & GetResolutionMethod() const
Definition Problem.h:255
Problem & WithEndTime(const Aws::Utils::DateTime &value)
Definition Problem.h:151
Problem & WithSeverityLevel(const SeverityLevel &value)
Definition Problem.h:163
void SetId(Aws::String &&value)
Definition Problem.h:56
Problem & WithSeverityLevel(SeverityLevel &&value)
Definition Problem.h:164
void SetInsights(const Aws::String &value)
Definition Problem.h:97
AWS_APPLICATIONINSIGHTS_API Problem & operator=(Aws::Utils::Json::JsonView jsonValue)
Problem & WithResolutionMethod(ResolutionMethod &&value)
Definition Problem.h:260
void SetShortName(const char *value)
Definition Problem.h:85
void SetAffectedResource(Aws::String &&value)
Definition Problem.h:124
Problem & AddFeedback(const FeedbackKey &key, FeedbackValue &&value)
Definition Problem.h:208
Problem & WithAccountId(const char *value)
Definition Problem.h:179
void SetTitle(const char *value)
Definition Problem.h:71
void SetId(const Aws::String &value)
Definition Problem.h:55
void SetRecurringCount(long long value)
Definition Problem.h:219
void SetLastRecurrenceTime(const Aws::Utils::DateTime &value)
Definition Problem.h:229
Problem & WithRecurringCount(long long value)
Definition Problem.h:220
void SetShortName(Aws::String &&value)
Definition Problem.h:84
void SetSeverityLevel(const SeverityLevel &value)
Definition Problem.h:161
Problem & WithId(const Aws::String &value)
Definition Problem.h:58
Problem & WithAffectedResource(const Aws::String &value)
Definition Problem.h:126
void SetShortName(const Aws::String &value)
Definition Problem.h:83
Problem & AddFeedback(const FeedbackKey &key, const FeedbackValue &value)
Definition Problem.h:206
void SetAccountId(const char *value)
Definition Problem.h:176
void SetAffectedResource(const char *value)
Definition Problem.h:125
Problem & WithAffectedResource(Aws::String &&value)
Definition Problem.h:127
Problem & WithTitle(Aws::String &&value)
Definition Problem.h:73
Problem & WithLastRecurrenceTime(Aws::Utils::DateTime &&value)
Definition Problem.h:232
void SetAccountId(const Aws::String &value)
Definition Problem.h:174
const Aws::String & GetTitle() const
Definition Problem.h:67
const Aws::Utils::DateTime & GetStartTime() const
Definition Problem.h:135
Problem & WithResourceGroupName(const char *value)
Definition Problem.h:193
void SetFeedback(const Aws::Map< FeedbackKey, FeedbackValue > &value)
Definition Problem.h:202
AWS_APPLICATIONINSIGHTS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEndTime(const Aws::Utils::DateTime &value)
Definition Problem.h:149
const Aws::String & GetInsights() const
Definition Problem.h:95
const Aws::String & GetResourceGroupName() const
Definition Problem.h:186
Problem & WithAccountId(const Aws::String &value)
Definition Problem.h:177
const Aws::String & GetAccountId() const
Definition Problem.h:172
void SetLastRecurrenceTime(Aws::Utils::DateTime &&value)
Definition Problem.h:230
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