AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateEventRuleRequest.h
1
6#pragma once
7#include <aws/notifications/Notifications_EXPORTS.h>
8#include <aws/notifications/NotificationsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Notifications
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_NOTIFICATIONS_API CreateEventRuleRequest() = 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 "CreateEventRule"; }
32
33 AWS_NOTIFICATIONS_API Aws::String SerializePayload() const override;
34
35
37
41 inline const Aws::String& GetNotificationConfigurationArn() const { return m_notificationConfigurationArn; }
42 inline bool NotificationConfigurationArnHasBeenSet() const { return m_notificationConfigurationArnHasBeenSet; }
43 template<typename NotificationConfigurationArnT = Aws::String>
44 void SetNotificationConfigurationArn(NotificationConfigurationArnT&& value) { m_notificationConfigurationArnHasBeenSet = true; m_notificationConfigurationArn = std::forward<NotificationConfigurationArnT>(value); }
45 template<typename NotificationConfigurationArnT = Aws::String>
46 CreateEventRuleRequest& WithNotificationConfigurationArn(NotificationConfigurationArnT&& value) { SetNotificationConfigurationArn(std::forward<NotificationConfigurationArnT>(value)); return *this;}
48
50
59 inline const Aws::String& GetSource() const { return m_source; }
60 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
61 template<typename SourceT = Aws::String>
62 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
63 template<typename SourceT = Aws::String>
64 CreateEventRuleRequest& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
66
68
76 inline const Aws::String& GetEventType() const { return m_eventType; }
77 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
78 template<typename EventTypeT = Aws::String>
79 void SetEventType(EventTypeT&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::forward<EventTypeT>(value); }
80 template<typename EventTypeT = Aws::String>
81 CreateEventRuleRequest& WithEventType(EventTypeT&& value) { SetEventType(std::forward<EventTypeT>(value)); return *this;}
83
85
91 inline const Aws::String& GetEventPattern() const { return m_eventPattern; }
92 inline bool EventPatternHasBeenSet() const { return m_eventPatternHasBeenSet; }
93 template<typename EventPatternT = Aws::String>
94 void SetEventPattern(EventPatternT&& value) { m_eventPatternHasBeenSet = true; m_eventPattern = std::forward<EventPatternT>(value); }
95 template<typename EventPatternT = Aws::String>
96 CreateEventRuleRequest& WithEventPattern(EventPatternT&& value) { SetEventPattern(std::forward<EventPatternT>(value)); return *this;}
98
100
104 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
105 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
106 template<typename RegionsT = Aws::Vector<Aws::String>>
107 void SetRegions(RegionsT&& value) { m_regionsHasBeenSet = true; m_regions = std::forward<RegionsT>(value); }
108 template<typename RegionsT = Aws::Vector<Aws::String>>
109 CreateEventRuleRequest& WithRegions(RegionsT&& value) { SetRegions(std::forward<RegionsT>(value)); return *this;}
110 template<typename RegionsT = Aws::String>
111 CreateEventRuleRequest& AddRegions(RegionsT&& value) { m_regionsHasBeenSet = true; m_regions.emplace_back(std::forward<RegionsT>(value)); return *this; }
113 private:
114
115 Aws::String m_notificationConfigurationArn;
116 bool m_notificationConfigurationArnHasBeenSet = false;
117
118 Aws::String m_source;
119 bool m_sourceHasBeenSet = false;
120
121 Aws::String m_eventType;
122 bool m_eventTypeHasBeenSet = false;
123
124 Aws::String m_eventPattern;
125 bool m_eventPatternHasBeenSet = false;
126
127 Aws::Vector<Aws::String> m_regions;
128 bool m_regionsHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace Notifications
133} // 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