AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
UpdateNotificationRuleRequest.h
1
6#pragma once
7#include <aws/codestar-notifications/CodeStarNotificationsRequest.h>
8#include <aws/codestar-notifications/CodeStarNotifications_EXPORTS.h>
9#include <aws/codestar-notifications/model/DetailType.h>
10#include <aws/codestar-notifications/model/NotificationRuleStatus.h>
11#include <aws/codestar-notifications/model/Target.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace CodeStarNotifications {
19namespace Model {
20
24 public:
25 AWS_CODESTARNOTIFICATIONS_API UpdateNotificationRuleRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateNotificationRule"; }
32
33 AWS_CODESTARNOTIFICATIONS_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetArn() const { return m_arn; }
40 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
41 template <typename ArnT = Aws::String>
42 void SetArn(ArnT&& value) {
43 m_arnHasBeenSet = true;
44 m_arn = std::forward<ArnT>(value);
45 }
46 template <typename ArnT = Aws::String>
48 SetArn(std::forward<ArnT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template <typename NameT = Aws::String>
60 void SetName(NameT&& value) {
61 m_nameHasBeenSet = true;
62 m_name = std::forward<NameT>(value);
63 }
64 template <typename NameT = Aws::String>
66 SetName(std::forward<NameT>(value));
67 return *this;
68 }
70
72
76 inline NotificationRuleStatus GetStatus() const { return m_status; }
77 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
78 inline void SetStatus(NotificationRuleStatus value) {
79 m_statusHasBeenSet = true;
80 m_status = value;
81 }
83 SetStatus(value);
84 return *this;
85 }
87
89
95 inline const Aws::Vector<Aws::String>& GetEventTypeIds() const { return m_eventTypeIds; }
96 inline bool EventTypeIdsHasBeenSet() const { return m_eventTypeIdsHasBeenSet; }
97 template <typename EventTypeIdsT = Aws::Vector<Aws::String>>
98 void SetEventTypeIds(EventTypeIdsT&& value) {
99 m_eventTypeIdsHasBeenSet = true;
100 m_eventTypeIds = std::forward<EventTypeIdsT>(value);
101 }
102 template <typename EventTypeIdsT = Aws::Vector<Aws::String>>
104 SetEventTypeIds(std::forward<EventTypeIdsT>(value));
105 return *this;
106 }
107 template <typename EventTypeIdsT = Aws::String>
109 m_eventTypeIdsHasBeenSet = true;
110 m_eventTypeIds.emplace_back(std::forward<EventTypeIdsT>(value));
111 return *this;
112 }
114
116
120 inline const Aws::Vector<Target>& GetTargets() const { return m_targets; }
121 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
122 template <typename TargetsT = Aws::Vector<Target>>
123 void SetTargets(TargetsT&& value) {
124 m_targetsHasBeenSet = true;
125 m_targets = std::forward<TargetsT>(value);
126 }
127 template <typename TargetsT = Aws::Vector<Target>>
129 SetTargets(std::forward<TargetsT>(value));
130 return *this;
131 }
132 template <typename TargetsT = Target>
134 m_targetsHasBeenSet = true;
135 m_targets.emplace_back(std::forward<TargetsT>(value));
136 return *this;
137 }
139
141
148 inline DetailType GetDetailType() const { return m_detailType; }
149 inline bool DetailTypeHasBeenSet() const { return m_detailTypeHasBeenSet; }
150 inline void SetDetailType(DetailType value) {
151 m_detailTypeHasBeenSet = true;
152 m_detailType = value;
153 }
155 SetDetailType(value);
156 return *this;
157 }
159 private:
160 Aws::String m_arn;
161
162 Aws::String m_name;
163
165
166 Aws::Vector<Aws::String> m_eventTypeIds;
167
168 Aws::Vector<Target> m_targets;
169
170 DetailType m_detailType{DetailType::NOT_SET};
171 bool m_arnHasBeenSet = false;
172 bool m_nameHasBeenSet = false;
173 bool m_statusHasBeenSet = false;
174 bool m_eventTypeIdsHasBeenSet = false;
175 bool m_targetsHasBeenSet = false;
176 bool m_detailTypeHasBeenSet = false;
177};
178
179} // namespace Model
180} // namespace CodeStarNotifications
181} // 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