AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ChangeEvent.h
1
6#pragma once
7#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
8#include <aws/application-signals/model/ChangeEventType.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ApplicationSignals {
23namespace Model {
24
33 public:
34 AWS_APPLICATIONSIGNALS_API ChangeEvent() = default;
35 AWS_APPLICATIONSIGNALS_API ChangeEvent(Aws::Utils::Json::JsonView jsonValue);
36 AWS_APPLICATIONSIGNALS_API ChangeEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
45 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
46 template <typename TimestampT = Aws::Utils::DateTime>
47 void SetTimestamp(TimestampT&& value) {
48 m_timestampHasBeenSet = true;
49 m_timestamp = std::forward<TimestampT>(value);
50 }
51 template <typename TimestampT = Aws::Utils::DateTime>
52 ChangeEvent& WithTimestamp(TimestampT&& value) {
53 SetTimestamp(std::forward<TimestampT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetAccountId() const { return m_accountId; }
63 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
64 template <typename AccountIdT = Aws::String>
65 void SetAccountId(AccountIdT&& value) {
66 m_accountIdHasBeenSet = true;
67 m_accountId = std::forward<AccountIdT>(value);
68 }
69 template <typename AccountIdT = Aws::String>
70 ChangeEvent& WithAccountId(AccountIdT&& value) {
71 SetAccountId(std::forward<AccountIdT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetRegion() const { return m_region; }
81 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
82 template <typename RegionT = Aws::String>
83 void SetRegion(RegionT&& value) {
84 m_regionHasBeenSet = true;
85 m_region = std::forward<RegionT>(value);
86 }
87 template <typename RegionT = Aws::String>
88 ChangeEvent& WithRegion(RegionT&& value) {
89 SetRegion(std::forward<RegionT>(value));
90 return *this;
91 }
93
95
117 inline const Aws::Map<Aws::String, Aws::String>& GetEntity() const { return m_entity; }
118 inline bool EntityHasBeenSet() const { return m_entityHasBeenSet; }
119 template <typename EntityT = Aws::Map<Aws::String, Aws::String>>
120 void SetEntity(EntityT&& value) {
121 m_entityHasBeenSet = true;
122 m_entity = std::forward<EntityT>(value);
123 }
124 template <typename EntityT = Aws::Map<Aws::String, Aws::String>>
125 ChangeEvent& WithEntity(EntityT&& value) {
126 SetEntity(std::forward<EntityT>(value));
127 return *this;
128 }
129 template <typename EntityKeyT = Aws::String, typename EntityValueT = Aws::String>
130 ChangeEvent& AddEntity(EntityKeyT&& key, EntityValueT&& value) {
131 m_entityHasBeenSet = true;
132 m_entity.emplace(std::forward<EntityKeyT>(key), std::forward<EntityValueT>(value));
133 return *this;
134 }
136
138
141 inline ChangeEventType GetChangeEventType() const { return m_changeEventType; }
142 inline bool ChangeEventTypeHasBeenSet() const { return m_changeEventTypeHasBeenSet; }
144 m_changeEventTypeHasBeenSet = true;
145 m_changeEventType = value;
146 }
148 SetChangeEventType(value);
149 return *this;
150 }
152
154
159 inline const Aws::String& GetEventId() const { return m_eventId; }
160 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
161 template <typename EventIdT = Aws::String>
162 void SetEventId(EventIdT&& value) {
163 m_eventIdHasBeenSet = true;
164 m_eventId = std::forward<EventIdT>(value);
165 }
166 template <typename EventIdT = Aws::String>
167 ChangeEvent& WithEventId(EventIdT&& value) {
168 SetEventId(std::forward<EventIdT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::String& GetUserName() const { return m_userName; }
178 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
179 template <typename UserNameT = Aws::String>
180 void SetUserName(UserNameT&& value) {
181 m_userNameHasBeenSet = true;
182 m_userName = std::forward<UserNameT>(value);
183 }
184 template <typename UserNameT = Aws::String>
185 ChangeEvent& WithUserName(UserNameT&& value) {
186 SetUserName(std::forward<UserNameT>(value));
187 return *this;
188 }
190
192
195 inline const Aws::String& GetEventName() const { return m_eventName; }
196 inline bool EventNameHasBeenSet() const { return m_eventNameHasBeenSet; }
197 template <typename EventNameT = Aws::String>
198 void SetEventName(EventNameT&& value) {
199 m_eventNameHasBeenSet = true;
200 m_eventName = std::forward<EventNameT>(value);
201 }
202 template <typename EventNameT = Aws::String>
203 ChangeEvent& WithEventName(EventNameT&& value) {
204 SetEventName(std::forward<EventNameT>(value));
205 return *this;
206 }
208 private:
209 Aws::Utils::DateTime m_timestamp{};
210
211 Aws::String m_accountId;
212
213 Aws::String m_region;
214
216
217 ChangeEventType m_changeEventType{ChangeEventType::NOT_SET};
218
219 Aws::String m_eventId;
220
221 Aws::String m_userName;
222
223 Aws::String m_eventName;
224 bool m_timestampHasBeenSet = false;
225 bool m_accountIdHasBeenSet = false;
226 bool m_regionHasBeenSet = false;
227 bool m_entityHasBeenSet = false;
228 bool m_changeEventTypeHasBeenSet = false;
229 bool m_eventIdHasBeenSet = false;
230 bool m_userNameHasBeenSet = false;
231 bool m_eventNameHasBeenSet = false;
232};
233
234} // namespace Model
235} // namespace ApplicationSignals
236} // namespace Aws
const Aws::String & GetAccountId() const
Definition ChangeEvent.h:62
ChangeEvent & WithRegion(RegionT &&value)
Definition ChangeEvent.h:88
const Aws::Utils::DateTime & GetTimestamp() const
Definition ChangeEvent.h:44
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetEventId() const
ChangeEvent & WithUserName(UserNameT &&value)
ChangeEvent & WithChangeEventType(ChangeEventType value)
void SetChangeEventType(ChangeEventType value)
const Aws::String & GetRegion() const
Definition ChangeEvent.h:80
ChangeEvent & WithTimestamp(TimestampT &&value)
Definition ChangeEvent.h:52
AWS_APPLICATIONSIGNALS_API ChangeEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
ChangeEvent & AddEntity(EntityKeyT &&key, EntityValueT &&value)
ChangeEvent & WithEntity(EntityT &&value)
AWS_APPLICATIONSIGNALS_API ChangeEvent()=default
ChangeEvent & WithEventName(EventNameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetEntity() const
const Aws::String & GetUserName() const
AWS_APPLICATIONSIGNALS_API ChangeEvent(Aws::Utils::Json::JsonView jsonValue)
ChangeEvent & WithEventId(EventIdT &&value)
const Aws::String & GetEventName() const
ChangeEvent & WithAccountId(AccountIdT &&value)
Definition ChangeEvent.h:70
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
Aws::Utils::Json::JsonValue JsonValue