AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateNotificationRuleRequest.h
1
6#pragma once
7#include <aws/codestar-notifications/CodeStarNotifications_EXPORTS.h>
8#include <aws/codestar-notifications/CodeStarNotificationsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/codestar-notifications/model/NotificationRuleStatus.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/codestar-notifications/model/DetailType.h>
13#include <aws/codestar-notifications/model/Target.h>
14#include <utility>
15
16namespace Aws
17{
18namespace CodeStarNotifications
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_CODESTARNOTIFICATIONS_API UpdateNotificationRuleRequest() = 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 "UpdateNotificationRule"; }
35
36 AWS_CODESTARNOTIFICATIONS_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetArn() const { return m_arn; }
44 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
45 template<typename ArnT = Aws::String>
46 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
47 template<typename ArnT = Aws::String>
48 UpdateNotificationRuleRequest& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
50
52
55 inline const Aws::String& GetName() const { return m_name; }
56 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
57 template<typename NameT = Aws::String>
58 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
59 template<typename NameT = Aws::String>
60 UpdateNotificationRuleRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
62
64
68 inline NotificationRuleStatus GetStatus() const { return m_status; }
69 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
70 inline void SetStatus(NotificationRuleStatus value) { m_statusHasBeenSet = true; m_status = value; }
73
75
81 inline const Aws::Vector<Aws::String>& GetEventTypeIds() const { return m_eventTypeIds; }
82 inline bool EventTypeIdsHasBeenSet() const { return m_eventTypeIdsHasBeenSet; }
83 template<typename EventTypeIdsT = Aws::Vector<Aws::String>>
84 void SetEventTypeIds(EventTypeIdsT&& value) { m_eventTypeIdsHasBeenSet = true; m_eventTypeIds = std::forward<EventTypeIdsT>(value); }
85 template<typename EventTypeIdsT = Aws::Vector<Aws::String>>
86 UpdateNotificationRuleRequest& WithEventTypeIds(EventTypeIdsT&& value) { SetEventTypeIds(std::forward<EventTypeIdsT>(value)); return *this;}
87 template<typename EventTypeIdsT = Aws::String>
88 UpdateNotificationRuleRequest& AddEventTypeIds(EventTypeIdsT&& value) { m_eventTypeIdsHasBeenSet = true; m_eventTypeIds.emplace_back(std::forward<EventTypeIdsT>(value)); return *this; }
90
92
96 inline const Aws::Vector<Target>& GetTargets() const { return m_targets; }
97 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
98 template<typename TargetsT = Aws::Vector<Target>>
99 void SetTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets = std::forward<TargetsT>(value); }
100 template<typename TargetsT = Aws::Vector<Target>>
101 UpdateNotificationRuleRequest& WithTargets(TargetsT&& value) { SetTargets(std::forward<TargetsT>(value)); return *this;}
102 template<typename TargetsT = Target>
103 UpdateNotificationRuleRequest& AddTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets.emplace_back(std::forward<TargetsT>(value)); return *this; }
105
107
114 inline DetailType GetDetailType() const { return m_detailType; }
115 inline bool DetailTypeHasBeenSet() const { return m_detailTypeHasBeenSet; }
116 inline void SetDetailType(DetailType value) { m_detailTypeHasBeenSet = true; m_detailType = value; }
119 private:
120
121 Aws::String m_arn;
122 bool m_arnHasBeenSet = false;
123
124 Aws::String m_name;
125 bool m_nameHasBeenSet = false;
126
128 bool m_statusHasBeenSet = false;
129
130 Aws::Vector<Aws::String> m_eventTypeIds;
131 bool m_eventTypeIdsHasBeenSet = false;
132
133 Aws::Vector<Target> m_targets;
134 bool m_targetsHasBeenSet = false;
135
136 DetailType m_detailType{DetailType::NOT_SET};
137 bool m_detailTypeHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace CodeStarNotifications
142} // namespace Aws
UpdateNotificationRuleRequest & WithEventTypeIds(EventTypeIdsT &&value)
AWS_CODESTARNOTIFICATIONS_API UpdateNotificationRuleRequest()=default
UpdateNotificationRuleRequest & AddEventTypeIds(EventTypeIdsT &&value)
AWS_CODESTARNOTIFICATIONS_API Aws::String SerializePayload() const override
UpdateNotificationRuleRequest & WithStatus(NotificationRuleStatus value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector