AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; }
52 inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); }
53 inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); }
54 inline Event& WithEventId(const Aws::String& value) { SetEventId(value); return *this;}
55 inline Event& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;}
56 inline Event& WithEventId(const char* value) { SetEventId(value); return *this;}
58
60
63 inline const Aws::String& GetEventName() const{ return m_eventName; }
64 inline bool EventNameHasBeenSet() const { return m_eventNameHasBeenSet; }
65 inline void SetEventName(const Aws::String& value) { m_eventNameHasBeenSet = true; m_eventName = value; }
66 inline void SetEventName(Aws::String&& value) { m_eventNameHasBeenSet = true; m_eventName = std::move(value); }
67 inline void SetEventName(const char* value) { m_eventNameHasBeenSet = true; m_eventName.assign(value); }
68 inline Event& WithEventName(const Aws::String& value) { SetEventName(value); return *this;}
69 inline Event& WithEventName(Aws::String&& value) { SetEventName(std::move(value)); return *this;}
70 inline Event& WithEventName(const char* value) { SetEventName(value); return *this;}
72
74
77 inline const Aws::String& GetReadOnly() const{ return m_readOnly; }
78 inline bool ReadOnlyHasBeenSet() const { return m_readOnlyHasBeenSet; }
79 inline void SetReadOnly(const Aws::String& value) { m_readOnlyHasBeenSet = true; m_readOnly = value; }
80 inline void SetReadOnly(Aws::String&& value) { m_readOnlyHasBeenSet = true; m_readOnly = std::move(value); }
81 inline void SetReadOnly(const char* value) { m_readOnlyHasBeenSet = true; m_readOnly.assign(value); }
82 inline Event& WithReadOnly(const Aws::String& value) { SetReadOnly(value); return *this;}
83 inline Event& WithReadOnly(Aws::String&& value) { SetReadOnly(std::move(value)); return *this;}
84 inline Event& WithReadOnly(const char* value) { SetReadOnly(value); return *this;}
86
88
93 inline const Aws::String& GetAccessKeyId() const{ return m_accessKeyId; }
94 inline bool AccessKeyIdHasBeenSet() const { return m_accessKeyIdHasBeenSet; }
95 inline void SetAccessKeyId(const Aws::String& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = value; }
96 inline void SetAccessKeyId(Aws::String&& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = std::move(value); }
97 inline void SetAccessKeyId(const char* value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId.assign(value); }
98 inline Event& WithAccessKeyId(const Aws::String& value) { SetAccessKeyId(value); return *this;}
99 inline Event& WithAccessKeyId(Aws::String&& value) { SetAccessKeyId(std::move(value)); return *this;}
100 inline Event& WithAccessKeyId(const char* value) { SetAccessKeyId(value); return *this;}
102
104
107 inline const Aws::Utils::DateTime& GetEventTime() const{ return m_eventTime; }
108 inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; }
109 inline void SetEventTime(const Aws::Utils::DateTime& value) { m_eventTimeHasBeenSet = true; m_eventTime = value; }
110 inline void SetEventTime(Aws::Utils::DateTime&& value) { m_eventTimeHasBeenSet = true; m_eventTime = std::move(value); }
111 inline Event& WithEventTime(const Aws::Utils::DateTime& value) { SetEventTime(value); return *this;}
112 inline Event& WithEventTime(Aws::Utils::DateTime&& value) { SetEventTime(std::move(value)); return *this;}
114
116
119 inline const Aws::String& GetEventSource() const{ return m_eventSource; }
120 inline bool EventSourceHasBeenSet() const { return m_eventSourceHasBeenSet; }
121 inline void SetEventSource(const Aws::String& value) { m_eventSourceHasBeenSet = true; m_eventSource = value; }
122 inline void SetEventSource(Aws::String&& value) { m_eventSourceHasBeenSet = true; m_eventSource = std::move(value); }
123 inline void SetEventSource(const char* value) { m_eventSourceHasBeenSet = true; m_eventSource.assign(value); }
124 inline Event& WithEventSource(const Aws::String& value) { SetEventSource(value); return *this;}
125 inline Event& WithEventSource(Aws::String&& value) { SetEventSource(std::move(value)); return *this;}
126 inline Event& WithEventSource(const char* value) { SetEventSource(value); return *this;}
128
130
134 inline const Aws::String& GetUsername() const{ return m_username; }
135 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
136 inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
137 inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
138 inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
139 inline Event& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
140 inline Event& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
141 inline Event& WithUsername(const char* value) { SetUsername(value); return *this;}
143
145
148 inline const Aws::Vector<Resource>& GetResources() const{ return m_resources; }
149 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
150 inline void SetResources(const Aws::Vector<Resource>& value) { m_resourcesHasBeenSet = true; m_resources = value; }
151 inline void SetResources(Aws::Vector<Resource>&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
152 inline Event& WithResources(const Aws::Vector<Resource>& value) { SetResources(value); return *this;}
153 inline Event& WithResources(Aws::Vector<Resource>&& value) { SetResources(std::move(value)); return *this;}
154 inline Event& AddResources(const Resource& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
155 inline Event& AddResources(Resource&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; }
157
159
162 inline const Aws::String& GetCloudTrailEvent() const{ return m_cloudTrailEvent; }
163 inline bool CloudTrailEventHasBeenSet() const { return m_cloudTrailEventHasBeenSet; }
164 inline void SetCloudTrailEvent(const Aws::String& value) { m_cloudTrailEventHasBeenSet = true; m_cloudTrailEvent = value; }
165 inline void SetCloudTrailEvent(Aws::String&& value) { m_cloudTrailEventHasBeenSet = true; m_cloudTrailEvent = std::move(value); }
166 inline void SetCloudTrailEvent(const char* value) { m_cloudTrailEventHasBeenSet = true; m_cloudTrailEvent.assign(value); }
167 inline Event& WithCloudTrailEvent(const Aws::String& value) { SetCloudTrailEvent(value); return *this;}
168 inline Event& WithCloudTrailEvent(Aws::String&& value) { SetCloudTrailEvent(std::move(value)); return *this;}
169 inline Event& WithCloudTrailEvent(const char* value) { SetCloudTrailEvent(value); return *this;}
171 private:
172
173 Aws::String m_eventId;
174 bool m_eventIdHasBeenSet = false;
175
176 Aws::String m_eventName;
177 bool m_eventNameHasBeenSet = false;
178
179 Aws::String m_readOnly;
180 bool m_readOnlyHasBeenSet = false;
181
182 Aws::String m_accessKeyId;
183 bool m_accessKeyIdHasBeenSet = false;
184
185 Aws::Utils::DateTime m_eventTime;
186 bool m_eventTimeHasBeenSet = false;
187
188 Aws::String m_eventSource;
189 bool m_eventSourceHasBeenSet = false;
190
191 Aws::String m_username;
192 bool m_usernameHasBeenSet = false;
193
194 Aws::Vector<Resource> m_resources;
195 bool m_resourcesHasBeenSet = false;
196
197 Aws::String m_cloudTrailEvent;
198 bool m_cloudTrailEventHasBeenSet = false;
199 };
200
201} // namespace Model
202} // namespace CloudTrail
203} // namespace Aws
Event & WithCloudTrailEvent(const Aws::String &value)
Definition Event.h:167
void SetEventName(Aws::String &&value)
Definition Event.h:66
void SetCloudTrailEvent(const char *value)
Definition Event.h:166
Event & WithResources(const Aws::Vector< Resource > &value)
Definition Event.h:152
bool EventSourceHasBeenSet() const
Definition Event.h:120
AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const
Event & WithEventName(const char *value)
Definition Event.h:70
bool EventTimeHasBeenSet() const
Definition Event.h:108
Event & WithEventName(Aws::String &&value)
Definition Event.h:69
Event & WithCloudTrailEvent(const char *value)
Definition Event.h:169
void SetResources(const Aws::Vector< Resource > &value)
Definition Event.h:150
void SetEventId(Aws::String &&value)
Definition Event.h:52
void SetAccessKeyId(Aws::String &&value)
Definition Event.h:96
bool CloudTrailEventHasBeenSet() const
Definition Event.h:163
const Aws::String & GetEventSource() const
Definition Event.h:119
void SetCloudTrailEvent(const Aws::String &value)
Definition Event.h:164
const Aws::Utils::DateTime & GetEventTime() const
Definition Event.h:107
AWS_CLOUDTRAIL_API Event()
bool AccessKeyIdHasBeenSet() const
Definition Event.h:94
const Aws::String & GetReadOnly() const
Definition Event.h:77
void SetAccessKeyId(const Aws::String &value)
Definition Event.h:95
void SetEventSource(const Aws::String &value)
Definition Event.h:121
Event & WithEventName(const Aws::String &value)
Definition Event.h:68
void SetReadOnly(Aws::String &&value)
Definition Event.h:80
void SetEventSource(const char *value)
Definition Event.h:123
const Aws::String & GetUsername() const
Definition Event.h:134
const Aws::String & GetEventName() const
Definition Event.h:63
Event & WithEventId(const Aws::String &value)
Definition Event.h:54
void SetReadOnly(const char *value)
Definition Event.h:81
AWS_CLOUDTRAIL_API Event & operator=(Aws::Utils::Json::JsonView jsonValue)
Event & WithEventId(const char *value)
Definition Event.h:56
Event & WithEventSource(const char *value)
Definition Event.h:126
Event & WithAccessKeyId(const char *value)
Definition Event.h:100
Event & WithResources(Aws::Vector< Resource > &&value)
Definition Event.h:153
void SetReadOnly(const Aws::String &value)
Definition Event.h:79
Event & WithEventTime(const Aws::Utils::DateTime &value)
Definition Event.h:111
Event & WithEventId(Aws::String &&value)
Definition Event.h:55
void SetEventName(const Aws::String &value)
Definition Event.h:65
AWS_CLOUDTRAIL_API Event(Aws::Utils::Json::JsonView jsonValue)
Event & WithAccessKeyId(const Aws::String &value)
Definition Event.h:98
void SetEventId(const Aws::String &value)
Definition Event.h:51
Event & WithCloudTrailEvent(Aws::String &&value)
Definition Event.h:168
void SetCloudTrailEvent(Aws::String &&value)
Definition Event.h:165
Event & WithReadOnly(Aws::String &&value)
Definition Event.h:83
void SetUsername(const char *value)
Definition Event.h:138
Event & WithUsername(Aws::String &&value)
Definition Event.h:140
Event & WithEventSource(Aws::String &&value)
Definition Event.h:125
Event & WithAccessKeyId(Aws::String &&value)
Definition Event.h:99
const Aws::String & GetAccessKeyId() const
Definition Event.h:93
Event & WithEventTime(Aws::Utils::DateTime &&value)
Definition Event.h:112
void SetResources(Aws::Vector< Resource > &&value)
Definition Event.h:151
bool ReadOnlyHasBeenSet() const
Definition Event.h:78
const Aws::String & GetEventId() const
Definition Event.h:49
void SetUsername(const Aws::String &value)
Definition Event.h:136
const Aws::String & GetCloudTrailEvent() const
Definition Event.h:162
void SetEventTime(Aws::Utils::DateTime &&value)
Definition Event.h:110
bool EventIdHasBeenSet() const
Definition Event.h:50
void SetEventTime(const Aws::Utils::DateTime &value)
Definition Event.h:109
Event & AddResources(Resource &&value)
Definition Event.h:155
bool ResourcesHasBeenSet() const
Definition Event.h:149
void SetEventId(const char *value)
Definition Event.h:53
bool EventNameHasBeenSet() const
Definition Event.h:64
void SetEventName(const char *value)
Definition Event.h:67
Event & WithEventSource(const Aws::String &value)
Definition Event.h:124
void SetAccessKeyId(const char *value)
Definition Event.h:97
Event & WithUsername(const char *value)
Definition Event.h:141
Event & WithUsername(const Aws::String &value)
Definition Event.h:139
const Aws::Vector< Resource > & GetResources() const
Definition Event.h:148
bool UsernameHasBeenSet() const
Definition Event.h:135
void SetEventSource(Aws::String &&value)
Definition Event.h:122
void SetUsername(Aws::String &&value)
Definition Event.h:137
Event & WithReadOnly(const char *value)
Definition Event.h:84
Event & WithReadOnly(const Aws::String &value)
Definition Event.h:82
Event & AddResources(const Resource &value)
Definition Event.h:154
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue