AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateOpsItemRequest.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/RelatedOpsItem.h>
16#include <aws/ssm/model/Tag.h>
17
18#include <utility>
19
20namespace Aws {
21namespace SSM {
22namespace Model {
23
27 public:
28 AWS_SSM_API CreateOpsItemRequest() = 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 "CreateOpsItem"; }
35
36 AWS_SSM_API Aws::String SerializePayload() const override;
37
39
41
46 inline const Aws::String& GetDescription() const { return m_description; }
47 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
48 template <typename DescriptionT = Aws::String>
49 void SetDescription(DescriptionT&& value) {
50 m_descriptionHasBeenSet = true;
51 m_description = std::forward<DescriptionT>(value);
52 }
53 template <typename DescriptionT = Aws::String>
54 CreateOpsItemRequest& WithDescription(DescriptionT&& value) {
55 SetDescription(std::forward<DescriptionT>(value));
56 return *this;
57 }
59
61
77 inline const Aws::String& GetOpsItemType() const { return m_opsItemType; }
78 inline bool OpsItemTypeHasBeenSet() const { return m_opsItemTypeHasBeenSet; }
79 template <typename OpsItemTypeT = Aws::String>
80 void SetOpsItemType(OpsItemTypeT&& value) {
81 m_opsItemTypeHasBeenSet = true;
82 m_opsItemType = std::forward<OpsItemTypeT>(value);
83 }
84 template <typename OpsItemTypeT = Aws::String>
85 CreateOpsItemRequest& WithOpsItemType(OpsItemTypeT&& value) {
86 SetOpsItemType(std::forward<OpsItemTypeT>(value));
87 return *this;
88 }
90
92
115 inline const Aws::Map<Aws::String, OpsItemDataValue>& GetOperationalData() const { return m_operationalData; }
116 inline bool OperationalDataHasBeenSet() const { return m_operationalDataHasBeenSet; }
117 template <typename OperationalDataT = Aws::Map<Aws::String, OpsItemDataValue>>
118 void SetOperationalData(OperationalDataT&& value) {
119 m_operationalDataHasBeenSet = true;
120 m_operationalData = std::forward<OperationalDataT>(value);
121 }
122 template <typename OperationalDataT = Aws::Map<Aws::String, OpsItemDataValue>>
123 CreateOpsItemRequest& WithOperationalData(OperationalDataT&& value) {
124 SetOperationalData(std::forward<OperationalDataT>(value));
125 return *this;
126 }
127 template <typename OperationalDataKeyT = Aws::String, typename OperationalDataValueT = OpsItemDataValue>
128 CreateOpsItemRequest& AddOperationalData(OperationalDataKeyT&& key, OperationalDataValueT&& value) {
129 m_operationalDataHasBeenSet = true;
130 m_operationalData.emplace(std::forward<OperationalDataKeyT>(key), std::forward<OperationalDataValueT>(value));
131 return *this;
132 }
134
136
140 inline const Aws::Vector<OpsItemNotification>& GetNotifications() const { return m_notifications; }
141 inline bool NotificationsHasBeenSet() const { return m_notificationsHasBeenSet; }
142 template <typename NotificationsT = Aws::Vector<OpsItemNotification>>
143 void SetNotifications(NotificationsT&& value) {
144 m_notificationsHasBeenSet = true;
145 m_notifications = std::forward<NotificationsT>(value);
146 }
147 template <typename NotificationsT = Aws::Vector<OpsItemNotification>>
148 CreateOpsItemRequest& WithNotifications(NotificationsT&& value) {
149 SetNotifications(std::forward<NotificationsT>(value));
150 return *this;
151 }
152 template <typename NotificationsT = OpsItemNotification>
153 CreateOpsItemRequest& AddNotifications(NotificationsT&& value) {
154 m_notificationsHasBeenSet = true;
155 m_notifications.emplace_back(std::forward<NotificationsT>(value));
156 return *this;
157 }
159
161
165 inline int GetPriority() const { return m_priority; }
166 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
167 inline void SetPriority(int value) {
168 m_priorityHasBeenSet = true;
169 m_priority = value;
170 }
172 SetPriority(value);
173 return *this;
174 }
176
178
183 inline const Aws::Vector<RelatedOpsItem>& GetRelatedOpsItems() const { return m_relatedOpsItems; }
184 inline bool RelatedOpsItemsHasBeenSet() const { return m_relatedOpsItemsHasBeenSet; }
185 template <typename RelatedOpsItemsT = Aws::Vector<RelatedOpsItem>>
186 void SetRelatedOpsItems(RelatedOpsItemsT&& value) {
187 m_relatedOpsItemsHasBeenSet = true;
188 m_relatedOpsItems = std::forward<RelatedOpsItemsT>(value);
189 }
190 template <typename RelatedOpsItemsT = Aws::Vector<RelatedOpsItem>>
191 CreateOpsItemRequest& WithRelatedOpsItems(RelatedOpsItemsT&& value) {
192 SetRelatedOpsItems(std::forward<RelatedOpsItemsT>(value));
193 return *this;
194 }
195 template <typename RelatedOpsItemsT = RelatedOpsItem>
196 CreateOpsItemRequest& AddRelatedOpsItems(RelatedOpsItemsT&& value) {
197 m_relatedOpsItemsHasBeenSet = true;
198 m_relatedOpsItems.emplace_back(std::forward<RelatedOpsItemsT>(value));
199 return *this;
200 }
202
204
209 inline const Aws::String& GetSource() const { return m_source; }
210 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
211 template <typename SourceT = Aws::String>
212 void SetSource(SourceT&& value) {
213 m_sourceHasBeenSet = true;
214 m_source = std::forward<SourceT>(value);
215 }
216 template <typename SourceT = Aws::String>
218 SetSource(std::forward<SourceT>(value));
219 return *this;
220 }
222
224
228 inline const Aws::String& GetTitle() const { return m_title; }
229 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
230 template <typename TitleT = Aws::String>
231 void SetTitle(TitleT&& value) {
232 m_titleHasBeenSet = true;
233 m_title = std::forward<TitleT>(value);
234 }
235 template <typename TitleT = Aws::String>
237 SetTitle(std::forward<TitleT>(value));
238 return *this;
239 }
241
243
251 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
252 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
253 template <typename TagsT = Aws::Vector<Tag>>
254 void SetTags(TagsT&& value) {
255 m_tagsHasBeenSet = true;
256 m_tags = std::forward<TagsT>(value);
257 }
258 template <typename TagsT = Aws::Vector<Tag>>
260 SetTags(std::forward<TagsT>(value));
261 return *this;
262 }
263 template <typename TagsT = Tag>
265 m_tagsHasBeenSet = true;
266 m_tags.emplace_back(std::forward<TagsT>(value));
267 return *this;
268 }
270
272
275 inline const Aws::String& GetCategory() const { return m_category; }
276 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
277 template <typename CategoryT = Aws::String>
278 void SetCategory(CategoryT&& value) {
279 m_categoryHasBeenSet = true;
280 m_category = std::forward<CategoryT>(value);
281 }
282 template <typename CategoryT = Aws::String>
283 CreateOpsItemRequest& WithCategory(CategoryT&& value) {
284 SetCategory(std::forward<CategoryT>(value));
285 return *this;
286 }
288
290
293 inline const Aws::String& GetSeverity() const { return m_severity; }
294 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
295 template <typename SeverityT = Aws::String>
296 void SetSeverity(SeverityT&& value) {
297 m_severityHasBeenSet = true;
298 m_severity = std::forward<SeverityT>(value);
299 }
300 template <typename SeverityT = Aws::String>
301 CreateOpsItemRequest& WithSeverity(SeverityT&& value) {
302 SetSeverity(std::forward<SeverityT>(value));
303 return *this;
304 }
306
308
312 inline const Aws::Utils::DateTime& GetActualStartTime() const { return m_actualStartTime; }
313 inline bool ActualStartTimeHasBeenSet() const { return m_actualStartTimeHasBeenSet; }
314 template <typename ActualStartTimeT = Aws::Utils::DateTime>
315 void SetActualStartTime(ActualStartTimeT&& value) {
316 m_actualStartTimeHasBeenSet = true;
317 m_actualStartTime = std::forward<ActualStartTimeT>(value);
318 }
319 template <typename ActualStartTimeT = Aws::Utils::DateTime>
320 CreateOpsItemRequest& WithActualStartTime(ActualStartTimeT&& value) {
321 SetActualStartTime(std::forward<ActualStartTimeT>(value));
322 return *this;
323 }
325
327
331 inline const Aws::Utils::DateTime& GetActualEndTime() const { return m_actualEndTime; }
332 inline bool ActualEndTimeHasBeenSet() const { return m_actualEndTimeHasBeenSet; }
333 template <typename ActualEndTimeT = Aws::Utils::DateTime>
334 void SetActualEndTime(ActualEndTimeT&& value) {
335 m_actualEndTimeHasBeenSet = true;
336 m_actualEndTime = std::forward<ActualEndTimeT>(value);
337 }
338 template <typename ActualEndTimeT = Aws::Utils::DateTime>
339 CreateOpsItemRequest& WithActualEndTime(ActualEndTimeT&& value) {
340 SetActualEndTime(std::forward<ActualEndTimeT>(value));
341 return *this;
342 }
344
346
351 inline const Aws::Utils::DateTime& GetPlannedStartTime() const { return m_plannedStartTime; }
352 inline bool PlannedStartTimeHasBeenSet() const { return m_plannedStartTimeHasBeenSet; }
353 template <typename PlannedStartTimeT = Aws::Utils::DateTime>
354 void SetPlannedStartTime(PlannedStartTimeT&& value) {
355 m_plannedStartTimeHasBeenSet = true;
356 m_plannedStartTime = std::forward<PlannedStartTimeT>(value);
357 }
358 template <typename PlannedStartTimeT = Aws::Utils::DateTime>
359 CreateOpsItemRequest& WithPlannedStartTime(PlannedStartTimeT&& value) {
360 SetPlannedStartTime(std::forward<PlannedStartTimeT>(value));
361 return *this;
362 }
364
366
371 inline const Aws::Utils::DateTime& GetPlannedEndTime() const { return m_plannedEndTime; }
372 inline bool PlannedEndTimeHasBeenSet() const { return m_plannedEndTimeHasBeenSet; }
373 template <typename PlannedEndTimeT = Aws::Utils::DateTime>
374 void SetPlannedEndTime(PlannedEndTimeT&& value) {
375 m_plannedEndTimeHasBeenSet = true;
376 m_plannedEndTime = std::forward<PlannedEndTimeT>(value);
377 }
378 template <typename PlannedEndTimeT = Aws::Utils::DateTime>
379 CreateOpsItemRequest& WithPlannedEndTime(PlannedEndTimeT&& value) {
380 SetPlannedEndTime(std::forward<PlannedEndTimeT>(value));
381 return *this;
382 }
384
386
394 inline const Aws::String& GetAccountId() const { return m_accountId; }
395 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
396 template <typename AccountIdT = Aws::String>
397 void SetAccountId(AccountIdT&& value) {
398 m_accountIdHasBeenSet = true;
399 m_accountId = std::forward<AccountIdT>(value);
400 }
401 template <typename AccountIdT = Aws::String>
402 CreateOpsItemRequest& WithAccountId(AccountIdT&& value) {
403 SetAccountId(std::forward<AccountIdT>(value));
404 return *this;
405 }
407 private:
408 Aws::String m_description;
409
410 Aws::String m_opsItemType;
411
413
414 Aws::Vector<OpsItemNotification> m_notifications;
415
416 int m_priority{0};
417
418 Aws::Vector<RelatedOpsItem> m_relatedOpsItems;
419
420 Aws::String m_source;
421
422 Aws::String m_title;
423
424 Aws::Vector<Tag> m_tags;
425
426 Aws::String m_category;
427
428 Aws::String m_severity;
429
430 Aws::Utils::DateTime m_actualStartTime{};
431
432 Aws::Utils::DateTime m_actualEndTime{};
433
434 Aws::Utils::DateTime m_plannedStartTime{};
435
436 Aws::Utils::DateTime m_plannedEndTime{};
437
438 Aws::String m_accountId;
439 bool m_descriptionHasBeenSet = false;
440 bool m_opsItemTypeHasBeenSet = false;
441 bool m_operationalDataHasBeenSet = false;
442 bool m_notificationsHasBeenSet = false;
443 bool m_priorityHasBeenSet = false;
444 bool m_relatedOpsItemsHasBeenSet = false;
445 bool m_sourceHasBeenSet = false;
446 bool m_titleHasBeenSet = false;
447 bool m_tagsHasBeenSet = false;
448 bool m_categoryHasBeenSet = false;
449 bool m_severityHasBeenSet = false;
450 bool m_actualStartTimeHasBeenSet = false;
451 bool m_actualEndTimeHasBeenSet = false;
452 bool m_plannedStartTimeHasBeenSet = false;
453 bool m_plannedEndTimeHasBeenSet = false;
454 bool m_accountIdHasBeenSet = false;
455};
456
457} // namespace Model
458} // namespace SSM
459} // namespace Aws
CreateOpsItemRequest & WithActualStartTime(ActualStartTimeT &&value)
CreateOpsItemRequest & WithTags(TagsT &&value)
CreateOpsItemRequest & AddTags(TagsT &&value)
const Aws::Map< Aws::String, OpsItemDataValue > & GetOperationalData() const
void SetDescription(DescriptionT &&value)
CreateOpsItemRequest & WithOperationalData(OperationalDataT &&value)
AWS_SSM_API CreateOpsItemRequest()=default
CreateOpsItemRequest & AddOperationalData(OperationalDataKeyT &&key, OperationalDataValueT &&value)
const Aws::Vector< OpsItemNotification > & GetNotifications() const
void SetOpsItemType(OpsItemTypeT &&value)
CreateOpsItemRequest & WithSource(SourceT &&value)
const Aws::Vector< RelatedOpsItem > & GetRelatedOpsItems() const
const Aws::Utils::DateTime & GetPlannedStartTime() const
AWS_SSM_API Aws::String SerializePayload() const override
const Aws::Utils::DateTime & GetActualStartTime() const
const Aws::Utils::DateTime & GetActualEndTime() const
CreateOpsItemRequest & WithRelatedOpsItems(RelatedOpsItemsT &&value)
const Aws::String & GetOpsItemType() const
CreateOpsItemRequest & WithSeverity(SeverityT &&value)
CreateOpsItemRequest & WithOpsItemType(OpsItemTypeT &&value)
CreateOpsItemRequest & WithActualEndTime(ActualEndTimeT &&value)
CreateOpsItemRequest & WithPriority(int value)
CreateOpsItemRequest & WithPlannedStartTime(PlannedStartTimeT &&value)
const Aws::String & GetDescription() const
const Aws::Vector< Tag > & GetTags() const
void SetRelatedOpsItems(RelatedOpsItemsT &&value)
void SetActualStartTime(ActualStartTimeT &&value)
CreateOpsItemRequest & WithNotifications(NotificationsT &&value)
void SetOperationalData(OperationalDataT &&value)
void SetNotifications(NotificationsT &&value)
CreateOpsItemRequest & WithCategory(CategoryT &&value)
void SetPlannedStartTime(PlannedStartTimeT &&value)
virtual const char * GetServiceRequestName() const override
CreateOpsItemRequest & WithAccountId(AccountIdT &&value)
void SetActualEndTime(ActualEndTimeT &&value)
CreateOpsItemRequest & WithDescription(DescriptionT &&value)
void SetPlannedEndTime(PlannedEndTimeT &&value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateOpsItemRequest & AddNotifications(NotificationsT &&value)
CreateOpsItemRequest & AddRelatedOpsItems(RelatedOpsItemsT &&value)
CreateOpsItemRequest & WithPlannedEndTime(PlannedEndTimeT &&value)
const Aws::Utils::DateTime & GetPlannedEndTime() const
CreateOpsItemRequest & WithTitle(TitleT &&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