AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetEventRuleResult.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 {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace Notifications {
26namespace Model {
28 public:
29 AWS_NOTIFICATIONS_API GetEventRuleResult() = default;
32
34
37 inline const Aws::String& GetArn() const { return m_arn; }
38 template <typename ArnT = Aws::String>
39 void SetArn(ArnT&& value) {
40 m_arnHasBeenSet = true;
41 m_arn = std::forward<ArnT>(value);
42 }
43 template <typename ArnT = Aws::String>
44 GetEventRuleResult& WithArn(ArnT&& value) {
45 SetArn(std::forward<ArnT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetNotificationConfigurationArn() const { return m_notificationConfigurationArn; }
55 template <typename NotificationConfigurationArnT = Aws::String>
56 void SetNotificationConfigurationArn(NotificationConfigurationArnT&& value) {
57 m_notificationConfigurationArnHasBeenSet = true;
58 m_notificationConfigurationArn = std::forward<NotificationConfigurationArnT>(value);
59 }
60 template <typename NotificationConfigurationArnT = Aws::String>
61 GetEventRuleResult& WithNotificationConfigurationArn(NotificationConfigurationArnT&& value) {
62 SetNotificationConfigurationArn(std::forward<NotificationConfigurationArnT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
72 template <typename CreationTimeT = Aws::Utils::DateTime>
73 void SetCreationTime(CreationTimeT&& value) {
74 m_creationTimeHasBeenSet = true;
75 m_creationTime = std::forward<CreationTimeT>(value);
76 }
77 template <typename CreationTimeT = Aws::Utils::DateTime>
78 GetEventRuleResult& WithCreationTime(CreationTimeT&& value) {
79 SetCreationTime(std::forward<CreationTimeT>(value));
80 return *this;
81 }
83
85
94 inline const Aws::String& GetSource() const { return m_source; }
95 template <typename SourceT = Aws::String>
96 void SetSource(SourceT&& value) {
97 m_sourceHasBeenSet = true;
98 m_source = std::forward<SourceT>(value);
99 }
100 template <typename SourceT = Aws::String>
101 GetEventRuleResult& WithSource(SourceT&& value) {
102 SetSource(std::forward<SourceT>(value));
103 return *this;
104 }
106
108
116 inline const Aws::String& GetEventType() const { return m_eventType; }
117 template <typename EventTypeT = Aws::String>
118 void SetEventType(EventTypeT&& value) {
119 m_eventTypeHasBeenSet = true;
120 m_eventType = std::forward<EventTypeT>(value);
121 }
122 template <typename EventTypeT = Aws::String>
123 GetEventRuleResult& WithEventType(EventTypeT&& value) {
124 SetEventType(std::forward<EventTypeT>(value));
125 return *this;
126 }
128
130
136 inline const Aws::String& GetEventPattern() const { return m_eventPattern; }
137 template <typename EventPatternT = Aws::String>
138 void SetEventPattern(EventPatternT&& value) {
139 m_eventPatternHasBeenSet = true;
140 m_eventPattern = std::forward<EventPatternT>(value);
141 }
142 template <typename EventPatternT = Aws::String>
143 GetEventRuleResult& WithEventPattern(EventPatternT&& value) {
144 SetEventPattern(std::forward<EventPatternT>(value));
145 return *this;
146 }
148
150
154 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
155 template <typename RegionsT = Aws::Vector<Aws::String>>
156 void SetRegions(RegionsT&& value) {
157 m_regionsHasBeenSet = true;
158 m_regions = std::forward<RegionsT>(value);
159 }
160 template <typename RegionsT = Aws::Vector<Aws::String>>
161 GetEventRuleResult& WithRegions(RegionsT&& value) {
162 SetRegions(std::forward<RegionsT>(value));
163 return *this;
164 }
165 template <typename RegionsT = Aws::String>
166 GetEventRuleResult& AddRegions(RegionsT&& value) {
167 m_regionsHasBeenSet = true;
168 m_regions.emplace_back(std::forward<RegionsT>(value));
169 return *this;
170 }
172
174
179 inline const Aws::Vector<Aws::String>& GetManagedRules() const { return m_managedRules; }
180 template <typename ManagedRulesT = Aws::Vector<Aws::String>>
181 void SetManagedRules(ManagedRulesT&& value) {
182 m_managedRulesHasBeenSet = true;
183 m_managedRules = std::forward<ManagedRulesT>(value);
184 }
185 template <typename ManagedRulesT = Aws::Vector<Aws::String>>
186 GetEventRuleResult& WithManagedRules(ManagedRulesT&& value) {
187 SetManagedRules(std::forward<ManagedRulesT>(value));
188 return *this;
189 }
190 template <typename ManagedRulesT = Aws::String>
191 GetEventRuleResult& AddManagedRules(ManagedRulesT&& value) {
192 m_managedRulesHasBeenSet = true;
193 m_managedRules.emplace_back(std::forward<ManagedRulesT>(value));
194 return *this;
195 }
197
199
203 inline const Aws::Map<Aws::String, EventRuleStatusSummary>& GetStatusSummaryByRegion() const { return m_statusSummaryByRegion; }
204 template <typename StatusSummaryByRegionT = Aws::Map<Aws::String, EventRuleStatusSummary>>
205 void SetStatusSummaryByRegion(StatusSummaryByRegionT&& value) {
206 m_statusSummaryByRegionHasBeenSet = true;
207 m_statusSummaryByRegion = std::forward<StatusSummaryByRegionT>(value);
208 }
209 template <typename StatusSummaryByRegionT = Aws::Map<Aws::String, EventRuleStatusSummary>>
210 GetEventRuleResult& WithStatusSummaryByRegion(StatusSummaryByRegionT&& value) {
211 SetStatusSummaryByRegion(std::forward<StatusSummaryByRegionT>(value));
212 return *this;
213 }
214 template <typename StatusSummaryByRegionKeyT = Aws::String, typename StatusSummaryByRegionValueT = EventRuleStatusSummary>
215 GetEventRuleResult& AddStatusSummaryByRegion(StatusSummaryByRegionKeyT&& key, StatusSummaryByRegionValueT&& value) {
216 m_statusSummaryByRegionHasBeenSet = true;
217 m_statusSummaryByRegion.emplace(std::forward<StatusSummaryByRegionKeyT>(key), std::forward<StatusSummaryByRegionValueT>(value));
218 return *this;
219 }
221
223
224 inline const Aws::String& GetRequestId() const { return m_requestId; }
225 template <typename RequestIdT = Aws::String>
226 void SetRequestId(RequestIdT&& value) {
227 m_requestIdHasBeenSet = true;
228 m_requestId = std::forward<RequestIdT>(value);
229 }
230 template <typename RequestIdT = Aws::String>
231 GetEventRuleResult& WithRequestId(RequestIdT&& value) {
232 SetRequestId(std::forward<RequestIdT>(value));
233 return *this;
234 }
236 private:
237 Aws::String m_arn;
238
239 Aws::String m_notificationConfigurationArn;
240
241 Aws::Utils::DateTime m_creationTime{};
242
243 Aws::String m_source;
244
245 Aws::String m_eventType;
246
247 Aws::String m_eventPattern;
248
249 Aws::Vector<Aws::String> m_regions;
250
251 Aws::Vector<Aws::String> m_managedRules;
252
253 Aws::Map<Aws::String, EventRuleStatusSummary> m_statusSummaryByRegion;
254
255 Aws::String m_requestId;
256 bool m_arnHasBeenSet = false;
257 bool m_notificationConfigurationArnHasBeenSet = false;
258 bool m_creationTimeHasBeenSet = false;
259 bool m_sourceHasBeenSet = false;
260 bool m_eventTypeHasBeenSet = false;
261 bool m_eventPatternHasBeenSet = false;
262 bool m_regionsHasBeenSet = false;
263 bool m_managedRulesHasBeenSet = false;
264 bool m_statusSummaryByRegionHasBeenSet = false;
265 bool m_requestIdHasBeenSet = false;
266};
267
268} // namespace Model
269} // namespace Notifications
270} // namespace Aws
GetEventRuleResult & WithSource(SourceT &&value)
AWS_NOTIFICATIONS_API GetEventRuleResult()=default
const Aws::Utils::DateTime & GetCreationTime() const
void SetNotificationConfigurationArn(NotificationConfigurationArnT &&value)
const Aws::String & GetNotificationConfigurationArn() const
GetEventRuleResult & WithManagedRules(ManagedRulesT &&value)
GetEventRuleResult & WithStatusSummaryByRegion(StatusSummaryByRegionT &&value)
const Aws::Vector< Aws::String > & GetRegions() const
const Aws::Map< Aws::String, EventRuleStatusSummary > & GetStatusSummaryByRegion() const
GetEventRuleResult & WithRequestId(RequestIdT &&value)
void SetStatusSummaryByRegion(StatusSummaryByRegionT &&value)
GetEventRuleResult & WithRegions(RegionsT &&value)
GetEventRuleResult & AddManagedRules(ManagedRulesT &&value)
GetEventRuleResult & AddStatusSummaryByRegion(StatusSummaryByRegionKeyT &&key, StatusSummaryByRegionValueT &&value)
AWS_NOTIFICATIONS_API GetEventRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_NOTIFICATIONS_API GetEventRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetEventRuleResult & WithArn(ArnT &&value)
GetEventRuleResult & WithEventType(EventTypeT &&value)
GetEventRuleResult & AddRegions(RegionsT &&value)
GetEventRuleResult & WithEventPattern(EventPatternT &&value)
GetEventRuleResult & WithNotificationConfigurationArn(NotificationConfigurationArnT &&value)
GetEventRuleResult & WithCreationTime(CreationTimeT &&value)
const Aws::Vector< Aws::String > & GetManagedRules() const
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