AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateOpsItemRequest.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/ssm/SSMRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ssm/model/OpsItemStatus.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/ssm/model/OpsItemDataValue.h>
15#include <aws/ssm/model/OpsItemNotification.h>
16#include <aws/ssm/model/RelatedOpsItem.h>
17#include <utility>
18
19namespace Aws
20{
21namespace SSM
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_SSM_API UpdateOpsItemRequest();
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "UpdateOpsItem"; }
38
39 AWS_SSM_API Aws::String SerializePayload() const override;
40
42
43
45
49 inline const Aws::String& GetDescription() const{ return m_description; }
50 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
51 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
52 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
53 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
54 inline UpdateOpsItemRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
55 inline UpdateOpsItemRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
56 inline UpdateOpsItemRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
58
60
85 inline const Aws::Map<Aws::String, OpsItemDataValue>& GetOperationalData() const{ return m_operationalData; }
86 inline bool OperationalDataHasBeenSet() const { return m_operationalDataHasBeenSet; }
87 inline void SetOperationalData(const Aws::Map<Aws::String, OpsItemDataValue>& value) { m_operationalDataHasBeenSet = true; m_operationalData = value; }
88 inline void SetOperationalData(Aws::Map<Aws::String, OpsItemDataValue>&& value) { m_operationalDataHasBeenSet = true; m_operationalData = std::move(value); }
91 inline UpdateOpsItemRequest& AddOperationalData(const Aws::String& key, const OpsItemDataValue& value) { m_operationalDataHasBeenSet = true; m_operationalData.emplace(key, value); return *this; }
92 inline UpdateOpsItemRequest& AddOperationalData(Aws::String&& key, const OpsItemDataValue& value) { m_operationalDataHasBeenSet = true; m_operationalData.emplace(std::move(key), value); return *this; }
93 inline UpdateOpsItemRequest& AddOperationalData(const Aws::String& key, OpsItemDataValue&& value) { m_operationalDataHasBeenSet = true; m_operationalData.emplace(key, std::move(value)); return *this; }
94 inline UpdateOpsItemRequest& AddOperationalData(Aws::String&& key, OpsItemDataValue&& value) { m_operationalDataHasBeenSet = true; m_operationalData.emplace(std::move(key), std::move(value)); return *this; }
95 inline UpdateOpsItemRequest& AddOperationalData(const char* key, OpsItemDataValue&& value) { m_operationalDataHasBeenSet = true; m_operationalData.emplace(key, std::move(value)); return *this; }
96 inline UpdateOpsItemRequest& AddOperationalData(const char* key, const OpsItemDataValue& value) { m_operationalDataHasBeenSet = true; m_operationalData.emplace(key, value); return *this; }
98
100
103 inline const Aws::Vector<Aws::String>& GetOperationalDataToDelete() const{ return m_operationalDataToDelete; }
104 inline bool OperationalDataToDeleteHasBeenSet() const { return m_operationalDataToDeleteHasBeenSet; }
105 inline void SetOperationalDataToDelete(const Aws::Vector<Aws::String>& value) { m_operationalDataToDeleteHasBeenSet = true; m_operationalDataToDelete = value; }
106 inline void SetOperationalDataToDelete(Aws::Vector<Aws::String>&& value) { m_operationalDataToDeleteHasBeenSet = true; m_operationalDataToDelete = std::move(value); }
109 inline UpdateOpsItemRequest& AddOperationalDataToDelete(const Aws::String& value) { m_operationalDataToDeleteHasBeenSet = true; m_operationalDataToDelete.push_back(value); return *this; }
110 inline UpdateOpsItemRequest& AddOperationalDataToDelete(Aws::String&& value) { m_operationalDataToDeleteHasBeenSet = true; m_operationalDataToDelete.push_back(std::move(value)); return *this; }
111 inline UpdateOpsItemRequest& AddOperationalDataToDelete(const char* value) { m_operationalDataToDeleteHasBeenSet = true; m_operationalDataToDelete.push_back(value); return *this; }
113
115
119 inline const Aws::Vector<OpsItemNotification>& GetNotifications() const{ return m_notifications; }
120 inline bool NotificationsHasBeenSet() const { return m_notificationsHasBeenSet; }
121 inline void SetNotifications(const Aws::Vector<OpsItemNotification>& value) { m_notificationsHasBeenSet = true; m_notifications = value; }
122 inline void SetNotifications(Aws::Vector<OpsItemNotification>&& value) { m_notificationsHasBeenSet = true; m_notifications = std::move(value); }
125 inline UpdateOpsItemRequest& AddNotifications(const OpsItemNotification& value) { m_notificationsHasBeenSet = true; m_notifications.push_back(value); return *this; }
126 inline UpdateOpsItemRequest& AddNotifications(OpsItemNotification&& value) { m_notificationsHasBeenSet = true; m_notifications.push_back(std::move(value)); return *this; }
128
130
134 inline int GetPriority() const{ return m_priority; }
135 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
136 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
137 inline UpdateOpsItemRequest& WithPriority(int value) { SetPriority(value); return *this;}
139
141
146 inline const Aws::Vector<RelatedOpsItem>& GetRelatedOpsItems() const{ return m_relatedOpsItems; }
147 inline bool RelatedOpsItemsHasBeenSet() const { return m_relatedOpsItemsHasBeenSet; }
148 inline void SetRelatedOpsItems(const Aws::Vector<RelatedOpsItem>& value) { m_relatedOpsItemsHasBeenSet = true; m_relatedOpsItems = value; }
149 inline void SetRelatedOpsItems(Aws::Vector<RelatedOpsItem>&& value) { m_relatedOpsItemsHasBeenSet = true; m_relatedOpsItems = std::move(value); }
152 inline UpdateOpsItemRequest& AddRelatedOpsItems(const RelatedOpsItem& value) { m_relatedOpsItemsHasBeenSet = true; m_relatedOpsItems.push_back(value); return *this; }
153 inline UpdateOpsItemRequest& AddRelatedOpsItems(RelatedOpsItem&& value) { m_relatedOpsItemsHasBeenSet = true; m_relatedOpsItems.push_back(std::move(value)); return *this; }
155
157
163 inline const OpsItemStatus& GetStatus() const{ return m_status; }
164 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
165 inline void SetStatus(const OpsItemStatus& value) { m_statusHasBeenSet = true; m_status = value; }
166 inline void SetStatus(OpsItemStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
167 inline UpdateOpsItemRequest& WithStatus(const OpsItemStatus& value) { SetStatus(value); return *this;}
168 inline UpdateOpsItemRequest& WithStatus(OpsItemStatus&& value) { SetStatus(std::move(value)); return *this;}
170
172
175 inline const Aws::String& GetOpsItemId() const{ return m_opsItemId; }
176 inline bool OpsItemIdHasBeenSet() const { return m_opsItemIdHasBeenSet; }
177 inline void SetOpsItemId(const Aws::String& value) { m_opsItemIdHasBeenSet = true; m_opsItemId = value; }
178 inline void SetOpsItemId(Aws::String&& value) { m_opsItemIdHasBeenSet = true; m_opsItemId = std::move(value); }
179 inline void SetOpsItemId(const char* value) { m_opsItemIdHasBeenSet = true; m_opsItemId.assign(value); }
180 inline UpdateOpsItemRequest& WithOpsItemId(const Aws::String& value) { SetOpsItemId(value); return *this;}
181 inline UpdateOpsItemRequest& WithOpsItemId(Aws::String&& value) { SetOpsItemId(std::move(value)); return *this;}
182 inline UpdateOpsItemRequest& WithOpsItemId(const char* value) { SetOpsItemId(value); return *this;}
184
186
190 inline const Aws::String& GetTitle() const{ return m_title; }
191 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
192 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
193 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
194 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
195 inline UpdateOpsItemRequest& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
196 inline UpdateOpsItemRequest& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
197 inline UpdateOpsItemRequest& WithTitle(const char* value) { SetTitle(value); return *this;}
199
201
204 inline const Aws::String& GetCategory() const{ return m_category; }
205 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
206 inline void SetCategory(const Aws::String& value) { m_categoryHasBeenSet = true; m_category = value; }
207 inline void SetCategory(Aws::String&& value) { m_categoryHasBeenSet = true; m_category = std::move(value); }
208 inline void SetCategory(const char* value) { m_categoryHasBeenSet = true; m_category.assign(value); }
209 inline UpdateOpsItemRequest& WithCategory(const Aws::String& value) { SetCategory(value); return *this;}
210 inline UpdateOpsItemRequest& WithCategory(Aws::String&& value) { SetCategory(std::move(value)); return *this;}
211 inline UpdateOpsItemRequest& WithCategory(const char* value) { SetCategory(value); return *this;}
213
215
218 inline const Aws::String& GetSeverity() const{ return m_severity; }
219 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
220 inline void SetSeverity(const Aws::String& value) { m_severityHasBeenSet = true; m_severity = value; }
221 inline void SetSeverity(Aws::String&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
222 inline void SetSeverity(const char* value) { m_severityHasBeenSet = true; m_severity.assign(value); }
223 inline UpdateOpsItemRequest& WithSeverity(const Aws::String& value) { SetSeverity(value); return *this;}
224 inline UpdateOpsItemRequest& WithSeverity(Aws::String&& value) { SetSeverity(std::move(value)); return *this;}
225 inline UpdateOpsItemRequest& WithSeverity(const char* value) { SetSeverity(value); return *this;}
227
229
233 inline const Aws::Utils::DateTime& GetActualStartTime() const{ return m_actualStartTime; }
234 inline bool ActualStartTimeHasBeenSet() const { return m_actualStartTimeHasBeenSet; }
235 inline void SetActualStartTime(const Aws::Utils::DateTime& value) { m_actualStartTimeHasBeenSet = true; m_actualStartTime = value; }
236 inline void SetActualStartTime(Aws::Utils::DateTime&& value) { m_actualStartTimeHasBeenSet = true; m_actualStartTime = std::move(value); }
238 inline UpdateOpsItemRequest& WithActualStartTime(Aws::Utils::DateTime&& value) { SetActualStartTime(std::move(value)); return *this;}
240
242
246 inline const Aws::Utils::DateTime& GetActualEndTime() const{ return m_actualEndTime; }
247 inline bool ActualEndTimeHasBeenSet() const { return m_actualEndTimeHasBeenSet; }
248 inline void SetActualEndTime(const Aws::Utils::DateTime& value) { m_actualEndTimeHasBeenSet = true; m_actualEndTime = value; }
249 inline void SetActualEndTime(Aws::Utils::DateTime&& value) { m_actualEndTimeHasBeenSet = true; m_actualEndTime = std::move(value); }
251 inline UpdateOpsItemRequest& WithActualEndTime(Aws::Utils::DateTime&& value) { SetActualEndTime(std::move(value)); return *this;}
253
255
260 inline const Aws::Utils::DateTime& GetPlannedStartTime() const{ return m_plannedStartTime; }
261 inline bool PlannedStartTimeHasBeenSet() const { return m_plannedStartTimeHasBeenSet; }
262 inline void SetPlannedStartTime(const Aws::Utils::DateTime& value) { m_plannedStartTimeHasBeenSet = true; m_plannedStartTime = value; }
263 inline void SetPlannedStartTime(Aws::Utils::DateTime&& value) { m_plannedStartTimeHasBeenSet = true; m_plannedStartTime = std::move(value); }
265 inline UpdateOpsItemRequest& WithPlannedStartTime(Aws::Utils::DateTime&& value) { SetPlannedStartTime(std::move(value)); return *this;}
267
269
274 inline const Aws::Utils::DateTime& GetPlannedEndTime() const{ return m_plannedEndTime; }
275 inline bool PlannedEndTimeHasBeenSet() const { return m_plannedEndTimeHasBeenSet; }
276 inline void SetPlannedEndTime(const Aws::Utils::DateTime& value) { m_plannedEndTimeHasBeenSet = true; m_plannedEndTime = value; }
277 inline void SetPlannedEndTime(Aws::Utils::DateTime&& value) { m_plannedEndTimeHasBeenSet = true; m_plannedEndTime = std::move(value); }
279 inline UpdateOpsItemRequest& WithPlannedEndTime(Aws::Utils::DateTime&& value) { SetPlannedEndTime(std::move(value)); return *this;}
281
283
286 inline const Aws::String& GetOpsItemArn() const{ return m_opsItemArn; }
287 inline bool OpsItemArnHasBeenSet() const { return m_opsItemArnHasBeenSet; }
288 inline void SetOpsItemArn(const Aws::String& value) { m_opsItemArnHasBeenSet = true; m_opsItemArn = value; }
289 inline void SetOpsItemArn(Aws::String&& value) { m_opsItemArnHasBeenSet = true; m_opsItemArn = std::move(value); }
290 inline void SetOpsItemArn(const char* value) { m_opsItemArnHasBeenSet = true; m_opsItemArn.assign(value); }
291 inline UpdateOpsItemRequest& WithOpsItemArn(const Aws::String& value) { SetOpsItemArn(value); return *this;}
292 inline UpdateOpsItemRequest& WithOpsItemArn(Aws::String&& value) { SetOpsItemArn(std::move(value)); return *this;}
293 inline UpdateOpsItemRequest& WithOpsItemArn(const char* value) { SetOpsItemArn(value); return *this;}
295 private:
296
297 Aws::String m_description;
298 bool m_descriptionHasBeenSet = false;
299
301 bool m_operationalDataHasBeenSet = false;
302
303 Aws::Vector<Aws::String> m_operationalDataToDelete;
304 bool m_operationalDataToDeleteHasBeenSet = false;
305
306 Aws::Vector<OpsItemNotification> m_notifications;
307 bool m_notificationsHasBeenSet = false;
308
309 int m_priority;
310 bool m_priorityHasBeenSet = false;
311
312 Aws::Vector<RelatedOpsItem> m_relatedOpsItems;
313 bool m_relatedOpsItemsHasBeenSet = false;
314
315 OpsItemStatus m_status;
316 bool m_statusHasBeenSet = false;
317
318 Aws::String m_opsItemId;
319 bool m_opsItemIdHasBeenSet = false;
320
321 Aws::String m_title;
322 bool m_titleHasBeenSet = false;
323
324 Aws::String m_category;
325 bool m_categoryHasBeenSet = false;
326
327 Aws::String m_severity;
328 bool m_severityHasBeenSet = false;
329
330 Aws::Utils::DateTime m_actualStartTime;
331 bool m_actualStartTimeHasBeenSet = false;
332
333 Aws::Utils::DateTime m_actualEndTime;
334 bool m_actualEndTimeHasBeenSet = false;
335
336 Aws::Utils::DateTime m_plannedStartTime;
337 bool m_plannedStartTimeHasBeenSet = false;
338
339 Aws::Utils::DateTime m_plannedEndTime;
340 bool m_plannedEndTimeHasBeenSet = false;
341
342 Aws::String m_opsItemArn;
343 bool m_opsItemArnHasBeenSet = false;
344 };
345
346} // namespace Model
347} // namespace SSM
348} // namespace Aws
void SetStatus(const OpsItemStatus &value)
void SetOperationalDataToDelete(const Aws::Vector< Aws::String > &value)
UpdateOpsItemRequest & WithRelatedOpsItems(Aws::Vector< RelatedOpsItem > &&value)
UpdateOpsItemRequest & WithStatus(OpsItemStatus &&value)
void SetRelatedOpsItems(const Aws::Vector< RelatedOpsItem > &value)
UpdateOpsItemRequest & WithActualStartTime(const Aws::Utils::DateTime &value)
UpdateOpsItemRequest & WithDescription(const char *value)
UpdateOpsItemRequest & AddOperationalData(const Aws::String &key, OpsItemDataValue &&value)
UpdateOpsItemRequest & WithOpsItemId(Aws::String &&value)
void SetTitle(const Aws::String &value)
UpdateOpsItemRequest & WithOpsItemId(const Aws::String &value)
UpdateOpsItemRequest & AddOperationalData(Aws::String &&key, const OpsItemDataValue &value)
UpdateOpsItemRequest & AddOperationalDataToDelete(Aws::String &&value)
UpdateOpsItemRequest & WithDescription(Aws::String &&value)
UpdateOpsItemRequest & AddOperationalData(const char *key, const OpsItemDataValue &value)
UpdateOpsItemRequest & WithTitle(Aws::String &&value)
UpdateOpsItemRequest & WithOpsItemArn(Aws::String &&value)
UpdateOpsItemRequest & WithActualStartTime(Aws::Utils::DateTime &&value)
const Aws::Map< Aws::String, OpsItemDataValue > & GetOperationalData() const
const OpsItemStatus & GetStatus() const
UpdateOpsItemRequest & AddOperationalDataToDelete(const Aws::String &value)
UpdateOpsItemRequest & WithNotifications(const Aws::Vector< OpsItemNotification > &value)
const Aws::String & GetOpsItemArn() const
void SetCategory(const Aws::String &value)
UpdateOpsItemRequest & AddOperationalData(const Aws::String &key, const OpsItemDataValue &value)
const Aws::Vector< Aws::String > & GetOperationalDataToDelete() const
const Aws::Utils::DateTime & GetActualStartTime() const
UpdateOpsItemRequest & WithTitle(const Aws::String &value)
UpdateOpsItemRequest & AddRelatedOpsItems(const RelatedOpsItem &value)
UpdateOpsItemRequest & WithActualEndTime(Aws::Utils::DateTime &&value)
UpdateOpsItemRequest & AddOperationalData(Aws::String &&key, OpsItemDataValue &&value)
void SetNotifications(const Aws::Vector< OpsItemNotification > &value)
void SetOpsItemId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
void SetActualEndTime(const Aws::Utils::DateTime &value)
UpdateOpsItemRequest & AddRelatedOpsItems(RelatedOpsItem &&value)
void SetActualStartTime(const Aws::Utils::DateTime &value)
UpdateOpsItemRequest & WithRelatedOpsItems(const Aws::Vector< RelatedOpsItem > &value)
void SetActualStartTime(Aws::Utils::DateTime &&value)
void SetDescription(const Aws::String &value)
void SetOpsItemArn(const Aws::String &value)
void SetOperationalData(Aws::Map< Aws::String, OpsItemDataValue > &&value)
void SetOperationalData(const Aws::Map< Aws::String, OpsItemDataValue > &value)
UpdateOpsItemRequest & WithSeverity(Aws::String &&value)
UpdateOpsItemRequest & AddNotifications(OpsItemNotification &&value)
UpdateOpsItemRequest & WithOperationalData(Aws::Map< Aws::String, OpsItemDataValue > &&value)
UpdateOpsItemRequest & WithOperationalDataToDelete(const Aws::Vector< Aws::String > &value)
UpdateOpsItemRequest & WithPlannedEndTime(Aws::Utils::DateTime &&value)
UpdateOpsItemRequest & WithOpsItemArn(const Aws::String &value)
void SetPlannedStartTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetPlannedStartTime() const
void SetActualEndTime(Aws::Utils::DateTime &&value)
void SetPlannedStartTime(const Aws::Utils::DateTime &value)
UpdateOpsItemRequest & WithCategory(const Aws::String &value)
UpdateOpsItemRequest & AddOperationalData(const char *key, OpsItemDataValue &&value)
const Aws::Vector< OpsItemNotification > & GetNotifications() const
UpdateOpsItemRequest & WithSeverity(const Aws::String &value)
UpdateOpsItemRequest & WithPlannedEndTime(const Aws::Utils::DateTime &value)
UpdateOpsItemRequest & WithTitle(const char *value)
UpdateOpsItemRequest & WithSeverity(const char *value)
UpdateOpsItemRequest & WithNotifications(Aws::Vector< OpsItemNotification > &&value)
UpdateOpsItemRequest & WithOperationalDataToDelete(Aws::Vector< Aws::String > &&value)
void SetPlannedEndTime(Aws::Utils::DateTime &&value)
UpdateOpsItemRequest & WithPlannedStartTime(const Aws::Utils::DateTime &value)
AWS_SSM_API Aws::String SerializePayload() const override
const Aws::Vector< RelatedOpsItem > & GetRelatedOpsItems() const
UpdateOpsItemRequest & WithPriority(int value)
void SetNotifications(Aws::Vector< OpsItemNotification > &&value)
void SetRelatedOpsItems(Aws::Vector< RelatedOpsItem > &&value)
UpdateOpsItemRequest & WithCategory(const char *value)
UpdateOpsItemRequest & WithOperationalData(const Aws::Map< Aws::String, OpsItemDataValue > &value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetSeverity(const Aws::String &value)
void SetOperationalDataToDelete(Aws::Vector< Aws::String > &&value)
UpdateOpsItemRequest & WithOpsItemId(const char *value)
UpdateOpsItemRequest & WithStatus(const OpsItemStatus &value)
const Aws::Utils::DateTime & GetActualEndTime() const
UpdateOpsItemRequest & AddNotifications(const OpsItemNotification &value)
UpdateOpsItemRequest & WithDescription(const Aws::String &value)
UpdateOpsItemRequest & WithPlannedStartTime(Aws::Utils::DateTime &&value)
UpdateOpsItemRequest & WithCategory(Aws::String &&value)
const Aws::String & GetDescription() const
void SetPlannedEndTime(const Aws::Utils::DateTime &value)
UpdateOpsItemRequest & AddOperationalDataToDelete(const char *value)
const Aws::Utils::DateTime & GetPlannedEndTime() const
UpdateOpsItemRequest & WithActualEndTime(const Aws::Utils::DateTime &value)
UpdateOpsItemRequest & WithOpsItemArn(const char *value)
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