AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
OpsItemSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ssm/SSM_EXPORTS.h>
11#include <aws/ssm/model/OpsItemDataValue.h>
12#include <aws/ssm/model/OpsItemStatus.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SSM {
24namespace Model {
25
32 public:
33 AWS_SSM_API OpsItemSummary() = default;
37
39
43 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
44 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
45 template <typename CreatedByT = Aws::String>
46 void SetCreatedBy(CreatedByT&& value) {
47 m_createdByHasBeenSet = true;
48 m_createdBy = std::forward<CreatedByT>(value);
49 }
50 template <typename CreatedByT = Aws::String>
51 OpsItemSummary& WithCreatedBy(CreatedByT&& value) {
52 SetCreatedBy(std::forward<CreatedByT>(value));
53 return *this;
54 }
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) {
65 m_createdTimeHasBeenSet = true;
66 m_createdTime = std::forward<CreatedTimeT>(value);
67 }
68 template <typename CreatedTimeT = Aws::Utils::DateTime>
69 OpsItemSummary& WithCreatedTime(CreatedTimeT&& value) {
70 SetCreatedTime(std::forward<CreatedTimeT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetLastModifiedBy() const { return m_lastModifiedBy; }
81 inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }
82 template <typename LastModifiedByT = Aws::String>
83 void SetLastModifiedBy(LastModifiedByT&& value) {
84 m_lastModifiedByHasBeenSet = true;
85 m_lastModifiedBy = std::forward<LastModifiedByT>(value);
86 }
87 template <typename LastModifiedByT = Aws::String>
88 OpsItemSummary& WithLastModifiedBy(LastModifiedByT&& value) {
89 SetLastModifiedBy(std::forward<LastModifiedByT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
99 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
100 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
101 void SetLastModifiedTime(LastModifiedTimeT&& value) {
102 m_lastModifiedTimeHasBeenSet = true;
103 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
104 }
105 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
106 OpsItemSummary& WithLastModifiedTime(LastModifiedTimeT&& value) {
107 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
108 return *this;
109 }
111
113
117 inline int GetPriority() const { return m_priority; }
118 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
119 inline void SetPriority(int value) {
120 m_priorityHasBeenSet = true;
121 m_priority = value;
122 }
123 inline OpsItemSummary& WithPriority(int value) {
124 SetPriority(value);
125 return *this;
126 }
128
130
133 inline const Aws::String& GetSource() const { return m_source; }
134 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
135 template <typename SourceT = Aws::String>
136 void SetSource(SourceT&& value) {
137 m_sourceHasBeenSet = true;
138 m_source = std::forward<SourceT>(value);
139 }
140 template <typename SourceT = Aws::String>
141 OpsItemSummary& WithSource(SourceT&& value) {
142 SetSource(std::forward<SourceT>(value));
143 return *this;
144 }
146
148
151 inline OpsItemStatus GetStatus() const { return m_status; }
152 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
153 inline void SetStatus(OpsItemStatus value) {
154 m_statusHasBeenSet = true;
155 m_status = value;
156 }
158 SetStatus(value);
159 return *this;
160 }
162
164
167 inline const Aws::String& GetOpsItemId() const { return m_opsItemId; }
168 inline bool OpsItemIdHasBeenSet() const { return m_opsItemIdHasBeenSet; }
169 template <typename OpsItemIdT = Aws::String>
170 void SetOpsItemId(OpsItemIdT&& value) {
171 m_opsItemIdHasBeenSet = true;
172 m_opsItemId = std::forward<OpsItemIdT>(value);
173 }
174 template <typename OpsItemIdT = Aws::String>
175 OpsItemSummary& WithOpsItemId(OpsItemIdT&& value) {
176 SetOpsItemId(std::forward<OpsItemIdT>(value));
177 return *this;
178 }
180
182
186 inline const Aws::String& GetTitle() const { return m_title; }
187 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
188 template <typename TitleT = Aws::String>
189 void SetTitle(TitleT&& value) {
190 m_titleHasBeenSet = true;
191 m_title = std::forward<TitleT>(value);
192 }
193 template <typename TitleT = Aws::String>
194 OpsItemSummary& WithTitle(TitleT&& value) {
195 SetTitle(std::forward<TitleT>(value));
196 return *this;
197 }
199
201
205 inline const Aws::Map<Aws::String, OpsItemDataValue>& GetOperationalData() const { return m_operationalData; }
206 inline bool OperationalDataHasBeenSet() const { return m_operationalDataHasBeenSet; }
207 template <typename OperationalDataT = Aws::Map<Aws::String, OpsItemDataValue>>
208 void SetOperationalData(OperationalDataT&& value) {
209 m_operationalDataHasBeenSet = true;
210 m_operationalData = std::forward<OperationalDataT>(value);
211 }
212 template <typename OperationalDataT = Aws::Map<Aws::String, OpsItemDataValue>>
213 OpsItemSummary& WithOperationalData(OperationalDataT&& value) {
214 SetOperationalData(std::forward<OperationalDataT>(value));
215 return *this;
216 }
217 template <typename OperationalDataKeyT = Aws::String, typename OperationalDataValueT = OpsItemDataValue>
218 OpsItemSummary& AddOperationalData(OperationalDataKeyT&& key, OperationalDataValueT&& value) {
219 m_operationalDataHasBeenSet = true;
220 m_operationalData.emplace(std::forward<OperationalDataKeyT>(key), std::forward<OperationalDataValueT>(value));
221 return *this;
222 }
224
226
229 inline const Aws::String& GetCategory() const { return m_category; }
230 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
231 template <typename CategoryT = Aws::String>
232 void SetCategory(CategoryT&& value) {
233 m_categoryHasBeenSet = true;
234 m_category = std::forward<CategoryT>(value);
235 }
236 template <typename CategoryT = Aws::String>
237 OpsItemSummary& WithCategory(CategoryT&& value) {
238 SetCategory(std::forward<CategoryT>(value));
239 return *this;
240 }
242
244
247 inline const Aws::String& GetSeverity() const { return m_severity; }
248 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
249 template <typename SeverityT = Aws::String>
250 void SetSeverity(SeverityT&& value) {
251 m_severityHasBeenSet = true;
252 m_severity = std::forward<SeverityT>(value);
253 }
254 template <typename SeverityT = Aws::String>
255 OpsItemSummary& WithSeverity(SeverityT&& value) {
256 SetSeverity(std::forward<SeverityT>(value));
257 return *this;
258 }
260
262
271 inline const Aws::String& GetOpsItemType() const { return m_opsItemType; }
272 inline bool OpsItemTypeHasBeenSet() const { return m_opsItemTypeHasBeenSet; }
273 template <typename OpsItemTypeT = Aws::String>
274 void SetOpsItemType(OpsItemTypeT&& value) {
275 m_opsItemTypeHasBeenSet = true;
276 m_opsItemType = std::forward<OpsItemTypeT>(value);
277 }
278 template <typename OpsItemTypeT = Aws::String>
279 OpsItemSummary& WithOpsItemType(OpsItemTypeT&& value) {
280 SetOpsItemType(std::forward<OpsItemTypeT>(value));
281 return *this;
282 }
284
286
290 inline const Aws::Utils::DateTime& GetActualStartTime() const { return m_actualStartTime; }
291 inline bool ActualStartTimeHasBeenSet() const { return m_actualStartTimeHasBeenSet; }
292 template <typename ActualStartTimeT = Aws::Utils::DateTime>
293 void SetActualStartTime(ActualStartTimeT&& value) {
294 m_actualStartTimeHasBeenSet = true;
295 m_actualStartTime = std::forward<ActualStartTimeT>(value);
296 }
297 template <typename ActualStartTimeT = Aws::Utils::DateTime>
298 OpsItemSummary& WithActualStartTime(ActualStartTimeT&& value) {
299 SetActualStartTime(std::forward<ActualStartTimeT>(value));
300 return *this;
301 }
303
305
309 inline const Aws::Utils::DateTime& GetActualEndTime() const { return m_actualEndTime; }
310 inline bool ActualEndTimeHasBeenSet() const { return m_actualEndTimeHasBeenSet; }
311 template <typename ActualEndTimeT = Aws::Utils::DateTime>
312 void SetActualEndTime(ActualEndTimeT&& value) {
313 m_actualEndTimeHasBeenSet = true;
314 m_actualEndTime = std::forward<ActualEndTimeT>(value);
315 }
316 template <typename ActualEndTimeT = Aws::Utils::DateTime>
317 OpsItemSummary& WithActualEndTime(ActualEndTimeT&& value) {
318 SetActualEndTime(std::forward<ActualEndTimeT>(value));
319 return *this;
320 }
322
324
329 inline const Aws::Utils::DateTime& GetPlannedStartTime() const { return m_plannedStartTime; }
330 inline bool PlannedStartTimeHasBeenSet() const { return m_plannedStartTimeHasBeenSet; }
331 template <typename PlannedStartTimeT = Aws::Utils::DateTime>
332 void SetPlannedStartTime(PlannedStartTimeT&& value) {
333 m_plannedStartTimeHasBeenSet = true;
334 m_plannedStartTime = std::forward<PlannedStartTimeT>(value);
335 }
336 template <typename PlannedStartTimeT = Aws::Utils::DateTime>
337 OpsItemSummary& WithPlannedStartTime(PlannedStartTimeT&& value) {
338 SetPlannedStartTime(std::forward<PlannedStartTimeT>(value));
339 return *this;
340 }
342
344
349 inline const Aws::Utils::DateTime& GetPlannedEndTime() const { return m_plannedEndTime; }
350 inline bool PlannedEndTimeHasBeenSet() const { return m_plannedEndTimeHasBeenSet; }
351 template <typename PlannedEndTimeT = Aws::Utils::DateTime>
352 void SetPlannedEndTime(PlannedEndTimeT&& value) {
353 m_plannedEndTimeHasBeenSet = true;
354 m_plannedEndTime = std::forward<PlannedEndTimeT>(value);
355 }
356 template <typename PlannedEndTimeT = Aws::Utils::DateTime>
357 OpsItemSummary& WithPlannedEndTime(PlannedEndTimeT&& value) {
358 SetPlannedEndTime(std::forward<PlannedEndTimeT>(value));
359 return *this;
360 }
362 private:
363 Aws::String m_createdBy;
364
365 Aws::Utils::DateTime m_createdTime{};
366
367 Aws::String m_lastModifiedBy;
368
369 Aws::Utils::DateTime m_lastModifiedTime{};
370
371 int m_priority{0};
372
373 Aws::String m_source;
374
376
377 Aws::String m_opsItemId;
378
379 Aws::String m_title;
380
382
383 Aws::String m_category;
384
385 Aws::String m_severity;
386
387 Aws::String m_opsItemType;
388
389 Aws::Utils::DateTime m_actualStartTime{};
390
391 Aws::Utils::DateTime m_actualEndTime{};
392
393 Aws::Utils::DateTime m_plannedStartTime{};
394
395 Aws::Utils::DateTime m_plannedEndTime{};
396 bool m_createdByHasBeenSet = false;
397 bool m_createdTimeHasBeenSet = false;
398 bool m_lastModifiedByHasBeenSet = false;
399 bool m_lastModifiedTimeHasBeenSet = false;
400 bool m_priorityHasBeenSet = false;
401 bool m_sourceHasBeenSet = false;
402 bool m_statusHasBeenSet = false;
403 bool m_opsItemIdHasBeenSet = false;
404 bool m_titleHasBeenSet = false;
405 bool m_operationalDataHasBeenSet = false;
406 bool m_categoryHasBeenSet = false;
407 bool m_severityHasBeenSet = false;
408 bool m_opsItemTypeHasBeenSet = false;
409 bool m_actualStartTimeHasBeenSet = false;
410 bool m_actualEndTimeHasBeenSet = false;
411 bool m_plannedStartTimeHasBeenSet = false;
412 bool m_plannedEndTimeHasBeenSet = false;
413};
414
415} // namespace Model
416} // namespace SSM
417} // 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