AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
IncidentRecord.h
1
6#pragma once
7#include <aws/ssm-incidents/SSMIncidents_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ssm-incidents/model/ChatChannel.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/ssm-incidents/model/IncidentRecordSource.h>
13#include <aws/ssm-incidents/model/IncidentRecordStatus.h>
14#include <aws/ssm-incidents/model/AutomationExecution.h>
15#include <aws/ssm-incidents/model/NotificationTargetItem.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace SSMIncidents
29{
30namespace Model
31{
32
40 {
41 public:
42 AWS_SSMINCIDENTS_API IncidentRecord();
43 AWS_SSMINCIDENTS_API IncidentRecord(Aws::Utils::Json::JsonView jsonValue);
44 AWS_SSMINCIDENTS_API IncidentRecord& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_SSMINCIDENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetArn() const{ return m_arn; }
53 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
54 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
55 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
56 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
57 inline IncidentRecord& WithArn(const Aws::String& value) { SetArn(value); return *this;}
58 inline IncidentRecord& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
59 inline IncidentRecord& WithArn(const char* value) { SetArn(value); return *this;}
61
63
67 inline const Aws::Vector<AutomationExecution>& GetAutomationExecutions() const{ return m_automationExecutions; }
68 inline bool AutomationExecutionsHasBeenSet() const { return m_automationExecutionsHasBeenSet; }
69 inline void SetAutomationExecutions(const Aws::Vector<AutomationExecution>& value) { m_automationExecutionsHasBeenSet = true; m_automationExecutions = value; }
70 inline void SetAutomationExecutions(Aws::Vector<AutomationExecution>&& value) { m_automationExecutionsHasBeenSet = true; m_automationExecutions = std::move(value); }
73 inline IncidentRecord& AddAutomationExecutions(const AutomationExecution& value) { m_automationExecutionsHasBeenSet = true; m_automationExecutions.push_back(value); return *this; }
74 inline IncidentRecord& AddAutomationExecutions(AutomationExecution&& value) { m_automationExecutionsHasBeenSet = true; m_automationExecutions.push_back(std::move(value)); return *this; }
76
78
81 inline const ChatChannel& GetChatChannel() const{ return m_chatChannel; }
82 inline bool ChatChannelHasBeenSet() const { return m_chatChannelHasBeenSet; }
83 inline void SetChatChannel(const ChatChannel& value) { m_chatChannelHasBeenSet = true; m_chatChannel = value; }
84 inline void SetChatChannel(ChatChannel&& value) { m_chatChannelHasBeenSet = true; m_chatChannel = std::move(value); }
85 inline IncidentRecord& WithChatChannel(const ChatChannel& value) { SetChatChannel(value); return *this;}
86 inline IncidentRecord& WithChatChannel(ChatChannel&& value) { SetChatChannel(std::move(value)); return *this;}
88
90
93 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
94 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
95 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
96 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
97 inline IncidentRecord& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
98 inline IncidentRecord& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
100
102
106 inline const Aws::String& GetDedupeString() const{ return m_dedupeString; }
107 inline bool DedupeStringHasBeenSet() const { return m_dedupeStringHasBeenSet; }
108 inline void SetDedupeString(const Aws::String& value) { m_dedupeStringHasBeenSet = true; m_dedupeString = value; }
109 inline void SetDedupeString(Aws::String&& value) { m_dedupeStringHasBeenSet = true; m_dedupeString = std::move(value); }
110 inline void SetDedupeString(const char* value) { m_dedupeStringHasBeenSet = true; m_dedupeString.assign(value); }
111 inline IncidentRecord& WithDedupeString(const Aws::String& value) { SetDedupeString(value); return *this;}
112 inline IncidentRecord& WithDedupeString(Aws::String&& value) { SetDedupeString(std::move(value)); return *this;}
113 inline IncidentRecord& WithDedupeString(const char* value) { SetDedupeString(value); return *this;}
115
117
124 inline int GetImpact() const{ return m_impact; }
125 inline bool ImpactHasBeenSet() const { return m_impactHasBeenSet; }
126 inline void SetImpact(int value) { m_impactHasBeenSet = true; m_impact = value; }
127 inline IncidentRecord& WithImpact(int value) { SetImpact(value); return *this;}
129
131
134 inline const IncidentRecordSource& GetIncidentRecordSource() const{ return m_incidentRecordSource; }
135 inline bool IncidentRecordSourceHasBeenSet() const { return m_incidentRecordSourceHasBeenSet; }
136 inline void SetIncidentRecordSource(const IncidentRecordSource& value) { m_incidentRecordSourceHasBeenSet = true; m_incidentRecordSource = value; }
137 inline void SetIncidentRecordSource(IncidentRecordSource&& value) { m_incidentRecordSourceHasBeenSet = true; m_incidentRecordSource = std::move(value); }
139 inline IncidentRecord& WithIncidentRecordSource(IncidentRecordSource&& value) { SetIncidentRecordSource(std::move(value)); return *this;}
141
143
146 inline const Aws::String& GetLastModifiedBy() const{ return m_lastModifiedBy; }
147 inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }
148 inline void SetLastModifiedBy(const Aws::String& value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy = value; }
149 inline void SetLastModifiedBy(Aws::String&& value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy = std::move(value); }
150 inline void SetLastModifiedBy(const char* value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy.assign(value); }
151 inline IncidentRecord& WithLastModifiedBy(const Aws::String& value) { SetLastModifiedBy(value); return *this;}
152 inline IncidentRecord& WithLastModifiedBy(Aws::String&& value) { SetLastModifiedBy(std::move(value)); return *this;}
153 inline IncidentRecord& WithLastModifiedBy(const char* value) { SetLastModifiedBy(value); return *this;}
155
157
160 inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
161 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
162 inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
163 inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); }
165 inline IncidentRecord& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;}
167
169
173 inline const Aws::Vector<NotificationTargetItem>& GetNotificationTargets() const{ return m_notificationTargets; }
174 inline bool NotificationTargetsHasBeenSet() const { return m_notificationTargetsHasBeenSet; }
175 inline void SetNotificationTargets(const Aws::Vector<NotificationTargetItem>& value) { m_notificationTargetsHasBeenSet = true; m_notificationTargets = value; }
176 inline void SetNotificationTargets(Aws::Vector<NotificationTargetItem>&& value) { m_notificationTargetsHasBeenSet = true; m_notificationTargets = std::move(value); }
179 inline IncidentRecord& AddNotificationTargets(const NotificationTargetItem& value) { m_notificationTargetsHasBeenSet = true; m_notificationTargets.push_back(value); return *this; }
180 inline IncidentRecord& AddNotificationTargets(NotificationTargetItem&& value) { m_notificationTargetsHasBeenSet = true; m_notificationTargets.push_back(std::move(value)); return *this; }
182
184
188 inline const Aws::Utils::DateTime& GetResolvedTime() const{ return m_resolvedTime; }
189 inline bool ResolvedTimeHasBeenSet() const { return m_resolvedTimeHasBeenSet; }
190 inline void SetResolvedTime(const Aws::Utils::DateTime& value) { m_resolvedTimeHasBeenSet = true; m_resolvedTime = value; }
191 inline void SetResolvedTime(Aws::Utils::DateTime&& value) { m_resolvedTimeHasBeenSet = true; m_resolvedTime = std::move(value); }
192 inline IncidentRecord& WithResolvedTime(const Aws::Utils::DateTime& value) { SetResolvedTime(value); return *this;}
193 inline IncidentRecord& WithResolvedTime(Aws::Utils::DateTime&& value) { SetResolvedTime(std::move(value)); return *this;}
195
197
200 inline const IncidentRecordStatus& GetStatus() const{ return m_status; }
201 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
202 inline void SetStatus(const IncidentRecordStatus& value) { m_statusHasBeenSet = true; m_status = value; }
203 inline void SetStatus(IncidentRecordStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
204 inline IncidentRecord& WithStatus(const IncidentRecordStatus& value) { SetStatus(value); return *this;}
205 inline IncidentRecord& WithStatus(IncidentRecordStatus&& value) { SetStatus(std::move(value)); return *this;}
207
209
213 inline const Aws::String& GetSummary() const{ return m_summary; }
214 inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; }
215 inline void SetSummary(const Aws::String& value) { m_summaryHasBeenSet = true; m_summary = value; }
216 inline void SetSummary(Aws::String&& value) { m_summaryHasBeenSet = true; m_summary = std::move(value); }
217 inline void SetSummary(const char* value) { m_summaryHasBeenSet = true; m_summary.assign(value); }
218 inline IncidentRecord& WithSummary(const Aws::String& value) { SetSummary(value); return *this;}
219 inline IncidentRecord& WithSummary(Aws::String&& value) { SetSummary(std::move(value)); return *this;}
220 inline IncidentRecord& WithSummary(const char* value) { SetSummary(value); return *this;}
222
224
227 inline const Aws::String& GetTitle() const{ return m_title; }
228 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
229 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
230 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
231 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
232 inline IncidentRecord& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
233 inline IncidentRecord& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
234 inline IncidentRecord& WithTitle(const char* value) { SetTitle(value); return *this;}
236 private:
237
238 Aws::String m_arn;
239 bool m_arnHasBeenSet = false;
240
241 Aws::Vector<AutomationExecution> m_automationExecutions;
242 bool m_automationExecutionsHasBeenSet = false;
243
244 ChatChannel m_chatChannel;
245 bool m_chatChannelHasBeenSet = false;
246
247 Aws::Utils::DateTime m_creationTime;
248 bool m_creationTimeHasBeenSet = false;
249
250 Aws::String m_dedupeString;
251 bool m_dedupeStringHasBeenSet = false;
252
253 int m_impact;
254 bool m_impactHasBeenSet = false;
255
256 IncidentRecordSource m_incidentRecordSource;
257 bool m_incidentRecordSourceHasBeenSet = false;
258
259 Aws::String m_lastModifiedBy;
260 bool m_lastModifiedByHasBeenSet = false;
261
262 Aws::Utils::DateTime m_lastModifiedTime;
263 bool m_lastModifiedTimeHasBeenSet = false;
264
265 Aws::Vector<NotificationTargetItem> m_notificationTargets;
266 bool m_notificationTargetsHasBeenSet = false;
267
268 Aws::Utils::DateTime m_resolvedTime;
269 bool m_resolvedTimeHasBeenSet = false;
270
271 IncidentRecordStatus m_status;
272 bool m_statusHasBeenSet = false;
273
274 Aws::String m_summary;
275 bool m_summaryHasBeenSet = false;
276
277 Aws::String m_title;
278 bool m_titleHasBeenSet = false;
279 };
280
281} // namespace Model
282} // namespace SSMIncidents
283} // namespace Aws
IncidentRecord & WithCreationTime(const Aws::Utils::DateTime &value)
IncidentRecord & WithSummary(const Aws::String &value)
IncidentRecord & WithLastModifiedBy(const Aws::String &value)
void SetNotificationTargets(const Aws::Vector< NotificationTargetItem > &value)
IncidentRecord & WithIncidentRecordSource(const IncidentRecordSource &value)
IncidentRecord & WithLastModifiedBy(Aws::String &&value)
IncidentRecord & WithNotificationTargets(const Aws::Vector< NotificationTargetItem > &value)
void SetAutomationExecutions(const Aws::Vector< AutomationExecution > &value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
IncidentRecord & WithLastModifiedTime(const Aws::Utils::DateTime &value)
const IncidentRecordSource & GetIncidentRecordSource() const
IncidentRecord & WithLastModifiedTime(Aws::Utils::DateTime &&value)
const Aws::String & GetSummary() const
IncidentRecord & WithChatChannel(const ChatChannel &value)
IncidentRecord & WithLastModifiedBy(const char *value)
IncidentRecord & WithTitle(const Aws::String &value)
IncidentRecord & AddNotificationTargets(const NotificationTargetItem &value)
const IncidentRecordStatus & GetStatus() const
AWS_SSMINCIDENTS_API IncidentRecord & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetChatChannel(const ChatChannel &value)
void SetArn(const Aws::String &value)
void SetAutomationExecutions(Aws::Vector< AutomationExecution > &&value)
void SetLastModifiedBy(Aws::String &&value)
IncidentRecord & WithSummary(const char *value)
IncidentRecord & AddNotificationTargets(NotificationTargetItem &&value)
IncidentRecord & WithIncidentRecordSource(IncidentRecordSource &&value)
IncidentRecord & WithTitle(Aws::String &&value)
IncidentRecord & WithAutomationExecutions(const Aws::Vector< AutomationExecution > &value)
IncidentRecord & WithChatChannel(ChatChannel &&value)
IncidentRecord & WithArn(Aws::String &&value)
const Aws::Vector< AutomationExecution > & GetAutomationExecutions() const
void SetLastModifiedTime(const Aws::Utils::DateTime &value)
IncidentRecord & AddAutomationExecutions(const AutomationExecution &value)
AWS_SSMINCIDENTS_API Aws::Utils::Json::JsonValue Jsonize() const
IncidentRecord & WithDedupeString(const Aws::String &value)
IncidentRecord & WithAutomationExecutions(Aws::Vector< AutomationExecution > &&value)
void SetTitle(const Aws::String &value)
IncidentRecord & WithArn(const char *value)
void SetResolvedTime(const Aws::Utils::DateTime &value)
IncidentRecord & WithResolvedTime(const Aws::Utils::DateTime &value)
AWS_SSMINCIDENTS_API IncidentRecord(Aws::Utils::Json::JsonView jsonValue)
void SetLastModifiedBy(const Aws::String &value)
const Aws::String & GetDedupeString() const
IncidentRecord & AddAutomationExecutions(AutomationExecution &&value)
void SetDedupeString(Aws::String &&value)
void SetCreationTime(const Aws::Utils::DateTime &value)
const Aws::Vector< NotificationTargetItem > & GetNotificationTargets() const
void SetLastModifiedTime(Aws::Utils::DateTime &&value)
const Aws::String & GetTitle() const
void SetDedupeString(const Aws::String &value)
const Aws::Utils::DateTime & GetResolvedTime() const
IncidentRecord & WithTitle(const char *value)
const ChatChannel & GetChatChannel() const
void SetStatus(IncidentRecordStatus &&value)
void SetStatus(const IncidentRecordStatus &value)
const Aws::String & GetArn() const
void SetCreationTime(Aws::Utils::DateTime &&value)
const Aws::String & GetLastModifiedBy() const
IncidentRecord & WithNotificationTargets(Aws::Vector< NotificationTargetItem > &&value)
IncidentRecord & WithDedupeString(const char *value)
IncidentRecord & WithSummary(Aws::String &&value)
void SetIncidentRecordSource(IncidentRecordSource &&value)
IncidentRecord & WithCreationTime(Aws::Utils::DateTime &&value)
IncidentRecord & WithStatus(const IncidentRecordStatus &value)
IncidentRecord & WithStatus(IncidentRecordStatus &&value)
const Aws::Utils::DateTime & GetCreationTime() const
IncidentRecord & WithResolvedTime(Aws::Utils::DateTime &&value)
void SetSummary(const Aws::String &value)
IncidentRecord & WithImpact(int value)
void SetChatChannel(ChatChannel &&value)
void SetResolvedTime(Aws::Utils::DateTime &&value)
IncidentRecord & WithArn(const Aws::String &value)
IncidentRecord & WithDedupeString(Aws::String &&value)
void SetIncidentRecordSource(const IncidentRecordSource &value)
void SetNotificationTargets(Aws::Vector< NotificationTargetItem > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue