AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateEventRuleRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/notifications/NotificationsRequest.h>
10#include <aws/notifications/Notifications_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Notifications {
16namespace Model {
17
21 public:
22 AWS_NOTIFICATIONS_API CreateEventRuleRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateEventRule"; }
29
30 AWS_NOTIFICATIONS_API Aws::String SerializePayload() const override;
31
33
37 inline const Aws::String& GetNotificationConfigurationArn() const { return m_notificationConfigurationArn; }
38 inline bool NotificationConfigurationArnHasBeenSet() const { return m_notificationConfigurationArnHasBeenSet; }
39 template <typename NotificationConfigurationArnT = Aws::String>
40 void SetNotificationConfigurationArn(NotificationConfigurationArnT&& value) {
41 m_notificationConfigurationArnHasBeenSet = true;
42 m_notificationConfigurationArn = std::forward<NotificationConfigurationArnT>(value);
43 }
44 template <typename NotificationConfigurationArnT = Aws::String>
45 CreateEventRuleRequest& WithNotificationConfigurationArn(NotificationConfigurationArnT&& value) {
46 SetNotificationConfigurationArn(std::forward<NotificationConfigurationArnT>(value));
47 return *this;
48 }
50
52
61 inline const Aws::String& GetSource() const { return m_source; }
62 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
63 template <typename SourceT = Aws::String>
64 void SetSource(SourceT&& value) {
65 m_sourceHasBeenSet = true;
66 m_source = std::forward<SourceT>(value);
67 }
68 template <typename SourceT = Aws::String>
70 SetSource(std::forward<SourceT>(value));
71 return *this;
72 }
74
76
84 inline const Aws::String& GetEventType() const { return m_eventType; }
85 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
86 template <typename EventTypeT = Aws::String>
87 void SetEventType(EventTypeT&& value) {
88 m_eventTypeHasBeenSet = true;
89 m_eventType = std::forward<EventTypeT>(value);
90 }
91 template <typename EventTypeT = Aws::String>
93 SetEventType(std::forward<EventTypeT>(value));
94 return *this;
95 }
97
99
105 inline const Aws::String& GetEventPattern() const { return m_eventPattern; }
106 inline bool EventPatternHasBeenSet() const { return m_eventPatternHasBeenSet; }
107 template <typename EventPatternT = Aws::String>
108 void SetEventPattern(EventPatternT&& value) {
109 m_eventPatternHasBeenSet = true;
110 m_eventPattern = std::forward<EventPatternT>(value);
111 }
112 template <typename EventPatternT = Aws::String>
113 CreateEventRuleRequest& WithEventPattern(EventPatternT&& value) {
114 SetEventPattern(std::forward<EventPatternT>(value));
115 return *this;
116 }
118
120
124 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
125 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
126 template <typename RegionsT = Aws::Vector<Aws::String>>
127 void SetRegions(RegionsT&& value) {
128 m_regionsHasBeenSet = true;
129 m_regions = std::forward<RegionsT>(value);
130 }
131 template <typename RegionsT = Aws::Vector<Aws::String>>
133 SetRegions(std::forward<RegionsT>(value));
134 return *this;
135 }
136 template <typename RegionsT = Aws::String>
138 m_regionsHasBeenSet = true;
139 m_regions.emplace_back(std::forward<RegionsT>(value));
140 return *this;
141 }
143 private:
144 Aws::String m_notificationConfigurationArn;
145
146 Aws::String m_source;
147
148 Aws::String m_eventType;
149
150 Aws::String m_eventPattern;
151
152 Aws::Vector<Aws::String> m_regions;
153 bool m_notificationConfigurationArnHasBeenSet = false;
154 bool m_sourceHasBeenSet = false;
155 bool m_eventTypeHasBeenSet = false;
156 bool m_eventPatternHasBeenSet = false;
157 bool m_regionsHasBeenSet = false;
158};
159
160} // namespace Model
161} // namespace Notifications
162} // namespace Aws
CreateEventRuleRequest & WithEventPattern(EventPatternT &&value)
const Aws::Vector< Aws::String > & GetRegions() const
CreateEventRuleRequest & AddRegions(RegionsT &&value)
AWS_NOTIFICATIONS_API CreateEventRuleRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_NOTIFICATIONS_API Aws::String SerializePayload() const override
CreateEventRuleRequest & WithRegions(RegionsT &&value)
CreateEventRuleRequest & WithNotificationConfigurationArn(NotificationConfigurationArnT &&value)
CreateEventRuleRequest & WithEventType(EventTypeT &&value)
void SetNotificationConfigurationArn(NotificationConfigurationArnT &&value)
CreateEventRuleRequest & WithSource(SourceT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector