AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SourceEventMetadata.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/notifications/model/Resource.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Notifications
25{
26namespace Model
27{
28
39 {
40 public:
41 AWS_NOTIFICATIONS_API SourceEventMetadata() = default;
42 AWS_NOTIFICATIONS_API SourceEventMetadata(Aws::Utils::Json::JsonView jsonValue);
43 AWS_NOTIFICATIONS_API SourceEventMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetEventTypeVersion() const { return m_eventTypeVersion; }
52 inline bool EventTypeVersionHasBeenSet() const { return m_eventTypeVersionHasBeenSet; }
53 template<typename EventTypeVersionT = Aws::String>
54 void SetEventTypeVersion(EventTypeVersionT&& value) { m_eventTypeVersionHasBeenSet = true; m_eventTypeVersion = std::forward<EventTypeVersionT>(value); }
55 template<typename EventTypeVersionT = Aws::String>
56 SourceEventMetadata& WithEventTypeVersion(EventTypeVersionT&& value) { SetEventTypeVersion(std::forward<EventTypeVersionT>(value)); return *this;}
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) { m_sourceEventIdHasBeenSet = true; m_sourceEventId = std::forward<SourceEventIdT>(value); }
67 template<typename SourceEventIdT = Aws::String>
68 SourceEventMetadata& WithSourceEventId(SourceEventIdT&& value) { SetSourceEventId(std::forward<SourceEventIdT>(value)); return *this;}
70
72
75 inline const Aws::String& GetEventOriginRegion() const { return m_eventOriginRegion; }
76 inline bool EventOriginRegionHasBeenSet() const { return m_eventOriginRegionHasBeenSet; }
77 template<typename EventOriginRegionT = Aws::String>
78 void SetEventOriginRegion(EventOriginRegionT&& value) { m_eventOriginRegionHasBeenSet = true; m_eventOriginRegion = std::forward<EventOriginRegionT>(value); }
79 template<typename EventOriginRegionT = Aws::String>
80 SourceEventMetadata& WithEventOriginRegion(EventOriginRegionT&& value) { SetEventOriginRegion(std::forward<EventOriginRegionT>(value)); return *this;}
82
84
87 inline const Aws::String& GetRelatedAccount() const { return m_relatedAccount; }
88 inline bool RelatedAccountHasBeenSet() const { return m_relatedAccountHasBeenSet; }
89 template<typename RelatedAccountT = Aws::String>
90 void SetRelatedAccount(RelatedAccountT&& value) { m_relatedAccountHasBeenSet = true; m_relatedAccount = std::forward<RelatedAccountT>(value); }
91 template<typename RelatedAccountT = Aws::String>
92 SourceEventMetadata& WithRelatedAccount(RelatedAccountT&& value) { SetRelatedAccount(std::forward<RelatedAccountT>(value)); return *this;}
94
96
100 inline const Aws::String& GetSource() const { return m_source; }
101 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
102 template<typename SourceT = Aws::String>
103 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
104 template<typename SourceT = Aws::String>
105 SourceEventMetadata& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
107
109
113 inline const Aws::Utils::DateTime& GetEventOccurrenceTime() const { return m_eventOccurrenceTime; }
114 inline bool EventOccurrenceTimeHasBeenSet() const { return m_eventOccurrenceTimeHasBeenSet; }
115 template<typename EventOccurrenceTimeT = Aws::Utils::DateTime>
116 void SetEventOccurrenceTime(EventOccurrenceTimeT&& value) { m_eventOccurrenceTimeHasBeenSet = true; m_eventOccurrenceTime = std::forward<EventOccurrenceTimeT>(value); }
117 template<typename EventOccurrenceTimeT = Aws::Utils::DateTime>
118 SourceEventMetadata& WithEventOccurrenceTime(EventOccurrenceTimeT&& value) { SetEventOccurrenceTime(std::forward<EventOccurrenceTimeT>(value)); return *this;}
120
122
125 inline const Aws::String& GetEventType() const { return m_eventType; }
126 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
127 template<typename EventTypeT = Aws::String>
128 void SetEventType(EventTypeT&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::forward<EventTypeT>(value); }
129 template<typename EventTypeT = Aws::String>
130 SourceEventMetadata& WithEventType(EventTypeT&& value) { SetEventType(std::forward<EventTypeT>(value)); return *this;}
132
134
137 inline const Aws::Vector<Resource>& GetRelatedResources() const { return m_relatedResources; }
138 inline bool RelatedResourcesHasBeenSet() const { return m_relatedResourcesHasBeenSet; }
139 template<typename RelatedResourcesT = Aws::Vector<Resource>>
140 void SetRelatedResources(RelatedResourcesT&& value) { m_relatedResourcesHasBeenSet = true; m_relatedResources = std::forward<RelatedResourcesT>(value); }
141 template<typename RelatedResourcesT = Aws::Vector<Resource>>
142 SourceEventMetadata& WithRelatedResources(RelatedResourcesT&& value) { SetRelatedResources(std::forward<RelatedResourcesT>(value)); return *this;}
143 template<typename RelatedResourcesT = Resource>
144 SourceEventMetadata& AddRelatedResources(RelatedResourcesT&& value) { m_relatedResourcesHasBeenSet = true; m_relatedResources.emplace_back(std::forward<RelatedResourcesT>(value)); return *this; }
146 private:
147
148 Aws::String m_eventTypeVersion;
149 bool m_eventTypeVersionHasBeenSet = false;
150
151 Aws::String m_sourceEventId;
152 bool m_sourceEventIdHasBeenSet = false;
153
154 Aws::String m_eventOriginRegion;
155 bool m_eventOriginRegionHasBeenSet = false;
156
157 Aws::String m_relatedAccount;
158 bool m_relatedAccountHasBeenSet = false;
159
160 Aws::String m_source;
161 bool m_sourceHasBeenSet = false;
162
163 Aws::Utils::DateTime m_eventOccurrenceTime{};
164 bool m_eventOccurrenceTimeHasBeenSet = false;
165
166 Aws::String m_eventType;
167 bool m_eventTypeHasBeenSet = false;
168
169 Aws::Vector<Resource> m_relatedResources;
170 bool m_relatedResourcesHasBeenSet = false;
171 };
172
173} // namespace Model
174} // namespace Notifications
175} // 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