AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SourceEventMetadata.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/notifications/Notifications_EXPORTS.h>
11#include <aws/notifications/model/Resource.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Notifications {
23namespace Model {
24
35 public:
36 AWS_NOTIFICATIONS_API SourceEventMetadata() = default;
37 AWS_NOTIFICATIONS_API SourceEventMetadata(Aws::Utils::Json::JsonView jsonValue);
38 AWS_NOTIFICATIONS_API SourceEventMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetEventTypeVersion() const { return m_eventTypeVersion; }
46 inline bool EventTypeVersionHasBeenSet() const { return m_eventTypeVersionHasBeenSet; }
47 template <typename EventTypeVersionT = Aws::String>
48 void SetEventTypeVersion(EventTypeVersionT&& value) {
49 m_eventTypeVersionHasBeenSet = true;
50 m_eventTypeVersion = std::forward<EventTypeVersionT>(value);
51 }
52 template <typename EventTypeVersionT = Aws::String>
53 SourceEventMetadata& WithEventTypeVersion(EventTypeVersionT&& value) {
54 SetEventTypeVersion(std::forward<EventTypeVersionT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetSourceEventId() const { return m_sourceEventId; }
64 inline bool SourceEventIdHasBeenSet() const { return m_sourceEventIdHasBeenSet; }
65 template <typename SourceEventIdT = Aws::String>
66 void SetSourceEventId(SourceEventIdT&& value) {
67 m_sourceEventIdHasBeenSet = true;
68 m_sourceEventId = std::forward<SourceEventIdT>(value);
69 }
70 template <typename SourceEventIdT = Aws::String>
71 SourceEventMetadata& WithSourceEventId(SourceEventIdT&& value) {
72 SetSourceEventId(std::forward<SourceEventIdT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetEventOriginRegion() const { return m_eventOriginRegion; }
82 inline bool EventOriginRegionHasBeenSet() const { return m_eventOriginRegionHasBeenSet; }
83 template <typename EventOriginRegionT = Aws::String>
84 void SetEventOriginRegion(EventOriginRegionT&& value) {
85 m_eventOriginRegionHasBeenSet = true;
86 m_eventOriginRegion = std::forward<EventOriginRegionT>(value);
87 }
88 template <typename EventOriginRegionT = Aws::String>
89 SourceEventMetadata& WithEventOriginRegion(EventOriginRegionT&& value) {
90 SetEventOriginRegion(std::forward<EventOriginRegionT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetRelatedAccount() const { return m_relatedAccount; }
100 inline bool RelatedAccountHasBeenSet() const { return m_relatedAccountHasBeenSet; }
101 template <typename RelatedAccountT = Aws::String>
102 void SetRelatedAccount(RelatedAccountT&& value) {
103 m_relatedAccountHasBeenSet = true;
104 m_relatedAccount = std::forward<RelatedAccountT>(value);
105 }
106 template <typename RelatedAccountT = Aws::String>
107 SourceEventMetadata& WithRelatedAccount(RelatedAccountT&& value) {
108 SetRelatedAccount(std::forward<RelatedAccountT>(value));
109 return *this;
110 }
112
114
118 inline const Aws::String& GetSource() const { return m_source; }
119 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
120 template <typename SourceT = Aws::String>
121 void SetSource(SourceT&& value) {
122 m_sourceHasBeenSet = true;
123 m_source = std::forward<SourceT>(value);
124 }
125 template <typename SourceT = Aws::String>
126 SourceEventMetadata& WithSource(SourceT&& value) {
127 SetSource(std::forward<SourceT>(value));
128 return *this;
129 }
131
133
137 inline const Aws::Utils::DateTime& GetEventOccurrenceTime() const { return m_eventOccurrenceTime; }
138 inline bool EventOccurrenceTimeHasBeenSet() const { return m_eventOccurrenceTimeHasBeenSet; }
139 template <typename EventOccurrenceTimeT = Aws::Utils::DateTime>
140 void SetEventOccurrenceTime(EventOccurrenceTimeT&& value) {
141 m_eventOccurrenceTimeHasBeenSet = true;
142 m_eventOccurrenceTime = std::forward<EventOccurrenceTimeT>(value);
143 }
144 template <typename EventOccurrenceTimeT = Aws::Utils::DateTime>
145 SourceEventMetadata& WithEventOccurrenceTime(EventOccurrenceTimeT&& value) {
146 SetEventOccurrenceTime(std::forward<EventOccurrenceTimeT>(value));
147 return *this;
148 }
150
152
155 inline const Aws::String& GetEventType() const { return m_eventType; }
156 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
157 template <typename EventTypeT = Aws::String>
158 void SetEventType(EventTypeT&& value) {
159 m_eventTypeHasBeenSet = true;
160 m_eventType = std::forward<EventTypeT>(value);
161 }
162 template <typename EventTypeT = Aws::String>
163 SourceEventMetadata& WithEventType(EventTypeT&& value) {
164 SetEventType(std::forward<EventTypeT>(value));
165 return *this;
166 }
168
170
173 inline const Aws::Vector<Resource>& GetRelatedResources() const { return m_relatedResources; }
174 inline bool RelatedResourcesHasBeenSet() const { return m_relatedResourcesHasBeenSet; }
175 template <typename RelatedResourcesT = Aws::Vector<Resource>>
176 void SetRelatedResources(RelatedResourcesT&& value) {
177 m_relatedResourcesHasBeenSet = true;
178 m_relatedResources = std::forward<RelatedResourcesT>(value);
179 }
180 template <typename RelatedResourcesT = Aws::Vector<Resource>>
181 SourceEventMetadata& WithRelatedResources(RelatedResourcesT&& value) {
182 SetRelatedResources(std::forward<RelatedResourcesT>(value));
183 return *this;
184 }
185 template <typename RelatedResourcesT = Resource>
186 SourceEventMetadata& AddRelatedResources(RelatedResourcesT&& value) {
187 m_relatedResourcesHasBeenSet = true;
188 m_relatedResources.emplace_back(std::forward<RelatedResourcesT>(value));
189 return *this;
190 }
192 private:
193 Aws::String m_eventTypeVersion;
194
195 Aws::String m_sourceEventId;
196
197 Aws::String m_eventOriginRegion;
198
199 Aws::String m_relatedAccount;
200
201 Aws::String m_source;
202
203 Aws::Utils::DateTime m_eventOccurrenceTime{};
204
205 Aws::String m_eventType;
206
207 Aws::Vector<Resource> m_relatedResources;
208 bool m_eventTypeVersionHasBeenSet = false;
209 bool m_sourceEventIdHasBeenSet = false;
210 bool m_eventOriginRegionHasBeenSet = false;
211 bool m_relatedAccountHasBeenSet = false;
212 bool m_sourceHasBeenSet = false;
213 bool m_eventOccurrenceTimeHasBeenSet = false;
214 bool m_eventTypeHasBeenSet = false;
215 bool m_relatedResourcesHasBeenSet = false;
216};
217
218} // namespace Model
219} // namespace Notifications
220} // namespace Aws
AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NOTIFICATIONS_API SourceEventMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
SourceEventMetadata & AddRelatedResources(RelatedResourcesT &&value)
void SetEventOriginRegion(EventOriginRegionT &&value)
SourceEventMetadata & WithEventOccurrenceTime(EventOccurrenceTimeT &&value)
const Aws::Vector< Resource > & GetRelatedResources() const
SourceEventMetadata & WithEventTypeVersion(EventTypeVersionT &&value)
SourceEventMetadata & WithRelatedResources(RelatedResourcesT &&value)
SourceEventMetadata & WithSource(SourceT &&value)
void SetRelatedResources(RelatedResourcesT &&value)
const Aws::Utils::DateTime & GetEventOccurrenceTime() const
SourceEventMetadata & WithRelatedAccount(RelatedAccountT &&value)
SourceEventMetadata & WithEventType(EventTypeT &&value)
AWS_NOTIFICATIONS_API SourceEventMetadata()=default
AWS_NOTIFICATIONS_API SourceEventMetadata(Aws::Utils::Json::JsonView jsonValue)
SourceEventMetadata & WithSourceEventId(SourceEventIdT &&value)
void SetEventTypeVersion(EventTypeVersionT &&value)
SourceEventMetadata & WithEventOriginRegion(EventOriginRegionT &&value)
void SetEventOccurrenceTime(EventOccurrenceTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue