AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
GetTrailStatusResult.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace CloudTrail {
23namespace Model {
31 public:
32 AWS_CLOUDTRAIL_API GetTrailStatusResult() = default;
35
37
41 inline bool GetIsLogging() const { return m_isLogging; }
42 inline void SetIsLogging(bool value) {
43 m_isLoggingHasBeenSet = true;
44 m_isLogging = value;
45 }
46 inline GetTrailStatusResult& WithIsLogging(bool value) {
47 SetIsLogging(value);
48 return *this;
49 }
51
53
64 inline const Aws::String& GetLatestDeliveryError() const { return m_latestDeliveryError; }
65 template <typename LatestDeliveryErrorT = Aws::String>
66 void SetLatestDeliveryError(LatestDeliveryErrorT&& value) {
67 m_latestDeliveryErrorHasBeenSet = true;
68 m_latestDeliveryError = std::forward<LatestDeliveryErrorT>(value);
69 }
70 template <typename LatestDeliveryErrorT = Aws::String>
71 GetTrailStatusResult& WithLatestDeliveryError(LatestDeliveryErrorT&& value) {
72 SetLatestDeliveryError(std::forward<LatestDeliveryErrorT>(value));
73 return *this;
74 }
76
78
84 inline const Aws::String& GetLatestNotificationError() const { return m_latestNotificationError; }
85 template <typename LatestNotificationErrorT = Aws::String>
86 void SetLatestNotificationError(LatestNotificationErrorT&& value) {
87 m_latestNotificationErrorHasBeenSet = true;
88 m_latestNotificationError = std::forward<LatestNotificationErrorT>(value);
89 }
90 template <typename LatestNotificationErrorT = Aws::String>
91 GetTrailStatusResult& WithLatestNotificationError(LatestNotificationErrorT&& value) {
92 SetLatestNotificationError(std::forward<LatestNotificationErrorT>(value));
93 return *this;
94 }
96
98
102 inline const Aws::Utils::DateTime& GetLatestDeliveryTime() const { return m_latestDeliveryTime; }
103 template <typename LatestDeliveryTimeT = Aws::Utils::DateTime>
104 void SetLatestDeliveryTime(LatestDeliveryTimeT&& value) {
105 m_latestDeliveryTimeHasBeenSet = true;
106 m_latestDeliveryTime = std::forward<LatestDeliveryTimeT>(value);
107 }
108 template <typename LatestDeliveryTimeT = Aws::Utils::DateTime>
109 GetTrailStatusResult& WithLatestDeliveryTime(LatestDeliveryTimeT&& value) {
110 SetLatestDeliveryTime(std::forward<LatestDeliveryTimeT>(value));
111 return *this;
112 }
114
116
120 inline const Aws::Utils::DateTime& GetLatestNotificationTime() const { return m_latestNotificationTime; }
121 template <typename LatestNotificationTimeT = Aws::Utils::DateTime>
122 void SetLatestNotificationTime(LatestNotificationTimeT&& value) {
123 m_latestNotificationTimeHasBeenSet = true;
124 m_latestNotificationTime = std::forward<LatestNotificationTimeT>(value);
125 }
126 template <typename LatestNotificationTimeT = Aws::Utils::DateTime>
127 GetTrailStatusResult& WithLatestNotificationTime(LatestNotificationTimeT&& value) {
128 SetLatestNotificationTime(std::forward<LatestNotificationTimeT>(value));
129 return *this;
130 }
132
134
138 inline const Aws::Utils::DateTime& GetStartLoggingTime() const { return m_startLoggingTime; }
139 template <typename StartLoggingTimeT = Aws::Utils::DateTime>
140 void SetStartLoggingTime(StartLoggingTimeT&& value) {
141 m_startLoggingTimeHasBeenSet = true;
142 m_startLoggingTime = std::forward<StartLoggingTimeT>(value);
143 }
144 template <typename StartLoggingTimeT = Aws::Utils::DateTime>
145 GetTrailStatusResult& WithStartLoggingTime(StartLoggingTimeT&& value) {
146 SetStartLoggingTime(std::forward<StartLoggingTimeT>(value));
147 return *this;
148 }
150
152
156 inline const Aws::Utils::DateTime& GetStopLoggingTime() const { return m_stopLoggingTime; }
157 template <typename StopLoggingTimeT = Aws::Utils::DateTime>
158 void SetStopLoggingTime(StopLoggingTimeT&& value) {
159 m_stopLoggingTimeHasBeenSet = true;
160 m_stopLoggingTime = std::forward<StopLoggingTimeT>(value);
161 }
162 template <typename StopLoggingTimeT = Aws::Utils::DateTime>
163 GetTrailStatusResult& WithStopLoggingTime(StopLoggingTimeT&& value) {
164 SetStopLoggingTime(std::forward<StopLoggingTimeT>(value));
165 return *this;
166 }
168
170
174 inline const Aws::String& GetLatestCloudWatchLogsDeliveryError() const { return m_latestCloudWatchLogsDeliveryError; }
175 template <typename LatestCloudWatchLogsDeliveryErrorT = Aws::String>
176 void SetLatestCloudWatchLogsDeliveryError(LatestCloudWatchLogsDeliveryErrorT&& value) {
177 m_latestCloudWatchLogsDeliveryErrorHasBeenSet = true;
178 m_latestCloudWatchLogsDeliveryError = std::forward<LatestCloudWatchLogsDeliveryErrorT>(value);
179 }
180 template <typename LatestCloudWatchLogsDeliveryErrorT = Aws::String>
181 GetTrailStatusResult& WithLatestCloudWatchLogsDeliveryError(LatestCloudWatchLogsDeliveryErrorT&& value) {
182 SetLatestCloudWatchLogsDeliveryError(std::forward<LatestCloudWatchLogsDeliveryErrorT>(value));
183 return *this;
184 }
186
188
192 inline const Aws::Utils::DateTime& GetLatestCloudWatchLogsDeliveryTime() const { return m_latestCloudWatchLogsDeliveryTime; }
193 template <typename LatestCloudWatchLogsDeliveryTimeT = Aws::Utils::DateTime>
194 void SetLatestCloudWatchLogsDeliveryTime(LatestCloudWatchLogsDeliveryTimeT&& value) {
195 m_latestCloudWatchLogsDeliveryTimeHasBeenSet = true;
196 m_latestCloudWatchLogsDeliveryTime = std::forward<LatestCloudWatchLogsDeliveryTimeT>(value);
197 }
198 template <typename LatestCloudWatchLogsDeliveryTimeT = Aws::Utils::DateTime>
199 GetTrailStatusResult& WithLatestCloudWatchLogsDeliveryTime(LatestCloudWatchLogsDeliveryTimeT&& value) {
200 SetLatestCloudWatchLogsDeliveryTime(std::forward<LatestCloudWatchLogsDeliveryTimeT>(value));
201 return *this;
202 }
204
206
210 inline const Aws::Utils::DateTime& GetLatestDigestDeliveryTime() const { return m_latestDigestDeliveryTime; }
211 template <typename LatestDigestDeliveryTimeT = Aws::Utils::DateTime>
212 void SetLatestDigestDeliveryTime(LatestDigestDeliveryTimeT&& value) {
213 m_latestDigestDeliveryTimeHasBeenSet = true;
214 m_latestDigestDeliveryTime = std::forward<LatestDigestDeliveryTimeT>(value);
215 }
216 template <typename LatestDigestDeliveryTimeT = Aws::Utils::DateTime>
217 GetTrailStatusResult& WithLatestDigestDeliveryTime(LatestDigestDeliveryTimeT&& value) {
218 SetLatestDigestDeliveryTime(std::forward<LatestDigestDeliveryTimeT>(value));
219 return *this;
220 }
222
224
235 inline const Aws::String& GetLatestDigestDeliveryError() const { return m_latestDigestDeliveryError; }
236 template <typename LatestDigestDeliveryErrorT = Aws::String>
237 void SetLatestDigestDeliveryError(LatestDigestDeliveryErrorT&& value) {
238 m_latestDigestDeliveryErrorHasBeenSet = true;
239 m_latestDigestDeliveryError = std::forward<LatestDigestDeliveryErrorT>(value);
240 }
241 template <typename LatestDigestDeliveryErrorT = Aws::String>
242 GetTrailStatusResult& WithLatestDigestDeliveryError(LatestDigestDeliveryErrorT&& value) {
243 SetLatestDigestDeliveryError(std::forward<LatestDigestDeliveryErrorT>(value));
244 return *this;
245 }
247
249
252 inline const Aws::String& GetLatestDeliveryAttemptTime() const { return m_latestDeliveryAttemptTime; }
253 template <typename LatestDeliveryAttemptTimeT = Aws::String>
254 void SetLatestDeliveryAttemptTime(LatestDeliveryAttemptTimeT&& value) {
255 m_latestDeliveryAttemptTimeHasBeenSet = true;
256 m_latestDeliveryAttemptTime = std::forward<LatestDeliveryAttemptTimeT>(value);
257 }
258 template <typename LatestDeliveryAttemptTimeT = Aws::String>
259 GetTrailStatusResult& WithLatestDeliveryAttemptTime(LatestDeliveryAttemptTimeT&& value) {
260 SetLatestDeliveryAttemptTime(std::forward<LatestDeliveryAttemptTimeT>(value));
261 return *this;
262 }
264
266
269 inline const Aws::String& GetLatestNotificationAttemptTime() const { return m_latestNotificationAttemptTime; }
270 template <typename LatestNotificationAttemptTimeT = Aws::String>
271 void SetLatestNotificationAttemptTime(LatestNotificationAttemptTimeT&& value) {
272 m_latestNotificationAttemptTimeHasBeenSet = true;
273 m_latestNotificationAttemptTime = std::forward<LatestNotificationAttemptTimeT>(value);
274 }
275 template <typename LatestNotificationAttemptTimeT = Aws::String>
276 GetTrailStatusResult& WithLatestNotificationAttemptTime(LatestNotificationAttemptTimeT&& value) {
277 SetLatestNotificationAttemptTime(std::forward<LatestNotificationAttemptTimeT>(value));
278 return *this;
279 }
281
283
286 inline const Aws::String& GetLatestNotificationAttemptSucceeded() const { return m_latestNotificationAttemptSucceeded; }
287 template <typename LatestNotificationAttemptSucceededT = Aws::String>
288 void SetLatestNotificationAttemptSucceeded(LatestNotificationAttemptSucceededT&& value) {
289 m_latestNotificationAttemptSucceededHasBeenSet = true;
290 m_latestNotificationAttemptSucceeded = std::forward<LatestNotificationAttemptSucceededT>(value);
291 }
292 template <typename LatestNotificationAttemptSucceededT = Aws::String>
293 GetTrailStatusResult& WithLatestNotificationAttemptSucceeded(LatestNotificationAttemptSucceededT&& value) {
294 SetLatestNotificationAttemptSucceeded(std::forward<LatestNotificationAttemptSucceededT>(value));
295 return *this;
296 }
298
300
303 inline const Aws::String& GetLatestDeliveryAttemptSucceeded() const { return m_latestDeliveryAttemptSucceeded; }
304 template <typename LatestDeliveryAttemptSucceededT = Aws::String>
305 void SetLatestDeliveryAttemptSucceeded(LatestDeliveryAttemptSucceededT&& value) {
306 m_latestDeliveryAttemptSucceededHasBeenSet = true;
307 m_latestDeliveryAttemptSucceeded = std::forward<LatestDeliveryAttemptSucceededT>(value);
308 }
309 template <typename LatestDeliveryAttemptSucceededT = Aws::String>
310 GetTrailStatusResult& WithLatestDeliveryAttemptSucceeded(LatestDeliveryAttemptSucceededT&& value) {
311 SetLatestDeliveryAttemptSucceeded(std::forward<LatestDeliveryAttemptSucceededT>(value));
312 return *this;
313 }
315
317
320 inline const Aws::String& GetTimeLoggingStarted() const { return m_timeLoggingStarted; }
321 template <typename TimeLoggingStartedT = Aws::String>
322 void SetTimeLoggingStarted(TimeLoggingStartedT&& value) {
323 m_timeLoggingStartedHasBeenSet = true;
324 m_timeLoggingStarted = std::forward<TimeLoggingStartedT>(value);
325 }
326 template <typename TimeLoggingStartedT = Aws::String>
327 GetTrailStatusResult& WithTimeLoggingStarted(TimeLoggingStartedT&& value) {
328 SetTimeLoggingStarted(std::forward<TimeLoggingStartedT>(value));
329 return *this;
330 }
332
334
337 inline const Aws::String& GetTimeLoggingStopped() const { return m_timeLoggingStopped; }
338 template <typename TimeLoggingStoppedT = Aws::String>
339 void SetTimeLoggingStopped(TimeLoggingStoppedT&& value) {
340 m_timeLoggingStoppedHasBeenSet = true;
341 m_timeLoggingStopped = std::forward<TimeLoggingStoppedT>(value);
342 }
343 template <typename TimeLoggingStoppedT = Aws::String>
344 GetTrailStatusResult& WithTimeLoggingStopped(TimeLoggingStoppedT&& value) {
345 SetTimeLoggingStopped(std::forward<TimeLoggingStoppedT>(value));
346 return *this;
347 }
349
351
352 inline const Aws::String& GetRequestId() const { return m_requestId; }
353 template <typename RequestIdT = Aws::String>
354 void SetRequestId(RequestIdT&& value) {
355 m_requestIdHasBeenSet = true;
356 m_requestId = std::forward<RequestIdT>(value);
357 }
358 template <typename RequestIdT = Aws::String>
359 GetTrailStatusResult& WithRequestId(RequestIdT&& value) {
360 SetRequestId(std::forward<RequestIdT>(value));
361 return *this;
362 }
364 private:
365 bool m_isLogging{false};
366 bool m_isLoggingHasBeenSet = false;
367
368 Aws::String m_latestDeliveryError;
369 bool m_latestDeliveryErrorHasBeenSet = false;
370
371 Aws::String m_latestNotificationError;
372 bool m_latestNotificationErrorHasBeenSet = false;
373
374 Aws::Utils::DateTime m_latestDeliveryTime{};
375 bool m_latestDeliveryTimeHasBeenSet = false;
376
377 Aws::Utils::DateTime m_latestNotificationTime{};
378 bool m_latestNotificationTimeHasBeenSet = false;
379
380 Aws::Utils::DateTime m_startLoggingTime{};
381 bool m_startLoggingTimeHasBeenSet = false;
382
383 Aws::Utils::DateTime m_stopLoggingTime{};
384 bool m_stopLoggingTimeHasBeenSet = false;
385
386 Aws::String m_latestCloudWatchLogsDeliveryError;
387 bool m_latestCloudWatchLogsDeliveryErrorHasBeenSet = false;
388
389 Aws::Utils::DateTime m_latestCloudWatchLogsDeliveryTime{};
390 bool m_latestCloudWatchLogsDeliveryTimeHasBeenSet = false;
391
392 Aws::Utils::DateTime m_latestDigestDeliveryTime{};
393 bool m_latestDigestDeliveryTimeHasBeenSet = false;
394
395 Aws::String m_latestDigestDeliveryError;
396 bool m_latestDigestDeliveryErrorHasBeenSet = false;
397
398 Aws::String m_latestDeliveryAttemptTime;
399 bool m_latestDeliveryAttemptTimeHasBeenSet = false;
400
401 Aws::String m_latestNotificationAttemptTime;
402 bool m_latestNotificationAttemptTimeHasBeenSet = false;
403
404 Aws::String m_latestNotificationAttemptSucceeded;
405 bool m_latestNotificationAttemptSucceededHasBeenSet = false;
406
407 Aws::String m_latestDeliveryAttemptSucceeded;
408 bool m_latestDeliveryAttemptSucceededHasBeenSet = false;
409
410 Aws::String m_timeLoggingStarted;
411 bool m_timeLoggingStartedHasBeenSet = false;
412
413 Aws::String m_timeLoggingStopped;
414 bool m_timeLoggingStoppedHasBeenSet = false;
415
416 Aws::String m_requestId;
417 bool m_requestIdHasBeenSet = false;
418};
419
420} // namespace Model
421} // namespace CloudTrail
422} // namespace Aws
const Aws::Utils::DateTime & GetLatestDeliveryTime() const
GetTrailStatusResult & WithIsLogging(bool value)
GetTrailStatusResult & WithLatestDigestDeliveryError(LatestDigestDeliveryErrorT &&value)
void SetStartLoggingTime(StartLoggingTimeT &&value)
const Aws::String & GetLatestCloudWatchLogsDeliveryError() const
GetTrailStatusResult & WithLatestDeliveryError(LatestDeliveryErrorT &&value)
AWS_CLOUDTRAIL_API GetTrailStatusResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetTrailStatusResult & WithLatestCloudWatchLogsDeliveryError(LatestCloudWatchLogsDeliveryErrorT &&value)
void SetTimeLoggingStopped(TimeLoggingStoppedT &&value)
const Aws::Utils::DateTime & GetStopLoggingTime() const
GetTrailStatusResult & WithLatestDeliveryAttemptTime(LatestDeliveryAttemptTimeT &&value)
GetTrailStatusResult & WithLatestDeliveryAttemptSucceeded(LatestDeliveryAttemptSucceededT &&value)
GetTrailStatusResult & WithTimeLoggingStarted(TimeLoggingStartedT &&value)
void SetLatestDigestDeliveryError(LatestDigestDeliveryErrorT &&value)
void SetLatestNotificationAttemptSucceeded(LatestNotificationAttemptSucceededT &&value)
const Aws::Utils::DateTime & GetLatestCloudWatchLogsDeliveryTime() const
GetTrailStatusResult & WithStopLoggingTime(StopLoggingTimeT &&value)
const Aws::String & GetLatestNotificationAttemptSucceeded() const
GetTrailStatusResult & WithLatestCloudWatchLogsDeliveryTime(LatestCloudWatchLogsDeliveryTimeT &&value)
GetTrailStatusResult & WithRequestId(RequestIdT &&value)
void SetLatestNotificationError(LatestNotificationErrorT &&value)
AWS_CLOUDTRAIL_API GetTrailStatusResult()=default
GetTrailStatusResult & WithLatestNotificationAttemptTime(LatestNotificationAttemptTimeT &&value)
GetTrailStatusResult & WithTimeLoggingStopped(TimeLoggingStoppedT &&value)
const Aws::String & GetLatestDeliveryAttemptTime() const
void SetLatestDigestDeliveryTime(LatestDigestDeliveryTimeT &&value)
const Aws::String & GetLatestDeliveryAttemptSucceeded() const
const Aws::Utils::DateTime & GetLatestNotificationTime() const
void SetLatestNotificationTime(LatestNotificationTimeT &&value)
const Aws::Utils::DateTime & GetLatestDigestDeliveryTime() const
GetTrailStatusResult & WithLatestDeliveryTime(LatestDeliveryTimeT &&value)
void SetLatestDeliveryAttemptTime(LatestDeliveryAttemptTimeT &&value)
void SetStopLoggingTime(StopLoggingTimeT &&value)
const Aws::String & GetLatestNotificationError() const
void SetLatestDeliveryError(LatestDeliveryErrorT &&value)
void SetLatestDeliveryAttemptSucceeded(LatestDeliveryAttemptSucceededT &&value)
const Aws::String & GetLatestDigestDeliveryError() const
GetTrailStatusResult & WithLatestNotificationAttemptSucceeded(LatestNotificationAttemptSucceededT &&value)
AWS_CLOUDTRAIL_API GetTrailStatusResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetTrailStatusResult & WithLatestDigestDeliveryTime(LatestDigestDeliveryTimeT &&value)
void SetLatestCloudWatchLogsDeliveryError(LatestCloudWatchLogsDeliveryErrorT &&value)
void SetTimeLoggingStarted(TimeLoggingStartedT &&value)
const Aws::String & GetLatestNotificationAttemptTime() const
void SetLatestDeliveryTime(LatestDeliveryTimeT &&value)
GetTrailStatusResult & WithLatestNotificationError(LatestNotificationErrorT &&value)
void SetLatestCloudWatchLogsDeliveryTime(LatestCloudWatchLogsDeliveryTimeT &&value)
GetTrailStatusResult & WithLatestNotificationTime(LatestNotificationTimeT &&value)
const Aws::Utils::DateTime & GetStartLoggingTime() const
void SetLatestNotificationAttemptTime(LatestNotificationAttemptTimeT &&value)
GetTrailStatusResult & WithStartLoggingTime(StartLoggingTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue