AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
OpsItemSummary.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/ssm/model/OpsItemStatus.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/ssm/model/OpsItemDataValue.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SSM
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_SSM_API OpsItemSummary() = default;
42
43
45
49 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
50 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
51 template<typename CreatedByT = Aws::String>
52 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
53 template<typename CreatedByT = Aws::String>
54 OpsItemSummary& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
56
58
61 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
62 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
63 template<typename CreatedTimeT = Aws::Utils::DateTime>
64 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::forward<CreatedTimeT>(value); }
65 template<typename CreatedTimeT = Aws::Utils::DateTime>
66 OpsItemSummary& WithCreatedTime(CreatedTimeT&& value) { SetCreatedTime(std::forward<CreatedTimeT>(value)); return *this;}
68
70
74 inline const Aws::String& GetLastModifiedBy() const { return m_lastModifiedBy; }
75 inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }
76 template<typename LastModifiedByT = Aws::String>
77 void SetLastModifiedBy(LastModifiedByT&& value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy = std::forward<LastModifiedByT>(value); }
78 template<typename LastModifiedByT = Aws::String>
79 OpsItemSummary& WithLastModifiedBy(LastModifiedByT&& value) { SetLastModifiedBy(std::forward<LastModifiedByT>(value)); return *this;}
81
83
86 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
87 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
88 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
89 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
90 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
91 OpsItemSummary& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
93
95
99 inline int GetPriority() const { return m_priority; }
100 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
101 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
102 inline OpsItemSummary& WithPriority(int value) { SetPriority(value); return *this;}
104
106
109 inline const Aws::String& GetSource() const { return m_source; }
110 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
111 template<typename SourceT = Aws::String>
112 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
113 template<typename SourceT = Aws::String>
114 OpsItemSummary& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
116
118
121 inline OpsItemStatus GetStatus() const { return m_status; }
122 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
123 inline void SetStatus(OpsItemStatus value) { m_statusHasBeenSet = true; m_status = value; }
124 inline OpsItemSummary& WithStatus(OpsItemStatus value) { SetStatus(value); return *this;}
126
128
131 inline const Aws::String& GetOpsItemId() const { return m_opsItemId; }
132 inline bool OpsItemIdHasBeenSet() const { return m_opsItemIdHasBeenSet; }
133 template<typename OpsItemIdT = Aws::String>
134 void SetOpsItemId(OpsItemIdT&& value) { m_opsItemIdHasBeenSet = true; m_opsItemId = std::forward<OpsItemIdT>(value); }
135 template<typename OpsItemIdT = Aws::String>
136 OpsItemSummary& WithOpsItemId(OpsItemIdT&& value) { SetOpsItemId(std::forward<OpsItemIdT>(value)); return *this;}
138
140
144 inline const Aws::String& GetTitle() const { return m_title; }
145 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
146 template<typename TitleT = Aws::String>
147 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
148 template<typename TitleT = Aws::String>
149 OpsItemSummary& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
151
153
157 inline const Aws::Map<Aws::String, OpsItemDataValue>& GetOperationalData() const { return m_operationalData; }
158 inline bool OperationalDataHasBeenSet() const { return m_operationalDataHasBeenSet; }
159 template<typename OperationalDataT = Aws::Map<Aws::String, OpsItemDataValue>>
160 void SetOperationalData(OperationalDataT&& value) { m_operationalDataHasBeenSet = true; m_operationalData = std::forward<OperationalDataT>(value); }
161 template<typename OperationalDataT = Aws::Map<Aws::String, OpsItemDataValue>>
162 OpsItemSummary& WithOperationalData(OperationalDataT&& value) { SetOperationalData(std::forward<OperationalDataT>(value)); return *this;}
163 template<typename OperationalDataKeyT = Aws::String, typename OperationalDataValueT = OpsItemDataValue>
164 OpsItemSummary& AddOperationalData(OperationalDataKeyT&& key, OperationalDataValueT&& value) {
165 m_operationalDataHasBeenSet = true; m_operationalData.emplace(std::forward<OperationalDataKeyT>(key), std::forward<OperationalDataValueT>(value)); return *this;
166 }
168
170
173 inline const Aws::String& GetCategory() const { return m_category; }
174 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
175 template<typename CategoryT = Aws::String>
176 void SetCategory(CategoryT&& value) { m_categoryHasBeenSet = true; m_category = std::forward<CategoryT>(value); }
177 template<typename CategoryT = Aws::String>
178 OpsItemSummary& WithCategory(CategoryT&& value) { SetCategory(std::forward<CategoryT>(value)); return *this;}
180
182
185 inline const Aws::String& GetSeverity() const { return m_severity; }
186 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
187 template<typename SeverityT = Aws::String>
188 void SetSeverity(SeverityT&& value) { m_severityHasBeenSet = true; m_severity = std::forward<SeverityT>(value); }
189 template<typename SeverityT = Aws::String>
190 OpsItemSummary& WithSeverity(SeverityT&& value) { SetSeverity(std::forward<SeverityT>(value)); return *this;}
192
194
203 inline const Aws::String& GetOpsItemType() const { return m_opsItemType; }
204 inline bool OpsItemTypeHasBeenSet() const { return m_opsItemTypeHasBeenSet; }
205 template<typename OpsItemTypeT = Aws::String>
206 void SetOpsItemType(OpsItemTypeT&& value) { m_opsItemTypeHasBeenSet = true; m_opsItemType = std::forward<OpsItemTypeT>(value); }
207 template<typename OpsItemTypeT = Aws::String>
208 OpsItemSummary& WithOpsItemType(OpsItemTypeT&& value) { SetOpsItemType(std::forward<OpsItemTypeT>(value)); return *this;}
210
212
216 inline const Aws::Utils::DateTime& GetActualStartTime() const { return m_actualStartTime; }
217 inline bool ActualStartTimeHasBeenSet() const { return m_actualStartTimeHasBeenSet; }
218 template<typename ActualStartTimeT = Aws::Utils::DateTime>
219 void SetActualStartTime(ActualStartTimeT&& value) { m_actualStartTimeHasBeenSet = true; m_actualStartTime = std::forward<ActualStartTimeT>(value); }
220 template<typename ActualStartTimeT = Aws::Utils::DateTime>
221 OpsItemSummary& WithActualStartTime(ActualStartTimeT&& value) { SetActualStartTime(std::forward<ActualStartTimeT>(value)); return *this;}
223
225
229 inline const Aws::Utils::DateTime& GetActualEndTime() const { return m_actualEndTime; }
230 inline bool ActualEndTimeHasBeenSet() const { return m_actualEndTimeHasBeenSet; }
231 template<typename ActualEndTimeT = Aws::Utils::DateTime>
232 void SetActualEndTime(ActualEndTimeT&& value) { m_actualEndTimeHasBeenSet = true; m_actualEndTime = std::forward<ActualEndTimeT>(value); }
233 template<typename ActualEndTimeT = Aws::Utils::DateTime>
234 OpsItemSummary& WithActualEndTime(ActualEndTimeT&& value) { SetActualEndTime(std::forward<ActualEndTimeT>(value)); return *this;}
236
238
243 inline const Aws::Utils::DateTime& GetPlannedStartTime() const { return m_plannedStartTime; }
244 inline bool PlannedStartTimeHasBeenSet() const { return m_plannedStartTimeHasBeenSet; }
245 template<typename PlannedStartTimeT = Aws::Utils::DateTime>
246 void SetPlannedStartTime(PlannedStartTimeT&& value) { m_plannedStartTimeHasBeenSet = true; m_plannedStartTime = std::forward<PlannedStartTimeT>(value); }
247 template<typename PlannedStartTimeT = Aws::Utils::DateTime>
248 OpsItemSummary& WithPlannedStartTime(PlannedStartTimeT&& value) { SetPlannedStartTime(std::forward<PlannedStartTimeT>(value)); return *this;}
250
252
257 inline const Aws::Utils::DateTime& GetPlannedEndTime() const { return m_plannedEndTime; }
258 inline bool PlannedEndTimeHasBeenSet() const { return m_plannedEndTimeHasBeenSet; }
259 template<typename PlannedEndTimeT = Aws::Utils::DateTime>
260 void SetPlannedEndTime(PlannedEndTimeT&& value) { m_plannedEndTimeHasBeenSet = true; m_plannedEndTime = std::forward<PlannedEndTimeT>(value); }
261 template<typename PlannedEndTimeT = Aws::Utils::DateTime>
262 OpsItemSummary& WithPlannedEndTime(PlannedEndTimeT&& value) { SetPlannedEndTime(std::forward<PlannedEndTimeT>(value)); return *this;}
264 private:
265
266 Aws::String m_createdBy;
267 bool m_createdByHasBeenSet = false;
268
269 Aws::Utils::DateTime m_createdTime{};
270 bool m_createdTimeHasBeenSet = false;
271
272 Aws::String m_lastModifiedBy;
273 bool m_lastModifiedByHasBeenSet = false;
274
275 Aws::Utils::DateTime m_lastModifiedTime{};
276 bool m_lastModifiedTimeHasBeenSet = false;
277
278 int m_priority{0};
279 bool m_priorityHasBeenSet = false;
280
281 Aws::String m_source;
282 bool m_sourceHasBeenSet = false;
283
285 bool m_statusHasBeenSet = false;
286
287 Aws::String m_opsItemId;
288 bool m_opsItemIdHasBeenSet = false;
289
290 Aws::String m_title;
291 bool m_titleHasBeenSet = false;
292
294 bool m_operationalDataHasBeenSet = false;
295
296 Aws::String m_category;
297 bool m_categoryHasBeenSet = false;
298
299 Aws::String m_severity;
300 bool m_severityHasBeenSet = false;
301
302 Aws::String m_opsItemType;
303 bool m_opsItemTypeHasBeenSet = false;
304
305 Aws::Utils::DateTime m_actualStartTime{};
306 bool m_actualStartTimeHasBeenSet = false;
307
308 Aws::Utils::DateTime m_actualEndTime{};
309 bool m_actualEndTimeHasBeenSet = false;
310
311 Aws::Utils::DateTime m_plannedStartTime{};
312 bool m_plannedStartTimeHasBeenSet = false;
313
314 Aws::Utils::DateTime m_plannedEndTime{};
315 bool m_plannedEndTimeHasBeenSet = false;
316 };
317
318} // namespace Model
319} // namespace SSM
320} // namespace Aws
void SetLastModifiedTime(LastModifiedTimeT &&value)
const Aws::Utils::DateTime & GetActualEndTime() const
const Aws::Map< Aws::String, OpsItemDataValue > & GetOperationalData() const
void SetCreatedBy(CreatedByT &&value)
OpsItemSummary & WithCategory(CategoryT &&value)
void SetSource(SourceT &&value)
void SetPlannedStartTime(PlannedStartTimeT &&value)
void SetActualEndTime(ActualEndTimeT &&value)
const Aws::String & GetSource() const
OpsItemSummary & WithSeverity(SeverityT &&value)
OpsItemSummary & WithSource(SourceT &&value)
const Aws::Utils::DateTime & GetCreatedTime() const
OpsItemSummary & WithCreatedBy(CreatedByT &&value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
OpsItemSummary & WithOpsItemId(OpsItemIdT &&value)
OpsItemSummary & WithTitle(TitleT &&value)
const Aws::String & GetCreatedBy() const
const Aws::String & GetLastModifiedBy() const
AWS_SSM_API OpsItemSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetActualStartTime() const
void SetActualStartTime(ActualStartTimeT &&value)
void SetSeverity(SeverityT &&value)
void SetLastModifiedBy(LastModifiedByT &&value)
AWS_SSM_API OpsItemSummary()=default
OpsItemSummary & WithPriority(int value)
void SetStatus(OpsItemStatus value)
OpsItemSummary & WithStatus(OpsItemStatus value)
OpsItemSummary & WithActualEndTime(ActualEndTimeT &&value)
const Aws::String & GetCategory() const
OpsItemSummary & WithLastModifiedBy(LastModifiedByT &&value)
OpsItemSummary & WithActualStartTime(ActualStartTimeT &&value)
OpsItemSummary & AddOperationalData(OperationalDataKeyT &&key, OperationalDataValueT &&value)
AWS_SSM_API OpsItemSummary(Aws::Utils::Json::JsonView jsonValue)
OpsItemSummary & WithLastModifiedTime(LastModifiedTimeT &&value)
OpsItemSummary & WithOpsItemType(OpsItemTypeT &&value)
void SetOpsItemType(OpsItemTypeT &&value)
const Aws::Utils::DateTime & GetPlannedStartTime() const
void SetPlannedEndTime(PlannedEndTimeT &&value)
const Aws::String & GetOpsItemId() const
const Aws::String & GetSeverity() const
OpsItemSummary & WithPlannedEndTime(PlannedEndTimeT &&value)
OpsItemStatus GetStatus() const
void SetCategory(CategoryT &&value)
const Aws::String & GetOpsItemType() const
void SetCreatedTime(CreatedTimeT &&value)
const Aws::String & GetTitle() const
const Aws::Utils::DateTime & GetLastModifiedTime() const
OpsItemSummary & WithPlannedStartTime(PlannedStartTimeT &&value)
void SetOpsItemId(OpsItemIdT &&value)
OpsItemSummary & WithOperationalData(OperationalDataT &&value)
OpsItemSummary & WithCreatedTime(CreatedTimeT &&value)
void SetOperationalData(OperationalDataT &&value)
const Aws::Utils::DateTime & GetPlannedEndTime() const
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