7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/cloudtrail/model/Resource.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
34 AWS_CLOUDTRAIL_API
Event() =
default;
45 template <
typename EventIdT = Aws::String>
47 m_eventIdHasBeenSet =
true;
48 m_eventId = std::forward<EventIdT>(value);
50 template <
typename EventIdT = Aws::String>
63 template <
typename EventNameT = Aws::String>
65 m_eventNameHasBeenSet =
true;
66 m_eventName = std::forward<EventNameT>(value);
68 template <
typename EventNameT = Aws::String>
81 template <
typename ReadOnlyT = Aws::String>
83 m_readOnlyHasBeenSet =
true;
84 m_readOnly = std::forward<ReadOnlyT>(value);
86 template <
typename ReadOnlyT = Aws::String>
101 template <
typename AccessKeyIdT = Aws::String>
103 m_accessKeyIdHasBeenSet =
true;
104 m_accessKeyId = std::forward<AccessKeyIdT>(value);
106 template <
typename AccessKeyIdT = Aws::String>
119 template <
typename EventTimeT = Aws::Utils::DateTime>
121 m_eventTimeHasBeenSet =
true;
122 m_eventTime = std::forward<EventTimeT>(value);
124 template <
typename EventTimeT = Aws::Utils::DateTime>
137 template <
typename EventSourceT = Aws::String>
139 m_eventSourceHasBeenSet =
true;
140 m_eventSource = std::forward<EventSourceT>(value);
142 template <
typename EventSourceT = Aws::String>
156 template <
typename UsernameT = Aws::String>
158 m_usernameHasBeenSet =
true;
159 m_username = std::forward<UsernameT>(value);
161 template <
typename UsernameT = Aws::String>
174 template <
typename ResourcesT = Aws::Vector<Resource>>
176 m_resourcesHasBeenSet =
true;
177 m_resources = std::forward<ResourcesT>(value);
179 template <
typename ResourcesT = Aws::Vector<Resource>>
184 template <
typename ResourcesT = Resource>
186 m_resourcesHasBeenSet =
true;
187 m_resources.emplace_back(std::forward<ResourcesT>(value));
198 template <
typename CloudTrailEventT = Aws::String>
200 m_cloudTrailEventHasBeenSet =
true;
201 m_cloudTrailEvent = std::forward<CloudTrailEventT>(value);
203 template <
typename CloudTrailEventT = Aws::String>
211 bool m_eventIdHasBeenSet =
false;
214 bool m_eventNameHasBeenSet =
false;
217 bool m_readOnlyHasBeenSet =
false;
220 bool m_accessKeyIdHasBeenSet =
false;
223 bool m_eventTimeHasBeenSet =
false;
226 bool m_eventSourceHasBeenSet =
false;
229 bool m_usernameHasBeenSet =
false;
232 bool m_resourcesHasBeenSet =
false;
235 bool m_cloudTrailEventHasBeenSet =
false;
void SetUsername(UsernameT &&value)
void SetResources(ResourcesT &&value)
bool EventSourceHasBeenSet() const
AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const
bool EventTimeHasBeenSet() const
Event & WithEventSource(EventSourceT &&value)
bool CloudTrailEventHasBeenSet() const
const Aws::String & GetEventSource() const
Event & WithAccessKeyId(AccessKeyIdT &&value)
const Aws::Utils::DateTime & GetEventTime() const
bool AccessKeyIdHasBeenSet() const
const Aws::String & GetReadOnly() const
void SetEventId(EventIdT &&value)
const Aws::String & GetUsername() const
const Aws::String & GetEventName() const
AWS_CLOUDTRAIL_API Event & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEventTime(EventTimeT &&value)
Event & WithEventName(EventNameT &&value)
void SetEventSource(EventSourceT &&value)
Event & WithResources(ResourcesT &&value)
Event & WithReadOnly(ReadOnlyT &&value)
AWS_CLOUDTRAIL_API Event(Aws::Utils::Json::JsonView jsonValue)
Event & WithEventTime(EventTimeT &&value)
void SetEventName(EventNameT &&value)
AWS_CLOUDTRAIL_API Event()=default
const Aws::String & GetAccessKeyId() const
void SetCloudTrailEvent(CloudTrailEventT &&value)
bool ReadOnlyHasBeenSet() const
Event & WithUsername(UsernameT &&value)
const Aws::String & GetEventId() const
Event & AddResources(ResourcesT &&value)
const Aws::String & GetCloudTrailEvent() const
bool EventIdHasBeenSet() const
void SetAccessKeyId(AccessKeyIdT &&value)
bool ResourcesHasBeenSet() const
bool EventNameHasBeenSet() const
Event & WithCloudTrailEvent(CloudTrailEventT &&value)
void SetReadOnly(ReadOnlyT &&value)
const Aws::Vector< Resource > & GetResources() const
bool UsernameHasBeenSet() const
Event & WithEventId(EventIdT &&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