AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Event.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_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/cloudtrail/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 CloudTrail
25{
26namespace Model
27{
28
36 class Event
37 {
38 public:
39 AWS_CLOUDTRAIL_API Event() = default;
40 AWS_CLOUDTRAIL_API Event(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CLOUDTRAIL_API Event& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetEventId() const { return m_eventId; }
50 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
51 template<typename EventIdT = Aws::String>
52 void SetEventId(EventIdT&& value) { m_eventIdHasBeenSet = true; m_eventId = std::forward<EventIdT>(value); }
53 template<typename EventIdT = Aws::String>
54 Event& WithEventId(EventIdT&& value) { SetEventId(std::forward<EventIdT>(value)); return *this;}
56
58
61 inline const Aws::String& GetEventName() const { return m_eventName; }
62 inline bool EventNameHasBeenSet() const { return m_eventNameHasBeenSet; }
63 template<typename EventNameT = Aws::String>
64 void SetEventName(EventNameT&& value) { m_eventNameHasBeenSet = true; m_eventName = std::forward<EventNameT>(value); }
65 template<typename EventNameT = Aws::String>
66 Event& WithEventName(EventNameT&& value) { SetEventName(std::forward<EventNameT>(value)); return *this;}
68
70
73 inline const Aws::String& GetReadOnly() const { return m_readOnly; }
74 inline bool ReadOnlyHasBeenSet() const { return m_readOnlyHasBeenSet; }
75 template<typename ReadOnlyT = Aws::String>
76 void SetReadOnly(ReadOnlyT&& value) { m_readOnlyHasBeenSet = true; m_readOnly = std::forward<ReadOnlyT>(value); }
77 template<typename ReadOnlyT = Aws::String>
78 Event& WithReadOnly(ReadOnlyT&& value) { SetReadOnly(std::forward<ReadOnlyT>(value)); return *this;}
80
82
87 inline const Aws::String& GetAccessKeyId() const { return m_accessKeyId; }
88 inline bool AccessKeyIdHasBeenSet() const { return m_accessKeyIdHasBeenSet; }
89 template<typename AccessKeyIdT = Aws::String>
90 void SetAccessKeyId(AccessKeyIdT&& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = std::forward<AccessKeyIdT>(value); }
91 template<typename AccessKeyIdT = Aws::String>
92 Event& WithAccessKeyId(AccessKeyIdT&& value) { SetAccessKeyId(std::forward<AccessKeyIdT>(value)); return *this;}
94
96
99 inline const Aws::Utils::DateTime& GetEventTime() const { return m_eventTime; }
100 inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; }
101 template<typename EventTimeT = Aws::Utils::DateTime>
102 void SetEventTime(EventTimeT&& value) { m_eventTimeHasBeenSet = true; m_eventTime = std::forward<EventTimeT>(value); }
103 template<typename EventTimeT = Aws::Utils::DateTime>
104 Event& WithEventTime(EventTimeT&& value) { SetEventTime(std::forward<EventTimeT>(value)); return *this;}
106
108
111 inline const Aws::String& GetEventSource() const { return m_eventSource; }
112 inline bool EventSourceHasBeenSet() const { return m_eventSourceHasBeenSet; }
113 template<typename EventSourceT = Aws::String>
114 void SetEventSource(EventSourceT&& value) { m_eventSourceHasBeenSet = true; m_eventSource = std::forward<EventSourceT>(value); }
115 template<typename EventSourceT = Aws::String>
116 Event& WithEventSource(EventSourceT&& value) { SetEventSource(std::forward<EventSourceT>(value)); return *this;}
118
120
124 inline const Aws::String& GetUsername() const { return m_username; }
125 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
126 template<typename UsernameT = Aws::String>
127 void SetUsername(UsernameT&& value) { m_usernameHasBeenSet = true; m_username = std::forward<UsernameT>(value); }
128 template<typename UsernameT = Aws::String>
129 Event& WithUsername(UsernameT&& value) { SetUsername(std::forward<UsernameT>(value)); return *this;}
131
133
136 inline const Aws::Vector<Resource>& GetResources() const { return m_resources; }
137 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
138 template<typename ResourcesT = Aws::Vector<Resource>>
139 void SetResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources = std::forward<ResourcesT>(value); }
140 template<typename ResourcesT = Aws::Vector<Resource>>
141 Event& WithResources(ResourcesT&& value) { SetResources(std::forward<ResourcesT>(value)); return *this;}
142 template<typename ResourcesT = Resource>
143 Event& AddResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources.emplace_back(std::forward<ResourcesT>(value)); return *this; }
145
147
150 inline const Aws::String& GetCloudTrailEvent() const { return m_cloudTrailEvent; }
151 inline bool CloudTrailEventHasBeenSet() const { return m_cloudTrailEventHasBeenSet; }
152 template<typename CloudTrailEventT = Aws::String>
153 void SetCloudTrailEvent(CloudTrailEventT&& value) { m_cloudTrailEventHasBeenSet = true; m_cloudTrailEvent = std::forward<CloudTrailEventT>(value); }
154 template<typename CloudTrailEventT = Aws::String>
155 Event& WithCloudTrailEvent(CloudTrailEventT&& value) { SetCloudTrailEvent(std::forward<CloudTrailEventT>(value)); return *this;}
157 private:
158
159 Aws::String m_eventId;
160 bool m_eventIdHasBeenSet = false;
161
162 Aws::String m_eventName;
163 bool m_eventNameHasBeenSet = false;
164
165 Aws::String m_readOnly;
166 bool m_readOnlyHasBeenSet = false;
167
168 Aws::String m_accessKeyId;
169 bool m_accessKeyIdHasBeenSet = false;
170
171 Aws::Utils::DateTime m_eventTime{};
172 bool m_eventTimeHasBeenSet = false;
173
174 Aws::String m_eventSource;
175 bool m_eventSourceHasBeenSet = false;
176
177 Aws::String m_username;
178 bool m_usernameHasBeenSet = false;
179
180 Aws::Vector<Resource> m_resources;
181 bool m_resourcesHasBeenSet = false;
182
183 Aws::String m_cloudTrailEvent;
184 bool m_cloudTrailEventHasBeenSet = false;
185 };
186
187} // namespace Model
188} // namespace CloudTrail
189} // namespace Aws
void SetUsername(UsernameT &&value)
Definition Event.h:127
void SetResources(ResourcesT &&value)
Definition Event.h:139
bool EventSourceHasBeenSet() const
Definition Event.h:112
AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const
bool EventTimeHasBeenSet() const
Definition Event.h:100
Event & WithEventSource(EventSourceT &&value)
Definition Event.h:116
bool CloudTrailEventHasBeenSet() const
Definition Event.h:151
const Aws::String & GetEventSource() const
Definition Event.h:111
Event & WithAccessKeyId(AccessKeyIdT &&value)
Definition Event.h:92
const Aws::Utils::DateTime & GetEventTime() const
Definition Event.h:99
bool AccessKeyIdHasBeenSet() const
Definition Event.h:88
const Aws::String & GetReadOnly() const
Definition Event.h:73
void SetEventId(EventIdT &&value)
Definition Event.h:52
const Aws::String & GetUsername() const
Definition Event.h:124
const Aws::String & GetEventName() const
Definition Event.h:61
AWS_CLOUDTRAIL_API Event & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEventTime(EventTimeT &&value)
Definition Event.h:102
Event & WithEventName(EventNameT &&value)
Definition Event.h:66
void SetEventSource(EventSourceT &&value)
Definition Event.h:114
Event & WithResources(ResourcesT &&value)
Definition Event.h:141
Event & WithReadOnly(ReadOnlyT &&value)
Definition Event.h:78
AWS_CLOUDTRAIL_API Event(Aws::Utils::Json::JsonView jsonValue)
Event & WithEventTime(EventTimeT &&value)
Definition Event.h:104
void SetEventName(EventNameT &&value)
Definition Event.h:64
AWS_CLOUDTRAIL_API Event()=default
const Aws::String & GetAccessKeyId() const
Definition Event.h:87
void SetCloudTrailEvent(CloudTrailEventT &&value)
Definition Event.h:153
bool ReadOnlyHasBeenSet() const
Definition Event.h:74
Event & WithUsername(UsernameT &&value)
Definition Event.h:129
const Aws::String & GetEventId() const
Definition Event.h:49
Event & AddResources(ResourcesT &&value)
Definition Event.h:143
const Aws::String & GetCloudTrailEvent() const
Definition Event.h:150
bool EventIdHasBeenSet() const
Definition Event.h:50
void SetAccessKeyId(AccessKeyIdT &&value)
Definition Event.h:90
bool ResourcesHasBeenSet() const
Definition Event.h:137
bool EventNameHasBeenSet() const
Definition Event.h:62
Event & WithCloudTrailEvent(CloudTrailEventT &&value)
Definition Event.h:155
void SetReadOnly(ReadOnlyT &&value)
Definition Event.h:76
const Aws::Vector< Resource > & GetResources() const
Definition Event.h:136
bool UsernameHasBeenSet() const
Definition Event.h:125
Event & WithEventId(EventIdT &&value)
Definition Event.h:54
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue