AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
EventRuleStructure.h
1
6#pragma once
7#include <aws/notifications/Notifications_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/notifications/model/EventRuleStatusSummary.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Notifications
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_NOTIFICATIONS_API EventRuleStructure() = default;
40 AWS_NOTIFICATIONS_API EventRuleStructure(Aws::Utils::Json::JsonView jsonValue);
41 AWS_NOTIFICATIONS_API EventRuleStructure& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
51 inline const Aws::String& GetArn() const { return m_arn; }
52 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
53 template<typename ArnT = Aws::String>
54 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
55 template<typename ArnT = Aws::String>
56 EventRuleStructure& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_notificationConfigurationArnHasBeenSet = true; m_notificationConfigurationArn = std::forward<NotificationConfigurationArnT>(value); }
68 template<typename NotificationConfigurationArnT = Aws::String>
69 EventRuleStructure& WithNotificationConfigurationArn(NotificationConfigurationArnT&& value) { SetNotificationConfigurationArn(std::forward<NotificationConfigurationArnT>(value)); return *this;}
71
73
76 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
77 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
78 template<typename CreationTimeT = Aws::Utils::DateTime>
79 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
80 template<typename CreationTimeT = Aws::Utils::DateTime>
81 EventRuleStructure& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
83
85
95 inline const Aws::String& GetSource() const { return m_source; }
96 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
97 template<typename SourceT = Aws::String>
98 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
99 template<typename SourceT = Aws::String>
100 EventRuleStructure& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
102
104
113 inline const Aws::String& GetEventType() const { return m_eventType; }
114 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
115 template<typename EventTypeT = Aws::String>
116 void SetEventType(EventTypeT&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::forward<EventTypeT>(value); }
117 template<typename EventTypeT = Aws::String>
118 EventRuleStructure& WithEventType(EventTypeT&& value) { SetEventType(std::forward<EventTypeT>(value)); return *this;}
120
122
128 inline const Aws::String& GetEventPattern() const { return m_eventPattern; }
129 inline bool EventPatternHasBeenSet() const { return m_eventPatternHasBeenSet; }
130 template<typename EventPatternT = Aws::String>
131 void SetEventPattern(EventPatternT&& value) { m_eventPatternHasBeenSet = true; m_eventPattern = std::forward<EventPatternT>(value); }
132 template<typename EventPatternT = Aws::String>
133 EventRuleStructure& WithEventPattern(EventPatternT&& value) { SetEventPattern(std::forward<EventPatternT>(value)); return *this;}
135
137
141 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
142 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
143 template<typename RegionsT = Aws::Vector<Aws::String>>
144 void SetRegions(RegionsT&& value) { m_regionsHasBeenSet = true; m_regions = std::forward<RegionsT>(value); }
145 template<typename RegionsT = Aws::Vector<Aws::String>>
146 EventRuleStructure& WithRegions(RegionsT&& value) { SetRegions(std::forward<RegionsT>(value)); return *this;}
147 template<typename RegionsT = Aws::String>
148 EventRuleStructure& AddRegions(RegionsT&& value) { m_regionsHasBeenSet = true; m_regions.emplace_back(std::forward<RegionsT>(value)); return *this; }
150
152
157 inline const Aws::Vector<Aws::String>& GetManagedRules() const { return m_managedRules; }
158 inline bool ManagedRulesHasBeenSet() const { return m_managedRulesHasBeenSet; }
159 template<typename ManagedRulesT = Aws::Vector<Aws::String>>
160 void SetManagedRules(ManagedRulesT&& value) { m_managedRulesHasBeenSet = true; m_managedRules = std::forward<ManagedRulesT>(value); }
161 template<typename ManagedRulesT = Aws::Vector<Aws::String>>
162 EventRuleStructure& WithManagedRules(ManagedRulesT&& value) { SetManagedRules(std::forward<ManagedRulesT>(value)); return *this;}
163 template<typename ManagedRulesT = Aws::String>
164 EventRuleStructure& AddManagedRules(ManagedRulesT&& value) { m_managedRulesHasBeenSet = true; m_managedRules.emplace_back(std::forward<ManagedRulesT>(value)); return *this; }
166
168
172 inline const Aws::Map<Aws::String, EventRuleStatusSummary>& GetStatusSummaryByRegion() const { return m_statusSummaryByRegion; }
173 inline bool StatusSummaryByRegionHasBeenSet() const { return m_statusSummaryByRegionHasBeenSet; }
174 template<typename StatusSummaryByRegionT = Aws::Map<Aws::String, EventRuleStatusSummary>>
175 void SetStatusSummaryByRegion(StatusSummaryByRegionT&& value) { m_statusSummaryByRegionHasBeenSet = true; m_statusSummaryByRegion = std::forward<StatusSummaryByRegionT>(value); }
176 template<typename StatusSummaryByRegionT = Aws::Map<Aws::String, EventRuleStatusSummary>>
177 EventRuleStructure& WithStatusSummaryByRegion(StatusSummaryByRegionT&& value) { SetStatusSummaryByRegion(std::forward<StatusSummaryByRegionT>(value)); return *this;}
178 template<typename StatusSummaryByRegionKeyT = Aws::String, typename StatusSummaryByRegionValueT = EventRuleStatusSummary>
179 EventRuleStructure& AddStatusSummaryByRegion(StatusSummaryByRegionKeyT&& key, StatusSummaryByRegionValueT&& value) {
180 m_statusSummaryByRegionHasBeenSet = true; m_statusSummaryByRegion.emplace(std::forward<StatusSummaryByRegionKeyT>(key), std::forward<StatusSummaryByRegionValueT>(value)); return *this;
181 }
183 private:
184
185 Aws::String m_arn;
186 bool m_arnHasBeenSet = false;
187
188 Aws::String m_notificationConfigurationArn;
189 bool m_notificationConfigurationArnHasBeenSet = false;
190
191 Aws::Utils::DateTime m_creationTime{};
192 bool m_creationTimeHasBeenSet = false;
193
194 Aws::String m_source;
195 bool m_sourceHasBeenSet = false;
196
197 Aws::String m_eventType;
198 bool m_eventTypeHasBeenSet = false;
199
200 Aws::String m_eventPattern;
201 bool m_eventPatternHasBeenSet = false;
202
203 Aws::Vector<Aws::String> m_regions;
204 bool m_regionsHasBeenSet = false;
205
206 Aws::Vector<Aws::String> m_managedRules;
207 bool m_managedRulesHasBeenSet = false;
208
209 Aws::Map<Aws::String, EventRuleStatusSummary> m_statusSummaryByRegion;
210 bool m_statusSummaryByRegionHasBeenSet = false;
211 };
212
213} // namespace Model
214} // namespace Notifications
215} // 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