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>
39 AWS_CLOUDTRAIL_API
Event() =
default;
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>
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>
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>
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>
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>
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>
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>
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>>
142 template<
typename ResourcesT = Resource>
143 Event&
AddResources(ResourcesT&& value) { m_resourcesHasBeenSet =
true; m_resources.emplace_back(std::forward<ResourcesT>(value));
return *
this; }
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>
160 bool m_eventIdHasBeenSet =
false;
163 bool m_eventNameHasBeenSet =
false;
166 bool m_readOnlyHasBeenSet =
false;
169 bool m_accessKeyIdHasBeenSet =
false;
172 bool m_eventTimeHasBeenSet =
false;
175 bool m_eventSourceHasBeenSet =
false;
178 bool m_usernameHasBeenSet =
false;
181 bool m_resourcesHasBeenSet =
false;
184 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