AWS SDK for C++

AWS SDK for C++ Version 1.11.551

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
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() = default;
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 template<typename DescriptionT = Aws::String>
52 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
53 template<typename DescriptionT = Aws::String>
54 UpdateOpsItemRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
56
58
83 inline const Aws::Map<Aws::String, OpsItemDataValue>& GetOperationalData() const { return m_operationalData; }
84 inline bool OperationalDataHasBeenSet() const { return m_operationalDataHasBeenSet; }
85 template<typename OperationalDataT = Aws::Map<Aws::String, OpsItemDataValue>>
86 void SetOperationalData(OperationalDataT&& value) { m_operationalDataHasBeenSet = true; m_operationalData = std::forward<OperationalDataT>(value); }
87 template<typename OperationalDataT = Aws::Map<Aws::String, OpsItemDataValue>>
88 UpdateOpsItemRequest& WithOperationalData(OperationalDataT&& value) { SetOperationalData(std::forward<OperationalDataT>(value)); return *this;}
89 template<typename OperationalDataKeyT = Aws::String, typename OperationalDataValueT = OpsItemDataValue>
90 UpdateOpsItemRequest& AddOperationalData(OperationalDataKeyT&& key, OperationalDataValueT&& value) {
91 m_operationalDataHasBeenSet = true; m_operationalData.emplace(std::forward<OperationalDataKeyT>(key), std::forward<OperationalDataValueT>(value)); return *this;
92 }
94
96
99 inline const Aws::Vector<Aws::String>& GetOperationalDataToDelete() const { return m_operationalDataToDelete; }
100 inline bool OperationalDataToDeleteHasBeenSet() const { return m_operationalDataToDeleteHasBeenSet; }
101 template<typename OperationalDataToDeleteT = Aws::Vector<Aws::String>>
102 void SetOperationalDataToDelete(OperationalDataToDeleteT&& value) { m_operationalDataToDeleteHasBeenSet = true; m_operationalDataToDelete = std::forward<OperationalDataToDeleteT>(value); }
103 template<typename OperationalDataToDeleteT = Aws::Vector<Aws::String>>
104 UpdateOpsItemRequest& WithOperationalDataToDelete(OperationalDataToDeleteT&& value) { SetOperationalDataToDelete(std::forward<OperationalDataToDeleteT>(value)); return *this;}
105 template<typename OperationalDataToDeleteT = Aws::String>
106 UpdateOpsItemRequest& AddOperationalDataToDelete(OperationalDataToDeleteT&& value) { m_operationalDataToDeleteHasBeenSet = true; m_operationalDataToDelete.emplace_back(std::forward<OperationalDataToDeleteT>(value)); return *this; }
108
110
114 inline const Aws::Vector<OpsItemNotification>& GetNotifications() const { return m_notifications; }
115 inline bool NotificationsHasBeenSet() const { return m_notificationsHasBeenSet; }
116 template<typename NotificationsT = Aws::Vector<OpsItemNotification>>
117 void SetNotifications(NotificationsT&& value) { m_notificationsHasBeenSet = true; m_notifications = std::forward<NotificationsT>(value); }
118 template<typename NotificationsT = Aws::Vector<OpsItemNotification>>
119 UpdateOpsItemRequest& WithNotifications(NotificationsT&& value) { SetNotifications(std::forward<NotificationsT>(value)); return *this;}
120 template<typename NotificationsT = OpsItemNotification>
121 UpdateOpsItemRequest& AddNotifications(NotificationsT&& value) { m_notificationsHasBeenSet = true; m_notifications.emplace_back(std::forward<NotificationsT>(value)); return *this; }
123
125
129 inline int GetPriority() const { return m_priority; }
130 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
131 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
132 inline UpdateOpsItemRequest& WithPriority(int value) { SetPriority(value); return *this;}
134
136
141 inline const Aws::Vector<RelatedOpsItem>& GetRelatedOpsItems() const { return m_relatedOpsItems; }
142 inline bool RelatedOpsItemsHasBeenSet() const { return m_relatedOpsItemsHasBeenSet; }
143 template<typename RelatedOpsItemsT = Aws::Vector<RelatedOpsItem>>
144 void SetRelatedOpsItems(RelatedOpsItemsT&& value) { m_relatedOpsItemsHasBeenSet = true; m_relatedOpsItems = std::forward<RelatedOpsItemsT>(value); }
145 template<typename RelatedOpsItemsT = Aws::Vector<RelatedOpsItem>>
146 UpdateOpsItemRequest& WithRelatedOpsItems(RelatedOpsItemsT&& value) { SetRelatedOpsItems(std::forward<RelatedOpsItemsT>(value)); return *this;}
147 template<typename RelatedOpsItemsT = RelatedOpsItem>
148 UpdateOpsItemRequest& AddRelatedOpsItems(RelatedOpsItemsT&& value) { m_relatedOpsItemsHasBeenSet = true; m_relatedOpsItems.emplace_back(std::forward<RelatedOpsItemsT>(value)); return *this; }
150
152
158 inline OpsItemStatus GetStatus() const { return m_status; }
159 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
160 inline void SetStatus(OpsItemStatus value) { m_statusHasBeenSet = true; m_status = value; }
161 inline UpdateOpsItemRequest& WithStatus(OpsItemStatus value) { SetStatus(value); return *this;}
163
165
168 inline const Aws::String& GetOpsItemId() const { return m_opsItemId; }
169 inline bool OpsItemIdHasBeenSet() const { return m_opsItemIdHasBeenSet; }
170 template<typename OpsItemIdT = Aws::String>
171 void SetOpsItemId(OpsItemIdT&& value) { m_opsItemIdHasBeenSet = true; m_opsItemId = std::forward<OpsItemIdT>(value); }
172 template<typename OpsItemIdT = Aws::String>
173 UpdateOpsItemRequest& WithOpsItemId(OpsItemIdT&& value) { SetOpsItemId(std::forward<OpsItemIdT>(value)); return *this;}
175
177
181 inline const Aws::String& GetTitle() const { return m_title; }
182 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
183 template<typename TitleT = Aws::String>
184 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
185 template<typename TitleT = Aws::String>
186 UpdateOpsItemRequest& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
188
190
193 inline const Aws::String& GetCategory() const { return m_category; }
194 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
195 template<typename CategoryT = Aws::String>
196 void SetCategory(CategoryT&& value) { m_categoryHasBeenSet = true; m_category = std::forward<CategoryT>(value); }
197 template<typename CategoryT = Aws::String>
198 UpdateOpsItemRequest& WithCategory(CategoryT&& value) { SetCategory(std::forward<CategoryT>(value)); return *this;}
200
202
205 inline const Aws::String& GetSeverity() const { return m_severity; }
206 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
207 template<typename SeverityT = Aws::String>
208 void SetSeverity(SeverityT&& value) { m_severityHasBeenSet = true; m_severity = std::forward<SeverityT>(value); }
209 template<typename SeverityT = Aws::String>
210 UpdateOpsItemRequest& WithSeverity(SeverityT&& value) { SetSeverity(std::forward<SeverityT>(value)); return *this;}
212
214
218 inline const Aws::Utils::DateTime& GetActualStartTime() const { return m_actualStartTime; }
219 inline bool ActualStartTimeHasBeenSet() const { return m_actualStartTimeHasBeenSet; }
220 template<typename ActualStartTimeT = Aws::Utils::DateTime>
221 void SetActualStartTime(ActualStartTimeT&& value) { m_actualStartTimeHasBeenSet = true; m_actualStartTime = std::forward<ActualStartTimeT>(value); }
222 template<typename ActualStartTimeT = Aws::Utils::DateTime>
223 UpdateOpsItemRequest& WithActualStartTime(ActualStartTimeT&& value) { SetActualStartTime(std::forward<ActualStartTimeT>(value)); return *this;}
225
227
231 inline const Aws::Utils::DateTime& GetActualEndTime() const { return m_actualEndTime; }
232 inline bool ActualEndTimeHasBeenSet() const { return m_actualEndTimeHasBeenSet; }
233 template<typename ActualEndTimeT = Aws::Utils::DateTime>
234 void SetActualEndTime(ActualEndTimeT&& value) { m_actualEndTimeHasBeenSet = true; m_actualEndTime = std::forward<ActualEndTimeT>(value); }
235 template<typename ActualEndTimeT = Aws::Utils::DateTime>
236 UpdateOpsItemRequest& WithActualEndTime(ActualEndTimeT&& value) { SetActualEndTime(std::forward<ActualEndTimeT>(value)); return *this;}
238
240
245 inline const Aws::Utils::DateTime& GetPlannedStartTime() const { return m_plannedStartTime; }
246 inline bool PlannedStartTimeHasBeenSet() const { return m_plannedStartTimeHasBeenSet; }
247 template<typename PlannedStartTimeT = Aws::Utils::DateTime>
248 void SetPlannedStartTime(PlannedStartTimeT&& value) { m_plannedStartTimeHasBeenSet = true; m_plannedStartTime = std::forward<PlannedStartTimeT>(value); }
249 template<typename PlannedStartTimeT = Aws::Utils::DateTime>
250 UpdateOpsItemRequest& WithPlannedStartTime(PlannedStartTimeT&& value) { SetPlannedStartTime(std::forward<PlannedStartTimeT>(value)); return *this;}
252
254
259 inline const Aws::Utils::DateTime& GetPlannedEndTime() const { return m_plannedEndTime; }
260 inline bool PlannedEndTimeHasBeenSet() const { return m_plannedEndTimeHasBeenSet; }
261 template<typename PlannedEndTimeT = Aws::Utils::DateTime>
262 void SetPlannedEndTime(PlannedEndTimeT&& value) { m_plannedEndTimeHasBeenSet = true; m_plannedEndTime = std::forward<PlannedEndTimeT>(value); }
263 template<typename PlannedEndTimeT = Aws::Utils::DateTime>
264 UpdateOpsItemRequest& WithPlannedEndTime(PlannedEndTimeT&& value) { SetPlannedEndTime(std::forward<PlannedEndTimeT>(value)); return *this;}
266
268
271 inline const Aws::String& GetOpsItemArn() const { return m_opsItemArn; }
272 inline bool OpsItemArnHasBeenSet() const { return m_opsItemArnHasBeenSet; }
273 template<typename OpsItemArnT = Aws::String>
274 void SetOpsItemArn(OpsItemArnT&& value) { m_opsItemArnHasBeenSet = true; m_opsItemArn = std::forward<OpsItemArnT>(value); }
275 template<typename OpsItemArnT = Aws::String>
276 UpdateOpsItemRequest& WithOpsItemArn(OpsItemArnT&& value) { SetOpsItemArn(std::forward<OpsItemArnT>(value)); return *this;}
278 private:
279
280 Aws::String m_description;
281 bool m_descriptionHasBeenSet = false;
282
284 bool m_operationalDataHasBeenSet = false;
285
286 Aws::Vector<Aws::String> m_operationalDataToDelete;
287 bool m_operationalDataToDeleteHasBeenSet = false;
288
289 Aws::Vector<OpsItemNotification> m_notifications;
290 bool m_notificationsHasBeenSet = false;
291
292 int m_priority{0};
293 bool m_priorityHasBeenSet = false;
294
295 Aws::Vector<RelatedOpsItem> m_relatedOpsItems;
296 bool m_relatedOpsItemsHasBeenSet = false;
297
299 bool m_statusHasBeenSet = false;
300
301 Aws::String m_opsItemId;
302 bool m_opsItemIdHasBeenSet = false;
303
304 Aws::String m_title;
305 bool m_titleHasBeenSet = false;
306
307 Aws::String m_category;
308 bool m_categoryHasBeenSet = false;
309
310 Aws::String m_severity;
311 bool m_severityHasBeenSet = false;
312
313 Aws::Utils::DateTime m_actualStartTime{};
314 bool m_actualStartTimeHasBeenSet = false;
315
316 Aws::Utils::DateTime m_actualEndTime{};
317 bool m_actualEndTimeHasBeenSet = false;
318
319 Aws::Utils::DateTime m_plannedStartTime{};
320 bool m_plannedStartTimeHasBeenSet = false;
321
322 Aws::Utils::DateTime m_plannedEndTime{};
323 bool m_plannedEndTimeHasBeenSet = false;
324
325 Aws::String m_opsItemArn;
326 bool m_opsItemArnHasBeenSet = false;
327 };
328
329} // namespace Model
330} // namespace SSM
331} // 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