AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
UpdateOpsItemRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/ssm/SSMRequest.h>
12#include <aws/ssm/SSM_EXPORTS.h>
13#include <aws/ssm/model/OpsItemDataValue.h>
14#include <aws/ssm/model/OpsItemNotification.h>
15#include <aws/ssm/model/OpsItemStatus.h>
16#include <aws/ssm/model/RelatedOpsItem.h>
17
18#include <utility>
19
20namespace Aws {
21namespace SSM {
22namespace Model {
23
27 public:
28 AWS_SSM_API UpdateOpsItemRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateOpsItem"; }
35
36 AWS_SSM_API Aws::String SerializePayload() const override;
37
39
41
45 inline const Aws::String& GetDescription() const { return m_description; }
46 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
47 template <typename DescriptionT = Aws::String>
48 void SetDescription(DescriptionT&& value) {
49 m_descriptionHasBeenSet = true;
50 m_description = std::forward<DescriptionT>(value);
51 }
52 template <typename DescriptionT = Aws::String>
53 UpdateOpsItemRequest& WithDescription(DescriptionT&& value) {
54 SetDescription(std::forward<DescriptionT>(value));
55 return *this;
56 }
58
60
85 inline const Aws::Map<Aws::String, OpsItemDataValue>& GetOperationalData() const { return m_operationalData; }
86 inline bool OperationalDataHasBeenSet() const { return m_operationalDataHasBeenSet; }
87 template <typename OperationalDataT = Aws::Map<Aws::String, OpsItemDataValue>>
88 void SetOperationalData(OperationalDataT&& value) {
89 m_operationalDataHasBeenSet = true;
90 m_operationalData = std::forward<OperationalDataT>(value);
91 }
92 template <typename OperationalDataT = Aws::Map<Aws::String, OpsItemDataValue>>
93 UpdateOpsItemRequest& WithOperationalData(OperationalDataT&& value) {
94 SetOperationalData(std::forward<OperationalDataT>(value));
95 return *this;
96 }
97 template <typename OperationalDataKeyT = Aws::String, typename OperationalDataValueT = OpsItemDataValue>
98 UpdateOpsItemRequest& AddOperationalData(OperationalDataKeyT&& key, OperationalDataValueT&& value) {
99 m_operationalDataHasBeenSet = true;
100 m_operationalData.emplace(std::forward<OperationalDataKeyT>(key), std::forward<OperationalDataValueT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::Vector<Aws::String>& GetOperationalDataToDelete() const { return m_operationalDataToDelete; }
110 inline bool OperationalDataToDeleteHasBeenSet() const { return m_operationalDataToDeleteHasBeenSet; }
111 template <typename OperationalDataToDeleteT = Aws::Vector<Aws::String>>
112 void SetOperationalDataToDelete(OperationalDataToDeleteT&& value) {
113 m_operationalDataToDeleteHasBeenSet = true;
114 m_operationalDataToDelete = std::forward<OperationalDataToDeleteT>(value);
115 }
116 template <typename OperationalDataToDeleteT = Aws::Vector<Aws::String>>
117 UpdateOpsItemRequest& WithOperationalDataToDelete(OperationalDataToDeleteT&& value) {
118 SetOperationalDataToDelete(std::forward<OperationalDataToDeleteT>(value));
119 return *this;
120 }
121 template <typename OperationalDataToDeleteT = Aws::String>
122 UpdateOpsItemRequest& AddOperationalDataToDelete(OperationalDataToDeleteT&& value) {
123 m_operationalDataToDeleteHasBeenSet = true;
124 m_operationalDataToDelete.emplace_back(std::forward<OperationalDataToDeleteT>(value));
125 return *this;
126 }
128
130
134 inline const Aws::Vector<OpsItemNotification>& GetNotifications() const { return m_notifications; }
135 inline bool NotificationsHasBeenSet() const { return m_notificationsHasBeenSet; }
136 template <typename NotificationsT = Aws::Vector<OpsItemNotification>>
137 void SetNotifications(NotificationsT&& value) {
138 m_notificationsHasBeenSet = true;
139 m_notifications = std::forward<NotificationsT>(value);
140 }
141 template <typename NotificationsT = Aws::Vector<OpsItemNotification>>
142 UpdateOpsItemRequest& WithNotifications(NotificationsT&& value) {
143 SetNotifications(std::forward<NotificationsT>(value));
144 return *this;
145 }
146 template <typename NotificationsT = OpsItemNotification>
147 UpdateOpsItemRequest& AddNotifications(NotificationsT&& value) {
148 m_notificationsHasBeenSet = true;
149 m_notifications.emplace_back(std::forward<NotificationsT>(value));
150 return *this;
151 }
153
155
159 inline int GetPriority() const { return m_priority; }
160 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
161 inline void SetPriority(int value) {
162 m_priorityHasBeenSet = true;
163 m_priority = value;
164 }
166 SetPriority(value);
167 return *this;
168 }
170
172
177 inline const Aws::Vector<RelatedOpsItem>& GetRelatedOpsItems() const { return m_relatedOpsItems; }
178 inline bool RelatedOpsItemsHasBeenSet() const { return m_relatedOpsItemsHasBeenSet; }
179 template <typename RelatedOpsItemsT = Aws::Vector<RelatedOpsItem>>
180 void SetRelatedOpsItems(RelatedOpsItemsT&& value) {
181 m_relatedOpsItemsHasBeenSet = true;
182 m_relatedOpsItems = std::forward<RelatedOpsItemsT>(value);
183 }
184 template <typename RelatedOpsItemsT = Aws::Vector<RelatedOpsItem>>
185 UpdateOpsItemRequest& WithRelatedOpsItems(RelatedOpsItemsT&& value) {
186 SetRelatedOpsItems(std::forward<RelatedOpsItemsT>(value));
187 return *this;
188 }
189 template <typename RelatedOpsItemsT = RelatedOpsItem>
190 UpdateOpsItemRequest& AddRelatedOpsItems(RelatedOpsItemsT&& value) {
191 m_relatedOpsItemsHasBeenSet = true;
192 m_relatedOpsItems.emplace_back(std::forward<RelatedOpsItemsT>(value));
193 return *this;
194 }
196
198
204 inline OpsItemStatus GetStatus() const { return m_status; }
205 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
206 inline void SetStatus(OpsItemStatus value) {
207 m_statusHasBeenSet = true;
208 m_status = value;
209 }
211 SetStatus(value);
212 return *this;
213 }
215
217
220 inline const Aws::String& GetOpsItemId() const { return m_opsItemId; }
221 inline bool OpsItemIdHasBeenSet() const { return m_opsItemIdHasBeenSet; }
222 template <typename OpsItemIdT = Aws::String>
223 void SetOpsItemId(OpsItemIdT&& value) {
224 m_opsItemIdHasBeenSet = true;
225 m_opsItemId = std::forward<OpsItemIdT>(value);
226 }
227 template <typename OpsItemIdT = Aws::String>
228 UpdateOpsItemRequest& WithOpsItemId(OpsItemIdT&& value) {
229 SetOpsItemId(std::forward<OpsItemIdT>(value));
230 return *this;
231 }
233
235
239 inline const Aws::String& GetTitle() const { return m_title; }
240 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
241 template <typename TitleT = Aws::String>
242 void SetTitle(TitleT&& value) {
243 m_titleHasBeenSet = true;
244 m_title = std::forward<TitleT>(value);
245 }
246 template <typename TitleT = Aws::String>
248 SetTitle(std::forward<TitleT>(value));
249 return *this;
250 }
252
254
257 inline const Aws::String& GetCategory() const { return m_category; }
258 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
259 template <typename CategoryT = Aws::String>
260 void SetCategory(CategoryT&& value) {
261 m_categoryHasBeenSet = true;
262 m_category = std::forward<CategoryT>(value);
263 }
264 template <typename CategoryT = Aws::String>
265 UpdateOpsItemRequest& WithCategory(CategoryT&& value) {
266 SetCategory(std::forward<CategoryT>(value));
267 return *this;
268 }
270
272
275 inline const Aws::String& GetSeverity() const { return m_severity; }
276 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
277 template <typename SeverityT = Aws::String>
278 void SetSeverity(SeverityT&& value) {
279 m_severityHasBeenSet = true;
280 m_severity = std::forward<SeverityT>(value);
281 }
282 template <typename SeverityT = Aws::String>
283 UpdateOpsItemRequest& WithSeverity(SeverityT&& value) {
284 SetSeverity(std::forward<SeverityT>(value));
285 return *this;
286 }
288
290
294 inline const Aws::Utils::DateTime& GetActualStartTime() const { return m_actualStartTime; }
295 inline bool ActualStartTimeHasBeenSet() const { return m_actualStartTimeHasBeenSet; }
296 template <typename ActualStartTimeT = Aws::Utils::DateTime>
297 void SetActualStartTime(ActualStartTimeT&& value) {
298 m_actualStartTimeHasBeenSet = true;
299 m_actualStartTime = std::forward<ActualStartTimeT>(value);
300 }
301 template <typename ActualStartTimeT = Aws::Utils::DateTime>
302 UpdateOpsItemRequest& WithActualStartTime(ActualStartTimeT&& value) {
303 SetActualStartTime(std::forward<ActualStartTimeT>(value));
304 return *this;
305 }
307
309
313 inline const Aws::Utils::DateTime& GetActualEndTime() const { return m_actualEndTime; }
314 inline bool ActualEndTimeHasBeenSet() const { return m_actualEndTimeHasBeenSet; }
315 template <typename ActualEndTimeT = Aws::Utils::DateTime>
316 void SetActualEndTime(ActualEndTimeT&& value) {
317 m_actualEndTimeHasBeenSet = true;
318 m_actualEndTime = std::forward<ActualEndTimeT>(value);
319 }
320 template <typename ActualEndTimeT = Aws::Utils::DateTime>
321 UpdateOpsItemRequest& WithActualEndTime(ActualEndTimeT&& value) {
322 SetActualEndTime(std::forward<ActualEndTimeT>(value));
323 return *this;
324 }
326
328
333 inline const Aws::Utils::DateTime& GetPlannedStartTime() const { return m_plannedStartTime; }
334 inline bool PlannedStartTimeHasBeenSet() const { return m_plannedStartTimeHasBeenSet; }
335 template <typename PlannedStartTimeT = Aws::Utils::DateTime>
336 void SetPlannedStartTime(PlannedStartTimeT&& value) {
337 m_plannedStartTimeHasBeenSet = true;
338 m_plannedStartTime = std::forward<PlannedStartTimeT>(value);
339 }
340 template <typename PlannedStartTimeT = Aws::Utils::DateTime>
341 UpdateOpsItemRequest& WithPlannedStartTime(PlannedStartTimeT&& value) {
342 SetPlannedStartTime(std::forward<PlannedStartTimeT>(value));
343 return *this;
344 }
346
348
353 inline const Aws::Utils::DateTime& GetPlannedEndTime() const { return m_plannedEndTime; }
354 inline bool PlannedEndTimeHasBeenSet() const { return m_plannedEndTimeHasBeenSet; }
355 template <typename PlannedEndTimeT = Aws::Utils::DateTime>
356 void SetPlannedEndTime(PlannedEndTimeT&& value) {
357 m_plannedEndTimeHasBeenSet = true;
358 m_plannedEndTime = std::forward<PlannedEndTimeT>(value);
359 }
360 template <typename PlannedEndTimeT = Aws::Utils::DateTime>
361 UpdateOpsItemRequest& WithPlannedEndTime(PlannedEndTimeT&& value) {
362 SetPlannedEndTime(std::forward<PlannedEndTimeT>(value));
363 return *this;
364 }
366
368
371 inline const Aws::String& GetOpsItemArn() const { return m_opsItemArn; }
372 inline bool OpsItemArnHasBeenSet() const { return m_opsItemArnHasBeenSet; }
373 template <typename OpsItemArnT = Aws::String>
374 void SetOpsItemArn(OpsItemArnT&& value) {
375 m_opsItemArnHasBeenSet = true;
376 m_opsItemArn = std::forward<OpsItemArnT>(value);
377 }
378 template <typename OpsItemArnT = Aws::String>
379 UpdateOpsItemRequest& WithOpsItemArn(OpsItemArnT&& value) {
380 SetOpsItemArn(std::forward<OpsItemArnT>(value));
381 return *this;
382 }
384 private:
385 Aws::String m_description;
386
388
389 Aws::Vector<Aws::String> m_operationalDataToDelete;
390
391 Aws::Vector<OpsItemNotification> m_notifications;
392
393 int m_priority{0};
394
395 Aws::Vector<RelatedOpsItem> m_relatedOpsItems;
396
398
399 Aws::String m_opsItemId;
400
401 Aws::String m_title;
402
403 Aws::String m_category;
404
405 Aws::String m_severity;
406
407 Aws::Utils::DateTime m_actualStartTime{};
408
409 Aws::Utils::DateTime m_actualEndTime{};
410
411 Aws::Utils::DateTime m_plannedStartTime{};
412
413 Aws::Utils::DateTime m_plannedEndTime{};
414
415 Aws::String m_opsItemArn;
416 bool m_descriptionHasBeenSet = false;
417 bool m_operationalDataHasBeenSet = false;
418 bool m_operationalDataToDeleteHasBeenSet = false;
419 bool m_notificationsHasBeenSet = false;
420 bool m_priorityHasBeenSet = false;
421 bool m_relatedOpsItemsHasBeenSet = false;
422 bool m_statusHasBeenSet = false;
423 bool m_opsItemIdHasBeenSet = false;
424 bool m_titleHasBeenSet = false;
425 bool m_categoryHasBeenSet = false;
426 bool m_severityHasBeenSet = false;
427 bool m_actualStartTimeHasBeenSet = false;
428 bool m_actualEndTimeHasBeenSet = false;
429 bool m_plannedStartTimeHasBeenSet = false;
430 bool m_plannedEndTimeHasBeenSet = false;
431 bool m_opsItemArnHasBeenSet = false;
432};
433
434} // namespace Model
435} // namespace SSM
436} // namespace Aws
UpdateOpsItemRequest & WithActualStartTime(ActualStartTimeT &&value)
UpdateOpsItemRequest & WithActualEndTime(ActualEndTimeT &&value)
UpdateOpsItemRequest & AddNotifications(NotificationsT &&value)
AWS_SSM_API UpdateOpsItemRequest()=default
UpdateOpsItemRequest & WithCategory(CategoryT &&value)
void SetOperationalData(OperationalDataT &&value)
const Aws::Map< Aws::String, OpsItemDataValue > & GetOperationalData() const
UpdateOpsItemRequest & AddOperationalData(OperationalDataKeyT &&key, OperationalDataValueT &&value)
const Aws::String & GetOpsItemArn() const
void SetActualEndTime(ActualEndTimeT &&value)
const Aws::Vector< Aws::String > & GetOperationalDataToDelete() const
const Aws::Utils::DateTime & GetActualStartTime() const
UpdateOpsItemRequest & WithOperationalDataToDelete(OperationalDataToDeleteT &&value)
virtual const char * GetServiceRequestName() const override
UpdateOpsItemRequest & WithPlannedStartTime(PlannedStartTimeT &&value)
UpdateOpsItemRequest & WithStatus(OpsItemStatus value)
UpdateOpsItemRequest & AddOperationalDataToDelete(OperationalDataToDeleteT &&value)
UpdateOpsItemRequest & WithOpsItemArn(OpsItemArnT &&value)
UpdateOpsItemRequest & WithOperationalData(OperationalDataT &&value)
void SetRelatedOpsItems(RelatedOpsItemsT &&value)
void SetPlannedStartTime(PlannedStartTimeT &&value)
void SetOperationalDataToDelete(OperationalDataToDeleteT &&value)
const Aws::Utils::DateTime & GetPlannedStartTime() const
UpdateOpsItemRequest & WithNotifications(NotificationsT &&value)
UpdateOpsItemRequest & WithOpsItemId(OpsItemIdT &&value)
const Aws::Vector< OpsItemNotification > & GetNotifications() const
void SetActualStartTime(ActualStartTimeT &&value)
void SetNotifications(NotificationsT &&value)
UpdateOpsItemRequest & WithTitle(TitleT &&value)
UpdateOpsItemRequest & WithRelatedOpsItems(RelatedOpsItemsT &&value)
void SetDescription(DescriptionT &&value)
UpdateOpsItemRequest & WithPlannedEndTime(PlannedEndTimeT &&value)
AWS_SSM_API Aws::String SerializePayload() const override
const Aws::Vector< RelatedOpsItem > & GetRelatedOpsItems() const
UpdateOpsItemRequest & WithPriority(int value)
UpdateOpsItemRequest & AddRelatedOpsItems(RelatedOpsItemsT &&value)
UpdateOpsItemRequest & WithSeverity(SeverityT &&value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateOpsItemRequest & WithDescription(DescriptionT &&value)
void SetPlannedEndTime(PlannedEndTimeT &&value)
const Aws::Utils::DateTime & GetActualEndTime() const
const Aws::String & GetDescription() const
const Aws::Utils::DateTime & GetPlannedEndTime() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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
std::vector< T, Aws::Allocator< T > > Vector