AWS SDK for C++  1.8.71
AWS SDK for C++
UpdateOpsItemRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ssm/SSM_EXPORTS.h>
8 #include <aws/ssm/SSMRequest.h>
16 #include <utility>
17 
18 namespace Aws
19 {
20 namespace SSM
21 {
22 namespace Model
23 {
24 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "UpdateOpsItem"; }
37 
38  Aws::String SerializePayload() const override;
39 
40  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
41 
42 
47  inline const Aws::String& GetDescription() const{ return m_description; }
48 
53  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
54 
59  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
60 
65  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
66 
71  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
72 
77  inline UpdateOpsItemRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
78 
83  inline UpdateOpsItemRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
84 
89  inline UpdateOpsItemRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
90 
91 
114  inline const Aws::Map<Aws::String, OpsItemDataValue>& GetOperationalData() const{ return m_operationalData; }
115 
138  inline bool OperationalDataHasBeenSet() const { return m_operationalDataHasBeenSet; }
139 
162  inline void SetOperationalData(const Aws::Map<Aws::String, OpsItemDataValue>& value) { m_operationalDataHasBeenSet = true; m_operationalData = value; }
163 
186  inline void SetOperationalData(Aws::Map<Aws::String, OpsItemDataValue>&& value) { m_operationalDataHasBeenSet = true; m_operationalData = std::move(value); }
187 
210  inline UpdateOpsItemRequest& WithOperationalData(const Aws::Map<Aws::String, OpsItemDataValue>& value) { SetOperationalData(value); return *this;}
211 
234  inline UpdateOpsItemRequest& WithOperationalData(Aws::Map<Aws::String, OpsItemDataValue>&& value) { SetOperationalData(std::move(value)); return *this;}
235 
258  inline UpdateOpsItemRequest& AddOperationalData(const Aws::String& key, const OpsItemDataValue& value) { m_operationalDataHasBeenSet = true; m_operationalData.emplace(key, value); return *this; }
259 
282  inline UpdateOpsItemRequest& AddOperationalData(Aws::String&& key, const OpsItemDataValue& value) { m_operationalDataHasBeenSet = true; m_operationalData.emplace(std::move(key), value); return *this; }
283 
306  inline UpdateOpsItemRequest& AddOperationalData(const Aws::String& key, OpsItemDataValue&& value) { m_operationalDataHasBeenSet = true; m_operationalData.emplace(key, std::move(value)); return *this; }
307 
330  inline UpdateOpsItemRequest& AddOperationalData(Aws::String&& key, OpsItemDataValue&& value) { m_operationalDataHasBeenSet = true; m_operationalData.emplace(std::move(key), std::move(value)); return *this; }
331 
354  inline UpdateOpsItemRequest& AddOperationalData(const char* key, OpsItemDataValue&& value) { m_operationalDataHasBeenSet = true; m_operationalData.emplace(key, std::move(value)); return *this; }
355 
378  inline UpdateOpsItemRequest& AddOperationalData(const char* key, const OpsItemDataValue& value) { m_operationalDataHasBeenSet = true; m_operationalData.emplace(key, value); return *this; }
379 
380 
384  inline const Aws::Vector<Aws::String>& GetOperationalDataToDelete() const{ return m_operationalDataToDelete; }
385 
389  inline bool OperationalDataToDeleteHasBeenSet() const { return m_operationalDataToDeleteHasBeenSet; }
390 
394  inline void SetOperationalDataToDelete(const Aws::Vector<Aws::String>& value) { m_operationalDataToDeleteHasBeenSet = true; m_operationalDataToDelete = value; }
395 
399  inline void SetOperationalDataToDelete(Aws::Vector<Aws::String>&& value) { m_operationalDataToDeleteHasBeenSet = true; m_operationalDataToDelete = std::move(value); }
400 
404  inline UpdateOpsItemRequest& WithOperationalDataToDelete(const Aws::Vector<Aws::String>& value) { SetOperationalDataToDelete(value); return *this;}
405 
409  inline UpdateOpsItemRequest& WithOperationalDataToDelete(Aws::Vector<Aws::String>&& value) { SetOperationalDataToDelete(std::move(value)); return *this;}
410 
414  inline UpdateOpsItemRequest& AddOperationalDataToDelete(const Aws::String& value) { m_operationalDataToDeleteHasBeenSet = true; m_operationalDataToDelete.push_back(value); return *this; }
415 
419  inline UpdateOpsItemRequest& AddOperationalDataToDelete(Aws::String&& value) { m_operationalDataToDeleteHasBeenSet = true; m_operationalDataToDelete.push_back(std::move(value)); return *this; }
420 
424  inline UpdateOpsItemRequest& AddOperationalDataToDelete(const char* value) { m_operationalDataToDeleteHasBeenSet = true; m_operationalDataToDelete.push_back(value); return *this; }
425 
426 
431  inline const Aws::Vector<OpsItemNotification>& GetNotifications() const{ return m_notifications; }
432 
437  inline bool NotificationsHasBeenSet() const { return m_notificationsHasBeenSet; }
438 
443  inline void SetNotifications(const Aws::Vector<OpsItemNotification>& value) { m_notificationsHasBeenSet = true; m_notifications = value; }
444 
449  inline void SetNotifications(Aws::Vector<OpsItemNotification>&& value) { m_notificationsHasBeenSet = true; m_notifications = std::move(value); }
450 
455  inline UpdateOpsItemRequest& WithNotifications(const Aws::Vector<OpsItemNotification>& value) { SetNotifications(value); return *this;}
456 
461  inline UpdateOpsItemRequest& WithNotifications(Aws::Vector<OpsItemNotification>&& value) { SetNotifications(std::move(value)); return *this;}
462 
467  inline UpdateOpsItemRequest& AddNotifications(const OpsItemNotification& value) { m_notificationsHasBeenSet = true; m_notifications.push_back(value); return *this; }
468 
473  inline UpdateOpsItemRequest& AddNotifications(OpsItemNotification&& value) { m_notificationsHasBeenSet = true; m_notifications.push_back(std::move(value)); return *this; }
474 
475 
480  inline int GetPriority() const{ return m_priority; }
481 
486  inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
487 
492  inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
493 
498  inline UpdateOpsItemRequest& WithPriority(int value) { SetPriority(value); return *this;}
499 
500 
506  inline const Aws::Vector<RelatedOpsItem>& GetRelatedOpsItems() const{ return m_relatedOpsItems; }
507 
513  inline bool RelatedOpsItemsHasBeenSet() const { return m_relatedOpsItemsHasBeenSet; }
514 
520  inline void SetRelatedOpsItems(const Aws::Vector<RelatedOpsItem>& value) { m_relatedOpsItemsHasBeenSet = true; m_relatedOpsItems = value; }
521 
527  inline void SetRelatedOpsItems(Aws::Vector<RelatedOpsItem>&& value) { m_relatedOpsItemsHasBeenSet = true; m_relatedOpsItems = std::move(value); }
528 
534  inline UpdateOpsItemRequest& WithRelatedOpsItems(const Aws::Vector<RelatedOpsItem>& value) { SetRelatedOpsItems(value); return *this;}
535 
541  inline UpdateOpsItemRequest& WithRelatedOpsItems(Aws::Vector<RelatedOpsItem>&& value) { SetRelatedOpsItems(std::move(value)); return *this;}
542 
548  inline UpdateOpsItemRequest& AddRelatedOpsItems(const RelatedOpsItem& value) { m_relatedOpsItemsHasBeenSet = true; m_relatedOpsItems.push_back(value); return *this; }
549 
555  inline UpdateOpsItemRequest& AddRelatedOpsItems(RelatedOpsItem&& value) { m_relatedOpsItemsHasBeenSet = true; m_relatedOpsItems.push_back(std::move(value)); return *this; }
556 
557 
564  inline const OpsItemStatus& GetStatus() const{ return m_status; }
565 
572  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
573 
580  inline void SetStatus(const OpsItemStatus& value) { m_statusHasBeenSet = true; m_status = value; }
581 
588  inline void SetStatus(OpsItemStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
589 
596  inline UpdateOpsItemRequest& WithStatus(const OpsItemStatus& value) { SetStatus(value); return *this;}
597 
604  inline UpdateOpsItemRequest& WithStatus(OpsItemStatus&& value) { SetStatus(std::move(value)); return *this;}
605 
606 
610  inline const Aws::String& GetOpsItemId() const{ return m_opsItemId; }
611 
615  inline bool OpsItemIdHasBeenSet() const { return m_opsItemIdHasBeenSet; }
616 
620  inline void SetOpsItemId(const Aws::String& value) { m_opsItemIdHasBeenSet = true; m_opsItemId = value; }
621 
625  inline void SetOpsItemId(Aws::String&& value) { m_opsItemIdHasBeenSet = true; m_opsItemId = std::move(value); }
626 
630  inline void SetOpsItemId(const char* value) { m_opsItemIdHasBeenSet = true; m_opsItemId.assign(value); }
631 
635  inline UpdateOpsItemRequest& WithOpsItemId(const Aws::String& value) { SetOpsItemId(value); return *this;}
636 
640  inline UpdateOpsItemRequest& WithOpsItemId(Aws::String&& value) { SetOpsItemId(std::move(value)); return *this;}
641 
645  inline UpdateOpsItemRequest& WithOpsItemId(const char* value) { SetOpsItemId(value); return *this;}
646 
647 
652  inline const Aws::String& GetTitle() const{ return m_title; }
653 
658  inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
659 
664  inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
665 
670  inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
671 
676  inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
677 
682  inline UpdateOpsItemRequest& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
683 
688  inline UpdateOpsItemRequest& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
689 
694  inline UpdateOpsItemRequest& WithTitle(const char* value) { SetTitle(value); return *this;}
695 
696 
700  inline const Aws::String& GetCategory() const{ return m_category; }
701 
705  inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
706 
710  inline void SetCategory(const Aws::String& value) { m_categoryHasBeenSet = true; m_category = value; }
711 
715  inline void SetCategory(Aws::String&& value) { m_categoryHasBeenSet = true; m_category = std::move(value); }
716 
720  inline void SetCategory(const char* value) { m_categoryHasBeenSet = true; m_category.assign(value); }
721 
725  inline UpdateOpsItemRequest& WithCategory(const Aws::String& value) { SetCategory(value); return *this;}
726 
730  inline UpdateOpsItemRequest& WithCategory(Aws::String&& value) { SetCategory(std::move(value)); return *this;}
731 
735  inline UpdateOpsItemRequest& WithCategory(const char* value) { SetCategory(value); return *this;}
736 
737 
741  inline const Aws::String& GetSeverity() const{ return m_severity; }
742 
746  inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
747 
751  inline void SetSeverity(const Aws::String& value) { m_severityHasBeenSet = true; m_severity = value; }
752 
756  inline void SetSeverity(Aws::String&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
757 
761  inline void SetSeverity(const char* value) { m_severityHasBeenSet = true; m_severity.assign(value); }
762 
766  inline UpdateOpsItemRequest& WithSeverity(const Aws::String& value) { SetSeverity(value); return *this;}
767 
771  inline UpdateOpsItemRequest& WithSeverity(Aws::String&& value) { SetSeverity(std::move(value)); return *this;}
772 
776  inline UpdateOpsItemRequest& WithSeverity(const char* value) { SetSeverity(value); return *this;}
777 
778  private:
779 
780  Aws::String m_description;
781  bool m_descriptionHasBeenSet;
782 
783  Aws::Map<Aws::String, OpsItemDataValue> m_operationalData;
784  bool m_operationalDataHasBeenSet;
785 
786  Aws::Vector<Aws::String> m_operationalDataToDelete;
787  bool m_operationalDataToDeleteHasBeenSet;
788 
789  Aws::Vector<OpsItemNotification> m_notifications;
790  bool m_notificationsHasBeenSet;
791 
792  int m_priority;
793  bool m_priorityHasBeenSet;
794 
795  Aws::Vector<RelatedOpsItem> m_relatedOpsItems;
796  bool m_relatedOpsItemsHasBeenSet;
797 
798  OpsItemStatus m_status;
799  bool m_statusHasBeenSet;
800 
801  Aws::String m_opsItemId;
802  bool m_opsItemIdHasBeenSet;
803 
804  Aws::String m_title;
805  bool m_titleHasBeenSet;
806 
807  Aws::String m_category;
808  bool m_categoryHasBeenSet;
809 
810  Aws::String m_severity;
811  bool m_severityHasBeenSet;
812  };
813 
814 } // namespace Model
815 } // namespace SSM
816 } // namespace Aws
void SetOpsItemId(const Aws::String &value)
UpdateOpsItemRequest & AddOperationalDataToDelete(const Aws::String &value)
UpdateOpsItemRequest & AddOperationalData(const Aws::String &key, OpsItemDataValue &&value)
UpdateOpsItemRequest & AddOperationalDataToDelete(const char *value)
void SetOperationalDataToDelete(const Aws::Vector< Aws::String > &value)
virtual const char * GetServiceRequestName() const override
UpdateOpsItemRequest & AddOperationalData(Aws::String &&key, const OpsItemDataValue &value)
UpdateOpsItemRequest & WithDescription(const char *value)
UpdateOpsItemRequest & AddOperationalData(const char *key, const OpsItemDataValue &value)
UpdateOpsItemRequest & AddRelatedOpsItems(RelatedOpsItem &&value)
UpdateOpsItemRequest & WithSeverity(Aws::String &&value)
void SetNotifications(const Aws::Vector< OpsItemNotification > &value)
void SetRelatedOpsItems(Aws::Vector< RelatedOpsItem > &&value)
const Aws::String & GetOpsItemId() const
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
const Aws::Vector< Aws::String > & GetOperationalDataToDelete() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
UpdateOpsItemRequest & WithPriority(int value)
const OpsItemStatus & GetStatus() const
void SetTitle(const Aws::String &value)
UpdateOpsItemRequest & WithOperationalDataToDelete(Aws::Vector< Aws::String > &&value)
void SetOperationalDataToDelete(Aws::Vector< Aws::String > &&value)
const Aws::String & GetCategory() const
const Aws::Vector< OpsItemNotification > & GetNotifications() const
UpdateOpsItemRequest & WithNotifications(const Aws::Vector< OpsItemNotification > &value)
UpdateOpsItemRequest & AddOperationalData(const char *key, OpsItemDataValue &&value)
void SetDescription(Aws::String &&value)
UpdateOpsItemRequest & WithTitle(const Aws::String &value)
UpdateOpsItemRequest & WithDescription(const Aws::String &value)
UpdateOpsItemRequest & WithOpsItemId(Aws::String &&value)
UpdateOpsItemRequest & WithCategory(const Aws::String &value)
UpdateOpsItemRequest & WithRelatedOpsItems(const Aws::Vector< RelatedOpsItem > &value)
UpdateOpsItemRequest & WithSeverity(const char *value)
UpdateOpsItemRequest & AddOperationalData(Aws::String &&key, OpsItemDataValue &&value)
UpdateOpsItemRequest & WithOpsItemId(const char *value)
UpdateOpsItemRequest & WithOpsItemId(const Aws::String &value)
UpdateOpsItemRequest & WithTitle(Aws::String &&value)
void SetOperationalData(Aws::Map< Aws::String, OpsItemDataValue > &&value)
UpdateOpsItemRequest & WithOperationalData(const Aws::Map< Aws::String, OpsItemDataValue > &value)
void SetSeverity(const Aws::String &value)
UpdateOpsItemRequest & WithStatus(OpsItemStatus &&value)
UpdateOpsItemRequest & WithDescription(Aws::String &&value)
UpdateOpsItemRequest & WithStatus(const OpsItemStatus &value)
void SetCategory(const Aws::String &value)
const Aws::Map< Aws::String, OpsItemDataValue > & GetOperationalData() const
void SetDescription(const Aws::String &value)
const Aws::String & GetSeverity() const
void SetRelatedOpsItems(const Aws::Vector< RelatedOpsItem > &value)
UpdateOpsItemRequest & WithCategory(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UpdateOpsItemRequest & AddRelatedOpsItems(const RelatedOpsItem &value)
UpdateOpsItemRequest & AddNotifications(const OpsItemNotification &value)
UpdateOpsItemRequest & WithOperationalDataToDelete(const Aws::Vector< Aws::String > &value)
UpdateOpsItemRequest & WithNotifications(Aws::Vector< OpsItemNotification > &&value)
UpdateOpsItemRequest & WithCategory(const char *value)
UpdateOpsItemRequest & WithOperationalData(Aws::Map< Aws::String, OpsItemDataValue > &&value)
const Aws::Vector< RelatedOpsItem > & GetRelatedOpsItems() const
UpdateOpsItemRequest & WithSeverity(const Aws::String &value)
const Aws::String & GetDescription() const
#define AWS_SSM_API
Definition: SSM_EXPORTS.h:28
void SetStatus(const OpsItemStatus &value)
void SetOperationalData(const Aws::Map< Aws::String, OpsItemDataValue > &value)
UpdateOpsItemRequest & AddOperationalDataToDelete(Aws::String &&value)
UpdateOpsItemRequest & AddNotifications(OpsItemNotification &&value)
UpdateOpsItemRequest & AddOperationalData(const Aws::String &key, const OpsItemDataValue &value)
UpdateOpsItemRequest & WithRelatedOpsItems(Aws::Vector< RelatedOpsItem > &&value)
UpdateOpsItemRequest & WithTitle(const char *value)
void SetNotifications(Aws::Vector< OpsItemNotification > &&value)