AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetEventRuleResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/notifications/Notifications_EXPORTS.h>
13#include <aws/notifications/model/EventRuleStatusSummary.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace Notifications {
27namespace Model {
29 public:
30 AWS_NOTIFICATIONS_API GetEventRuleResult() = default;
33
35
38 inline const Aws::String& GetArn() const { return m_arn; }
39 template <typename ArnT = Aws::String>
40 void SetArn(ArnT&& value) {
41 m_arnHasBeenSet = true;
42 m_arn = std::forward<ArnT>(value);
43 }
44 template <typename ArnT = Aws::String>
45 GetEventRuleResult& WithArn(ArnT&& value) {
46 SetArn(std::forward<ArnT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetNotificationConfigurationArn() const { return m_notificationConfigurationArn; }
56 template <typename NotificationConfigurationArnT = Aws::String>
57 void SetNotificationConfigurationArn(NotificationConfigurationArnT&& value) {
58 m_notificationConfigurationArnHasBeenSet = true;
59 m_notificationConfigurationArn = std::forward<NotificationConfigurationArnT>(value);
60 }
61 template <typename NotificationConfigurationArnT = Aws::String>
62 GetEventRuleResult& WithNotificationConfigurationArn(NotificationConfigurationArnT&& value) {
63 SetNotificationConfigurationArn(std::forward<NotificationConfigurationArnT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
73 template <typename CreationTimeT = Aws::Utils::DateTime>
74 void SetCreationTime(CreationTimeT&& value) {
75 m_creationTimeHasBeenSet = true;
76 m_creationTime = std::forward<CreationTimeT>(value);
77 }
78 template <typename CreationTimeT = Aws::Utils::DateTime>
79 GetEventRuleResult& WithCreationTime(CreationTimeT&& value) {
80 SetCreationTime(std::forward<CreationTimeT>(value));
81 return *this;
82 }
84
86
95 inline const Aws::String& GetSource() const { return m_source; }
96 template <typename SourceT = Aws::String>
97 void SetSource(SourceT&& value) {
98 m_sourceHasBeenSet = true;
99 m_source = std::forward<SourceT>(value);
100 }
101 template <typename SourceT = Aws::String>
102 GetEventRuleResult& WithSource(SourceT&& value) {
103 SetSource(std::forward<SourceT>(value));
104 return *this;
105 }
107
109
117 inline const Aws::String& GetEventType() const { return m_eventType; }
118 template <typename EventTypeT = Aws::String>
119 void SetEventType(EventTypeT&& value) {
120 m_eventTypeHasBeenSet = true;
121 m_eventType = std::forward<EventTypeT>(value);
122 }
123 template <typename EventTypeT = Aws::String>
124 GetEventRuleResult& WithEventType(EventTypeT&& value) {
125 SetEventType(std::forward<EventTypeT>(value));
126 return *this;
127 }
129
131
137 inline const Aws::String& GetEventPattern() const { return m_eventPattern; }
138 template <typename EventPatternT = Aws::String>
139 void SetEventPattern(EventPatternT&& value) {
140 m_eventPatternHasBeenSet = true;
141 m_eventPattern = std::forward<EventPatternT>(value);
142 }
143 template <typename EventPatternT = Aws::String>
144 GetEventRuleResult& WithEventPattern(EventPatternT&& value) {
145 SetEventPattern(std::forward<EventPatternT>(value));
146 return *this;
147 }
149
151
155 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
156 template <typename RegionsT = Aws::Vector<Aws::String>>
157 void SetRegions(RegionsT&& value) {
158 m_regionsHasBeenSet = true;
159 m_regions = std::forward<RegionsT>(value);
160 }
161 template <typename RegionsT = Aws::Vector<Aws::String>>
162 GetEventRuleResult& WithRegions(RegionsT&& value) {
163 SetRegions(std::forward<RegionsT>(value));
164 return *this;
165 }
166 template <typename RegionsT = Aws::String>
167 GetEventRuleResult& AddRegions(RegionsT&& value) {
168 m_regionsHasBeenSet = true;
169 m_regions.emplace_back(std::forward<RegionsT>(value));
170 return *this;
171 }
173
175
180 inline const Aws::Vector<Aws::String>& GetManagedRules() const { return m_managedRules; }
181 template <typename ManagedRulesT = Aws::Vector<Aws::String>>
182 void SetManagedRules(ManagedRulesT&& value) {
183 m_managedRulesHasBeenSet = true;
184 m_managedRules = std::forward<ManagedRulesT>(value);
185 }
186 template <typename ManagedRulesT = Aws::Vector<Aws::String>>
187 GetEventRuleResult& WithManagedRules(ManagedRulesT&& value) {
188 SetManagedRules(std::forward<ManagedRulesT>(value));
189 return *this;
190 }
191 template <typename ManagedRulesT = Aws::String>
192 GetEventRuleResult& AddManagedRules(ManagedRulesT&& value) {
193 m_managedRulesHasBeenSet = true;
194 m_managedRules.emplace_back(std::forward<ManagedRulesT>(value));
195 return *this;
196 }
198
200
204 inline const Aws::Map<Aws::String, EventRuleStatusSummary>& GetStatusSummaryByRegion() const { return m_statusSummaryByRegion; }
205 template <typename StatusSummaryByRegionT = Aws::Map<Aws::String, EventRuleStatusSummary>>
206 void SetStatusSummaryByRegion(StatusSummaryByRegionT&& value) {
207 m_statusSummaryByRegionHasBeenSet = true;
208 m_statusSummaryByRegion = std::forward<StatusSummaryByRegionT>(value);
209 }
210 template <typename StatusSummaryByRegionT = Aws::Map<Aws::String, EventRuleStatusSummary>>
211 GetEventRuleResult& WithStatusSummaryByRegion(StatusSummaryByRegionT&& value) {
212 SetStatusSummaryByRegion(std::forward<StatusSummaryByRegionT>(value));
213 return *this;
214 }
215 template <typename StatusSummaryByRegionKeyT = Aws::String, typename StatusSummaryByRegionValueT = EventRuleStatusSummary>
216 GetEventRuleResult& AddStatusSummaryByRegion(StatusSummaryByRegionKeyT&& key, StatusSummaryByRegionValueT&& value) {
217 m_statusSummaryByRegionHasBeenSet = true;
218 m_statusSummaryByRegion.emplace(std::forward<StatusSummaryByRegionKeyT>(key), std::forward<StatusSummaryByRegionValueT>(value));
219 return *this;
220 }
222
224
225 inline const Aws::String& GetRequestId() const { return m_requestId; }
226 template <typename RequestIdT = Aws::String>
227 void SetRequestId(RequestIdT&& value) {
228 m_requestIdHasBeenSet = true;
229 m_requestId = std::forward<RequestIdT>(value);
230 }
231 template <typename RequestIdT = Aws::String>
232 GetEventRuleResult& WithRequestId(RequestIdT&& value) {
233 SetRequestId(std::forward<RequestIdT>(value));
234 return *this;
235 }
237 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
238
239 private:
240 Aws::String m_arn;
241
242 Aws::String m_notificationConfigurationArn;
243
244 Aws::Utils::DateTime m_creationTime{};
245
246 Aws::String m_source;
247
248 Aws::String m_eventType;
249
250 Aws::String m_eventPattern;
251
252 Aws::Vector<Aws::String> m_regions;
253
254 Aws::Vector<Aws::String> m_managedRules;
255
256 Aws::Map<Aws::String, EventRuleStatusSummary> m_statusSummaryByRegion;
257
258 Aws::String m_requestId;
259 Aws::Http::HttpResponseCode m_HttpResponseCode;
260 bool m_arnHasBeenSet = false;
261 bool m_notificationConfigurationArnHasBeenSet = false;
262 bool m_creationTimeHasBeenSet = false;
263 bool m_sourceHasBeenSet = false;
264 bool m_eventTypeHasBeenSet = false;
265 bool m_eventPatternHasBeenSet = false;
266 bool m_regionsHasBeenSet = false;
267 bool m_managedRulesHasBeenSet = false;
268 bool m_statusSummaryByRegionHasBeenSet = false;
269 bool m_requestIdHasBeenSet = false;
270};
271
272} // namespace Model
273} // namespace Notifications
274} // 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)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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