AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename ArnT = Aws::String>
55 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
56 template<typename ArnT = Aws::String>
57 IncidentRecord& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
59
61
65 inline const Aws::Vector<AutomationExecution>& GetAutomationExecutions() const { return m_automationExecutions; }
66 inline bool AutomationExecutionsHasBeenSet() const { return m_automationExecutionsHasBeenSet; }
67 template<typename AutomationExecutionsT = Aws::Vector<AutomationExecution>>
68 void SetAutomationExecutions(AutomationExecutionsT&& value) { m_automationExecutionsHasBeenSet = true; m_automationExecutions = std::forward<AutomationExecutionsT>(value); }
69 template<typename AutomationExecutionsT = Aws::Vector<AutomationExecution>>
70 IncidentRecord& WithAutomationExecutions(AutomationExecutionsT&& value) { SetAutomationExecutions(std::forward<AutomationExecutionsT>(value)); return *this;}
71 template<typename AutomationExecutionsT = AutomationExecution>
72 IncidentRecord& AddAutomationExecutions(AutomationExecutionsT&& value) { m_automationExecutionsHasBeenSet = true; m_automationExecutions.emplace_back(std::forward<AutomationExecutionsT>(value)); return *this; }
74
76
79 inline const ChatChannel& GetChatChannel() const { return m_chatChannel; }
80 inline bool ChatChannelHasBeenSet() const { return m_chatChannelHasBeenSet; }
81 template<typename ChatChannelT = ChatChannel>
82 void SetChatChannel(ChatChannelT&& value) { m_chatChannelHasBeenSet = true; m_chatChannel = std::forward<ChatChannelT>(value); }
83 template<typename ChatChannelT = ChatChannel>
84 IncidentRecord& WithChatChannel(ChatChannelT&& value) { SetChatChannel(std::forward<ChatChannelT>(value)); return *this;}
86
88
91 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
92 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
93 template<typename CreationTimeT = Aws::Utils::DateTime>
94 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
95 template<typename CreationTimeT = Aws::Utils::DateTime>
96 IncidentRecord& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
98
100
104 inline const Aws::String& GetDedupeString() const { return m_dedupeString; }
105 inline bool DedupeStringHasBeenSet() const { return m_dedupeStringHasBeenSet; }
106 template<typename DedupeStringT = Aws::String>
107 void SetDedupeString(DedupeStringT&& value) { m_dedupeStringHasBeenSet = true; m_dedupeString = std::forward<DedupeStringT>(value); }
108 template<typename DedupeStringT = Aws::String>
109 IncidentRecord& WithDedupeString(DedupeStringT&& value) { SetDedupeString(std::forward<DedupeStringT>(value)); return *this;}
111
113
120 inline int GetImpact() const { return m_impact; }
121 inline bool ImpactHasBeenSet() const { return m_impactHasBeenSet; }
122 inline void SetImpact(int value) { m_impactHasBeenSet = true; m_impact = value; }
123 inline IncidentRecord& WithImpact(int value) { SetImpact(value); return *this;}
125
127
130 inline const IncidentRecordSource& GetIncidentRecordSource() const { return m_incidentRecordSource; }
131 inline bool IncidentRecordSourceHasBeenSet() const { return m_incidentRecordSourceHasBeenSet; }
132 template<typename IncidentRecordSourceT = IncidentRecordSource>
133 void SetIncidentRecordSource(IncidentRecordSourceT&& value) { m_incidentRecordSourceHasBeenSet = true; m_incidentRecordSource = std::forward<IncidentRecordSourceT>(value); }
134 template<typename IncidentRecordSourceT = IncidentRecordSource>
135 IncidentRecord& WithIncidentRecordSource(IncidentRecordSourceT&& value) { SetIncidentRecordSource(std::forward<IncidentRecordSourceT>(value)); return *this;}
137
139
142 inline const Aws::String& GetLastModifiedBy() const { return m_lastModifiedBy; }
143 inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }
144 template<typename LastModifiedByT = Aws::String>
145 void SetLastModifiedBy(LastModifiedByT&& value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy = std::forward<LastModifiedByT>(value); }
146 template<typename LastModifiedByT = Aws::String>
147 IncidentRecord& WithLastModifiedBy(LastModifiedByT&& value) { SetLastModifiedBy(std::forward<LastModifiedByT>(value)); return *this;}
149
151
154 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
155 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
156 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
157 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
158 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
159 IncidentRecord& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
161
163
167 inline const Aws::Vector<NotificationTargetItem>& GetNotificationTargets() const { return m_notificationTargets; }
168 inline bool NotificationTargetsHasBeenSet() const { return m_notificationTargetsHasBeenSet; }
169 template<typename NotificationTargetsT = Aws::Vector<NotificationTargetItem>>
170 void SetNotificationTargets(NotificationTargetsT&& value) { m_notificationTargetsHasBeenSet = true; m_notificationTargets = std::forward<NotificationTargetsT>(value); }
171 template<typename NotificationTargetsT = Aws::Vector<NotificationTargetItem>>
172 IncidentRecord& WithNotificationTargets(NotificationTargetsT&& value) { SetNotificationTargets(std::forward<NotificationTargetsT>(value)); return *this;}
173 template<typename NotificationTargetsT = NotificationTargetItem>
174 IncidentRecord& AddNotificationTargets(NotificationTargetsT&& value) { m_notificationTargetsHasBeenSet = true; m_notificationTargets.emplace_back(std::forward<NotificationTargetsT>(value)); return *this; }
176
178
182 inline const Aws::Utils::DateTime& GetResolvedTime() const { return m_resolvedTime; }
183 inline bool ResolvedTimeHasBeenSet() const { return m_resolvedTimeHasBeenSet; }
184 template<typename ResolvedTimeT = Aws::Utils::DateTime>
185 void SetResolvedTime(ResolvedTimeT&& value) { m_resolvedTimeHasBeenSet = true; m_resolvedTime = std::forward<ResolvedTimeT>(value); }
186 template<typename ResolvedTimeT = Aws::Utils::DateTime>
187 IncidentRecord& WithResolvedTime(ResolvedTimeT&& value) { SetResolvedTime(std::forward<ResolvedTimeT>(value)); return *this;}
189
191
194 inline IncidentRecordStatus GetStatus() const { return m_status; }
195 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
196 inline void SetStatus(IncidentRecordStatus value) { m_statusHasBeenSet = true; m_status = value; }
197 inline IncidentRecord& WithStatus(IncidentRecordStatus value) { SetStatus(value); return *this;}
199
201
205 inline const Aws::String& GetSummary() const { return m_summary; }
206 inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; }
207 template<typename SummaryT = Aws::String>
208 void SetSummary(SummaryT&& value) { m_summaryHasBeenSet = true; m_summary = std::forward<SummaryT>(value); }
209 template<typename SummaryT = Aws::String>
210 IncidentRecord& WithSummary(SummaryT&& value) { SetSummary(std::forward<SummaryT>(value)); return *this;}
212
214
217 inline const Aws::String& GetTitle() const { return m_title; }
218 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
219 template<typename TitleT = Aws::String>
220 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
221 template<typename TitleT = Aws::String>
222 IncidentRecord& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
224 private:
225
226 Aws::String m_arn;
227 bool m_arnHasBeenSet = false;
228
229 Aws::Vector<AutomationExecution> m_automationExecutions;
230 bool m_automationExecutionsHasBeenSet = false;
231
232 ChatChannel m_chatChannel;
233 bool m_chatChannelHasBeenSet = false;
234
235 Aws::Utils::DateTime m_creationTime{};
236 bool m_creationTimeHasBeenSet = false;
237
238 Aws::String m_dedupeString;
239 bool m_dedupeStringHasBeenSet = false;
240
241 int m_impact{0};
242 bool m_impactHasBeenSet = false;
243
244 IncidentRecordSource m_incidentRecordSource;
245 bool m_incidentRecordSourceHasBeenSet = false;
246
247 Aws::String m_lastModifiedBy;
248 bool m_lastModifiedByHasBeenSet = false;
249
250 Aws::Utils::DateTime m_lastModifiedTime{};
251 bool m_lastModifiedTimeHasBeenSet = false;
252
253 Aws::Vector<NotificationTargetItem> m_notificationTargets;
254 bool m_notificationTargetsHasBeenSet = false;
255
256 Aws::Utils::DateTime m_resolvedTime{};
257 bool m_resolvedTimeHasBeenSet = false;
258
260 bool m_statusHasBeenSet = false;
261
262 Aws::String m_summary;
263 bool m_summaryHasBeenSet = false;
264
265 Aws::String m_title;
266 bool m_titleHasBeenSet = false;
267 };
268
269} // namespace Model
270} // namespace SSMIncidents
271} // namespace Aws
IncidentRecordStatus GetStatus() const
IncidentRecord & AddAutomationExecutions(AutomationExecutionsT &&value)
void SetStatus(IncidentRecordStatus value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
IncidentRecord & AddNotificationTargets(NotificationTargetsT &&value)
void SetDedupeString(DedupeStringT &&value)
const IncidentRecordSource & GetIncidentRecordSource() const
IncidentRecord & WithLastModifiedTime(LastModifiedTimeT &&value)
IncidentRecord & WithChatChannel(ChatChannelT &&value)
IncidentRecord & WithStatus(IncidentRecordStatus value)
IncidentRecord & WithTitle(TitleT &&value)
const Aws::String & GetSummary() const
IncidentRecord & WithNotificationTargets(NotificationTargetsT &&value)
AWS_SSMINCIDENTS_API IncidentRecord & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetResolvedTime(ResolvedTimeT &&value)
IncidentRecord & WithDedupeString(DedupeStringT &&value)
IncidentRecord & WithSummary(SummaryT &&value)
const Aws::Vector< AutomationExecution > & GetAutomationExecutions() const
void SetCreationTime(CreationTimeT &&value)
AWS_SSMINCIDENTS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAutomationExecutions(AutomationExecutionsT &&value)
AWS_SSMINCIDENTS_API IncidentRecord(Aws::Utils::Json::JsonView jsonValue)
void SetLastModifiedBy(LastModifiedByT &&value)
const Aws::String & GetDedupeString() const
void SetLastModifiedTime(LastModifiedTimeT &&value)
void SetIncidentRecordSource(IncidentRecordSourceT &&value)
const Aws::Vector< NotificationTargetItem > & GetNotificationTargets() const
const Aws::String & GetTitle() const
const Aws::Utils::DateTime & GetResolvedTime() const
const ChatChannel & GetChatChannel() const
const Aws::String & GetArn() const
IncidentRecord & WithResolvedTime(ResolvedTimeT &&value)
const Aws::String & GetLastModifiedBy() const
IncidentRecord & WithIncidentRecordSource(IncidentRecordSourceT &&value)
IncidentRecord & WithLastModifiedBy(LastModifiedByT &&value)
IncidentRecord & WithAutomationExecutions(AutomationExecutionsT &&value)
IncidentRecord & WithCreationTime(CreationTimeT &&value)
void SetNotificationTargets(NotificationTargetsT &&value)
AWS_SSMINCIDENTS_API IncidentRecord()=default
const Aws::Utils::DateTime & GetCreationTime() const
IncidentRecord & WithArn(ArnT &&value)
IncidentRecord & WithImpact(int value)
void SetChatChannel(ChatChannelT &&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