AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetEventRuleResult.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{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace Notifications
28{
29namespace Model
30{
32 {
33 public:
34 AWS_NOTIFICATIONS_API GetEventRuleResult() = default;
37
38
40
43 inline const Aws::String& GetArn() const { return m_arn; }
44 template<typename ArnT = Aws::String>
45 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
46 template<typename ArnT = Aws::String>
47 GetEventRuleResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
49
51
54 inline const Aws::String& GetNotificationConfigurationArn() const { return m_notificationConfigurationArn; }
55 template<typename NotificationConfigurationArnT = Aws::String>
56 void SetNotificationConfigurationArn(NotificationConfigurationArnT&& value) { m_notificationConfigurationArnHasBeenSet = true; m_notificationConfigurationArn = std::forward<NotificationConfigurationArnT>(value); }
57 template<typename NotificationConfigurationArnT = Aws::String>
58 GetEventRuleResult& WithNotificationConfigurationArn(NotificationConfigurationArnT&& value) { SetNotificationConfigurationArn(std::forward<NotificationConfigurationArnT>(value)); return *this;}
60
62
65 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
66 template<typename CreationTimeT = Aws::Utils::DateTime>
67 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
68 template<typename CreationTimeT = Aws::Utils::DateTime>
69 GetEventRuleResult& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
71
73
82 inline const Aws::String& GetSource() const { return m_source; }
83 template<typename SourceT = Aws::String>
84 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
85 template<typename SourceT = Aws::String>
86 GetEventRuleResult& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
88
90
98 inline const Aws::String& GetEventType() const { return m_eventType; }
99 template<typename EventTypeT = Aws::String>
100 void SetEventType(EventTypeT&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::forward<EventTypeT>(value); }
101 template<typename EventTypeT = Aws::String>
102 GetEventRuleResult& WithEventType(EventTypeT&& value) { SetEventType(std::forward<EventTypeT>(value)); return *this;}
104
106
112 inline const Aws::String& GetEventPattern() const { return m_eventPattern; }
113 template<typename EventPatternT = Aws::String>
114 void SetEventPattern(EventPatternT&& value) { m_eventPatternHasBeenSet = true; m_eventPattern = std::forward<EventPatternT>(value); }
115 template<typename EventPatternT = Aws::String>
116 GetEventRuleResult& WithEventPattern(EventPatternT&& value) { SetEventPattern(std::forward<EventPatternT>(value)); return *this;}
118
120
124 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
125 template<typename RegionsT = Aws::Vector<Aws::String>>
126 void SetRegions(RegionsT&& value) { m_regionsHasBeenSet = true; m_regions = std::forward<RegionsT>(value); }
127 template<typename RegionsT = Aws::Vector<Aws::String>>
128 GetEventRuleResult& WithRegions(RegionsT&& value) { SetRegions(std::forward<RegionsT>(value)); return *this;}
129 template<typename RegionsT = Aws::String>
130 GetEventRuleResult& AddRegions(RegionsT&& value) { m_regionsHasBeenSet = true; m_regions.emplace_back(std::forward<RegionsT>(value)); return *this; }
132
134
139 inline const Aws::Vector<Aws::String>& GetManagedRules() const { return m_managedRules; }
140 template<typename ManagedRulesT = Aws::Vector<Aws::String>>
141 void SetManagedRules(ManagedRulesT&& value) { m_managedRulesHasBeenSet = true; m_managedRules = std::forward<ManagedRulesT>(value); }
142 template<typename ManagedRulesT = Aws::Vector<Aws::String>>
143 GetEventRuleResult& WithManagedRules(ManagedRulesT&& value) { SetManagedRules(std::forward<ManagedRulesT>(value)); return *this;}
144 template<typename ManagedRulesT = Aws::String>
145 GetEventRuleResult& AddManagedRules(ManagedRulesT&& value) { m_managedRulesHasBeenSet = true; m_managedRules.emplace_back(std::forward<ManagedRulesT>(value)); return *this; }
147
149
153 inline const Aws::Map<Aws::String, EventRuleStatusSummary>& GetStatusSummaryByRegion() const { return m_statusSummaryByRegion; }
154 template<typename StatusSummaryByRegionT = Aws::Map<Aws::String, EventRuleStatusSummary>>
155 void SetStatusSummaryByRegion(StatusSummaryByRegionT&& value) { m_statusSummaryByRegionHasBeenSet = true; m_statusSummaryByRegion = std::forward<StatusSummaryByRegionT>(value); }
156 template<typename StatusSummaryByRegionT = Aws::Map<Aws::String, EventRuleStatusSummary>>
157 GetEventRuleResult& WithStatusSummaryByRegion(StatusSummaryByRegionT&& value) { SetStatusSummaryByRegion(std::forward<StatusSummaryByRegionT>(value)); return *this;}
158 template<typename StatusSummaryByRegionKeyT = Aws::String, typename StatusSummaryByRegionValueT = EventRuleStatusSummary>
159 GetEventRuleResult& AddStatusSummaryByRegion(StatusSummaryByRegionKeyT&& key, StatusSummaryByRegionValueT&& value) {
160 m_statusSummaryByRegionHasBeenSet = true; m_statusSummaryByRegion.emplace(std::forward<StatusSummaryByRegionKeyT>(key), std::forward<StatusSummaryByRegionValueT>(value)); return *this;
161 }
163
165
166 inline const Aws::String& GetRequestId() const { return m_requestId; }
167 template<typename RequestIdT = Aws::String>
168 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
169 template<typename RequestIdT = Aws::String>
170 GetEventRuleResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
172 private:
173
174 Aws::String m_arn;
175 bool m_arnHasBeenSet = false;
176
177 Aws::String m_notificationConfigurationArn;
178 bool m_notificationConfigurationArnHasBeenSet = false;
179
180 Aws::Utils::DateTime m_creationTime{};
181 bool m_creationTimeHasBeenSet = false;
182
183 Aws::String m_source;
184 bool m_sourceHasBeenSet = false;
185
186 Aws::String m_eventType;
187 bool m_eventTypeHasBeenSet = false;
188
189 Aws::String m_eventPattern;
190 bool m_eventPatternHasBeenSet = false;
191
192 Aws::Vector<Aws::String> m_regions;
193 bool m_regionsHasBeenSet = false;
194
195 Aws::Vector<Aws::String> m_managedRules;
196 bool m_managedRulesHasBeenSet = false;
197
198 Aws::Map<Aws::String, EventRuleStatusSummary> m_statusSummaryByRegion;
199 bool m_statusSummaryByRegionHasBeenSet = false;
200
201 Aws::String m_requestId;
202 bool m_requestIdHasBeenSet = false;
203 };
204
205} // namespace Model
206} // namespace Notifications
207} // 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