AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
EventRuleStructure.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/notifications/Notifications_EXPORTS.h>
12#include <aws/notifications/model/EventRuleStatusSummary.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Notifications {
24namespace Model {
25
33 public:
34 AWS_NOTIFICATIONS_API EventRuleStructure() = default;
35 AWS_NOTIFICATIONS_API EventRuleStructure(Aws::Utils::Json::JsonView jsonValue);
36 AWS_NOTIFICATIONS_API EventRuleStructure& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
45 inline const Aws::String& GetArn() const { return m_arn; }
46 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
47 template <typename ArnT = Aws::String>
48 void SetArn(ArnT&& value) {
49 m_arnHasBeenSet = true;
50 m_arn = std::forward<ArnT>(value);
51 }
52 template <typename ArnT = Aws::String>
53 EventRuleStructure& WithArn(ArnT&& value) {
54 SetArn(std::forward<ArnT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::String& GetNotificationConfigurationArn() const { return m_notificationConfigurationArn; }
65 inline bool NotificationConfigurationArnHasBeenSet() const { return m_notificationConfigurationArnHasBeenSet; }
66 template <typename NotificationConfigurationArnT = Aws::String>
67 void SetNotificationConfigurationArn(NotificationConfigurationArnT&& value) {
68 m_notificationConfigurationArnHasBeenSet = true;
69 m_notificationConfigurationArn = std::forward<NotificationConfigurationArnT>(value);
70 }
71 template <typename NotificationConfigurationArnT = Aws::String>
72 EventRuleStructure& WithNotificationConfigurationArn(NotificationConfigurationArnT&& value) {
73 SetNotificationConfigurationArn(std::forward<NotificationConfigurationArnT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
83 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
84 template <typename CreationTimeT = Aws::Utils::DateTime>
85 void SetCreationTime(CreationTimeT&& value) {
86 m_creationTimeHasBeenSet = true;
87 m_creationTime = std::forward<CreationTimeT>(value);
88 }
89 template <typename CreationTimeT = Aws::Utils::DateTime>
90 EventRuleStructure& WithCreationTime(CreationTimeT&& value) {
91 SetCreationTime(std::forward<CreationTimeT>(value));
92 return *this;
93 }
95
97
107 inline const Aws::String& GetSource() const { return m_source; }
108 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
109 template <typename SourceT = Aws::String>
110 void SetSource(SourceT&& value) {
111 m_sourceHasBeenSet = true;
112 m_source = std::forward<SourceT>(value);
113 }
114 template <typename SourceT = Aws::String>
115 EventRuleStructure& WithSource(SourceT&& value) {
116 SetSource(std::forward<SourceT>(value));
117 return *this;
118 }
120
122
131 inline const Aws::String& GetEventType() const { return m_eventType; }
132 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
133 template <typename EventTypeT = Aws::String>
134 void SetEventType(EventTypeT&& value) {
135 m_eventTypeHasBeenSet = true;
136 m_eventType = std::forward<EventTypeT>(value);
137 }
138 template <typename EventTypeT = Aws::String>
139 EventRuleStructure& WithEventType(EventTypeT&& value) {
140 SetEventType(std::forward<EventTypeT>(value));
141 return *this;
142 }
144
146
152 inline const Aws::String& GetEventPattern() const { return m_eventPattern; }
153 inline bool EventPatternHasBeenSet() const { return m_eventPatternHasBeenSet; }
154 template <typename EventPatternT = Aws::String>
155 void SetEventPattern(EventPatternT&& value) {
156 m_eventPatternHasBeenSet = true;
157 m_eventPattern = std::forward<EventPatternT>(value);
158 }
159 template <typename EventPatternT = Aws::String>
160 EventRuleStructure& WithEventPattern(EventPatternT&& value) {
161 SetEventPattern(std::forward<EventPatternT>(value));
162 return *this;
163 }
165
167
171 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
172 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
173 template <typename RegionsT = Aws::Vector<Aws::String>>
174 void SetRegions(RegionsT&& value) {
175 m_regionsHasBeenSet = true;
176 m_regions = std::forward<RegionsT>(value);
177 }
178 template <typename RegionsT = Aws::Vector<Aws::String>>
179 EventRuleStructure& WithRegions(RegionsT&& value) {
180 SetRegions(std::forward<RegionsT>(value));
181 return *this;
182 }
183 template <typename RegionsT = Aws::String>
184 EventRuleStructure& AddRegions(RegionsT&& value) {
185 m_regionsHasBeenSet = true;
186 m_regions.emplace_back(std::forward<RegionsT>(value));
187 return *this;
188 }
190
192
197 inline const Aws::Vector<Aws::String>& GetManagedRules() const { return m_managedRules; }
198 inline bool ManagedRulesHasBeenSet() const { return m_managedRulesHasBeenSet; }
199 template <typename ManagedRulesT = Aws::Vector<Aws::String>>
200 void SetManagedRules(ManagedRulesT&& value) {
201 m_managedRulesHasBeenSet = true;
202 m_managedRules = std::forward<ManagedRulesT>(value);
203 }
204 template <typename ManagedRulesT = Aws::Vector<Aws::String>>
205 EventRuleStructure& WithManagedRules(ManagedRulesT&& value) {
206 SetManagedRules(std::forward<ManagedRulesT>(value));
207 return *this;
208 }
209 template <typename ManagedRulesT = Aws::String>
210 EventRuleStructure& AddManagedRules(ManagedRulesT&& value) {
211 m_managedRulesHasBeenSet = true;
212 m_managedRules.emplace_back(std::forward<ManagedRulesT>(value));
213 return *this;
214 }
216
218
222 inline const Aws::Map<Aws::String, EventRuleStatusSummary>& GetStatusSummaryByRegion() const { return m_statusSummaryByRegion; }
223 inline bool StatusSummaryByRegionHasBeenSet() const { return m_statusSummaryByRegionHasBeenSet; }
224 template <typename StatusSummaryByRegionT = Aws::Map<Aws::String, EventRuleStatusSummary>>
225 void SetStatusSummaryByRegion(StatusSummaryByRegionT&& value) {
226 m_statusSummaryByRegionHasBeenSet = true;
227 m_statusSummaryByRegion = std::forward<StatusSummaryByRegionT>(value);
228 }
229 template <typename StatusSummaryByRegionT = Aws::Map<Aws::String, EventRuleStatusSummary>>
230 EventRuleStructure& WithStatusSummaryByRegion(StatusSummaryByRegionT&& value) {
231 SetStatusSummaryByRegion(std::forward<StatusSummaryByRegionT>(value));
232 return *this;
233 }
234 template <typename StatusSummaryByRegionKeyT = Aws::String, typename StatusSummaryByRegionValueT = EventRuleStatusSummary>
235 EventRuleStructure& AddStatusSummaryByRegion(StatusSummaryByRegionKeyT&& key, StatusSummaryByRegionValueT&& value) {
236 m_statusSummaryByRegionHasBeenSet = true;
237 m_statusSummaryByRegion.emplace(std::forward<StatusSummaryByRegionKeyT>(key), std::forward<StatusSummaryByRegionValueT>(value));
238 return *this;
239 }
241 private:
242 Aws::String m_arn;
243
244 Aws::String m_notificationConfigurationArn;
245
246 Aws::Utils::DateTime m_creationTime{};
247
248 Aws::String m_source;
249
250 Aws::String m_eventType;
251
252 Aws::String m_eventPattern;
253
254 Aws::Vector<Aws::String> m_regions;
255
256 Aws::Vector<Aws::String> m_managedRules;
257
258 Aws::Map<Aws::String, EventRuleStatusSummary> m_statusSummaryByRegion;
259 bool m_arnHasBeenSet = false;
260 bool m_notificationConfigurationArnHasBeenSet = false;
261 bool m_creationTimeHasBeenSet = false;
262 bool m_sourceHasBeenSet = false;
263 bool m_eventTypeHasBeenSet = false;
264 bool m_eventPatternHasBeenSet = false;
265 bool m_regionsHasBeenSet = false;
266 bool m_managedRulesHasBeenSet = false;
267 bool m_statusSummaryByRegionHasBeenSet = false;
268};
269
270} // namespace Model
271} // namespace Notifications
272} // namespace Aws
EventRuleStructure & WithNotificationConfigurationArn(NotificationConfigurationArnT &&value)
EventRuleStructure & WithRegions(RegionsT &&value)
const Aws::String & GetNotificationConfigurationArn() const
const Aws::Utils::DateTime & GetCreationTime() const
EventRuleStructure & WithCreationTime(CreationTimeT &&value)
const Aws::Vector< Aws::String > & GetRegions() const
EventRuleStructure & AddStatusSummaryByRegion(StatusSummaryByRegionKeyT &&key, StatusSummaryByRegionValueT &&value)
EventRuleStructure & WithEventPattern(EventPatternT &&value)
AWS_NOTIFICATIONS_API EventRuleStructure(Aws::Utils::Json::JsonView jsonValue)
AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, EventRuleStatusSummary > & GetStatusSummaryByRegion() const
EventRuleStructure & AddRegions(RegionsT &&value)
AWS_NOTIFICATIONS_API EventRuleStructure & operator=(Aws::Utils::Json::JsonView jsonValue)
EventRuleStructure & AddManagedRules(ManagedRulesT &&value)
EventRuleStructure & WithEventType(EventTypeT &&value)
AWS_NOTIFICATIONS_API EventRuleStructure()=default
EventRuleStructure & WithArn(ArnT &&value)
void SetStatusSummaryByRegion(StatusSummaryByRegionT &&value)
EventRuleStructure & WithManagedRules(ManagedRulesT &&value)
void SetNotificationConfigurationArn(NotificationConfigurationArnT &&value)
const Aws::Vector< Aws::String > & GetManagedRules() const
EventRuleStructure & WithSource(SourceT &&value)
EventRuleStructure & WithStatusSummaryByRegion(StatusSummaryByRegionT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue