AWS SDK for C++

AWS SDK for C++ Version 1.11.783

Loading...
Searching...
No Matches
GetTrailStatusResult.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/core/http/HttpResponse.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace CloudTrail {
24namespace Model {
32 public:
33 AWS_CLOUDTRAIL_API GetTrailStatusResult() = default;
36
38
42 inline bool GetIsLogging() const { return m_isLogging; }
43 inline void SetIsLogging(bool value) {
44 m_isLoggingHasBeenSet = true;
45 m_isLogging = value;
46 }
47 inline GetTrailStatusResult& WithIsLogging(bool value) {
48 SetIsLogging(value);
49 return *this;
50 }
52
54
65 inline const Aws::String& GetLatestDeliveryError() const { return m_latestDeliveryError; }
66 template <typename LatestDeliveryErrorT = Aws::String>
67 void SetLatestDeliveryError(LatestDeliveryErrorT&& value) {
68 m_latestDeliveryErrorHasBeenSet = true;
69 m_latestDeliveryError = std::forward<LatestDeliveryErrorT>(value);
70 }
71 template <typename LatestDeliveryErrorT = Aws::String>
72 GetTrailStatusResult& WithLatestDeliveryError(LatestDeliveryErrorT&& value) {
73 SetLatestDeliveryError(std::forward<LatestDeliveryErrorT>(value));
74 return *this;
75 }
77
79
85 inline const Aws::String& GetLatestNotificationError() const { return m_latestNotificationError; }
86 template <typename LatestNotificationErrorT = Aws::String>
87 void SetLatestNotificationError(LatestNotificationErrorT&& value) {
88 m_latestNotificationErrorHasBeenSet = true;
89 m_latestNotificationError = std::forward<LatestNotificationErrorT>(value);
90 }
91 template <typename LatestNotificationErrorT = Aws::String>
92 GetTrailStatusResult& WithLatestNotificationError(LatestNotificationErrorT&& value) {
93 SetLatestNotificationError(std::forward<LatestNotificationErrorT>(value));
94 return *this;
95 }
97
99
103 inline const Aws::Utils::DateTime& GetLatestDeliveryTime() const { return m_latestDeliveryTime; }
104 template <typename LatestDeliveryTimeT = Aws::Utils::DateTime>
105 void SetLatestDeliveryTime(LatestDeliveryTimeT&& value) {
106 m_latestDeliveryTimeHasBeenSet = true;
107 m_latestDeliveryTime = std::forward<LatestDeliveryTimeT>(value);
108 }
109 template <typename LatestDeliveryTimeT = Aws::Utils::DateTime>
110 GetTrailStatusResult& WithLatestDeliveryTime(LatestDeliveryTimeT&& value) {
111 SetLatestDeliveryTime(std::forward<LatestDeliveryTimeT>(value));
112 return *this;
113 }
115
117
121 inline const Aws::Utils::DateTime& GetLatestNotificationTime() const { return m_latestNotificationTime; }
122 template <typename LatestNotificationTimeT = Aws::Utils::DateTime>
123 void SetLatestNotificationTime(LatestNotificationTimeT&& value) {
124 m_latestNotificationTimeHasBeenSet = true;
125 m_latestNotificationTime = std::forward<LatestNotificationTimeT>(value);
126 }
127 template <typename LatestNotificationTimeT = Aws::Utils::DateTime>
128 GetTrailStatusResult& WithLatestNotificationTime(LatestNotificationTimeT&& value) {
129 SetLatestNotificationTime(std::forward<LatestNotificationTimeT>(value));
130 return *this;
131 }
133
135
139 inline const Aws::Utils::DateTime& GetStartLoggingTime() const { return m_startLoggingTime; }
140 template <typename StartLoggingTimeT = Aws::Utils::DateTime>
141 void SetStartLoggingTime(StartLoggingTimeT&& value) {
142 m_startLoggingTimeHasBeenSet = true;
143 m_startLoggingTime = std::forward<StartLoggingTimeT>(value);
144 }
145 template <typename StartLoggingTimeT = Aws::Utils::DateTime>
146 GetTrailStatusResult& WithStartLoggingTime(StartLoggingTimeT&& value) {
147 SetStartLoggingTime(std::forward<StartLoggingTimeT>(value));
148 return *this;
149 }
151
153
157 inline const Aws::Utils::DateTime& GetStopLoggingTime() const { return m_stopLoggingTime; }
158 template <typename StopLoggingTimeT = Aws::Utils::DateTime>
159 void SetStopLoggingTime(StopLoggingTimeT&& value) {
160 m_stopLoggingTimeHasBeenSet = true;
161 m_stopLoggingTime = std::forward<StopLoggingTimeT>(value);
162 }
163 template <typename StopLoggingTimeT = Aws::Utils::DateTime>
164 GetTrailStatusResult& WithStopLoggingTime(StopLoggingTimeT&& value) {
165 SetStopLoggingTime(std::forward<StopLoggingTimeT>(value));
166 return *this;
167 }
169
171
175 inline const Aws::String& GetLatestCloudWatchLogsDeliveryError() const { return m_latestCloudWatchLogsDeliveryError; }
176 template <typename LatestCloudWatchLogsDeliveryErrorT = Aws::String>
177 void SetLatestCloudWatchLogsDeliveryError(LatestCloudWatchLogsDeliveryErrorT&& value) {
178 m_latestCloudWatchLogsDeliveryErrorHasBeenSet = true;
179 m_latestCloudWatchLogsDeliveryError = std::forward<LatestCloudWatchLogsDeliveryErrorT>(value);
180 }
181 template <typename LatestCloudWatchLogsDeliveryErrorT = Aws::String>
182 GetTrailStatusResult& WithLatestCloudWatchLogsDeliveryError(LatestCloudWatchLogsDeliveryErrorT&& value) {
183 SetLatestCloudWatchLogsDeliveryError(std::forward<LatestCloudWatchLogsDeliveryErrorT>(value));
184 return *this;
185 }
187
189
193 inline const Aws::Utils::DateTime& GetLatestCloudWatchLogsDeliveryTime() const { return m_latestCloudWatchLogsDeliveryTime; }
194 template <typename LatestCloudWatchLogsDeliveryTimeT = Aws::Utils::DateTime>
195 void SetLatestCloudWatchLogsDeliveryTime(LatestCloudWatchLogsDeliveryTimeT&& value) {
196 m_latestCloudWatchLogsDeliveryTimeHasBeenSet = true;
197 m_latestCloudWatchLogsDeliveryTime = std::forward<LatestCloudWatchLogsDeliveryTimeT>(value);
198 }
199 template <typename LatestCloudWatchLogsDeliveryTimeT = Aws::Utils::DateTime>
200 GetTrailStatusResult& WithLatestCloudWatchLogsDeliveryTime(LatestCloudWatchLogsDeliveryTimeT&& value) {
201 SetLatestCloudWatchLogsDeliveryTime(std::forward<LatestCloudWatchLogsDeliveryTimeT>(value));
202 return *this;
203 }
205
207
211 inline const Aws::Utils::DateTime& GetLatestDigestDeliveryTime() const { return m_latestDigestDeliveryTime; }
212 template <typename LatestDigestDeliveryTimeT = Aws::Utils::DateTime>
213 void SetLatestDigestDeliveryTime(LatestDigestDeliveryTimeT&& value) {
214 m_latestDigestDeliveryTimeHasBeenSet = true;
215 m_latestDigestDeliveryTime = std::forward<LatestDigestDeliveryTimeT>(value);
216 }
217 template <typename LatestDigestDeliveryTimeT = Aws::Utils::DateTime>
218 GetTrailStatusResult& WithLatestDigestDeliveryTime(LatestDigestDeliveryTimeT&& value) {
219 SetLatestDigestDeliveryTime(std::forward<LatestDigestDeliveryTimeT>(value));
220 return *this;
221 }
223
225
236 inline const Aws::String& GetLatestDigestDeliveryError() const { return m_latestDigestDeliveryError; }
237 template <typename LatestDigestDeliveryErrorT = Aws::String>
238 void SetLatestDigestDeliveryError(LatestDigestDeliveryErrorT&& value) {
239 m_latestDigestDeliveryErrorHasBeenSet = true;
240 m_latestDigestDeliveryError = std::forward<LatestDigestDeliveryErrorT>(value);
241 }
242 template <typename LatestDigestDeliveryErrorT = Aws::String>
243 GetTrailStatusResult& WithLatestDigestDeliveryError(LatestDigestDeliveryErrorT&& value) {
244 SetLatestDigestDeliveryError(std::forward<LatestDigestDeliveryErrorT>(value));
245 return *this;
246 }
248
250
253 inline const Aws::String& GetLatestDeliveryAttemptTime() const { return m_latestDeliveryAttemptTime; }
254 template <typename LatestDeliveryAttemptTimeT = Aws::String>
255 void SetLatestDeliveryAttemptTime(LatestDeliveryAttemptTimeT&& value) {
256 m_latestDeliveryAttemptTimeHasBeenSet = true;
257 m_latestDeliveryAttemptTime = std::forward<LatestDeliveryAttemptTimeT>(value);
258 }
259 template <typename LatestDeliveryAttemptTimeT = Aws::String>
260 GetTrailStatusResult& WithLatestDeliveryAttemptTime(LatestDeliveryAttemptTimeT&& value) {
261 SetLatestDeliveryAttemptTime(std::forward<LatestDeliveryAttemptTimeT>(value));
262 return *this;
263 }
265
267
270 inline const Aws::String& GetLatestNotificationAttemptTime() const { return m_latestNotificationAttemptTime; }
271 template <typename LatestNotificationAttemptTimeT = Aws::String>
272 void SetLatestNotificationAttemptTime(LatestNotificationAttemptTimeT&& value) {
273 m_latestNotificationAttemptTimeHasBeenSet = true;
274 m_latestNotificationAttemptTime = std::forward<LatestNotificationAttemptTimeT>(value);
275 }
276 template <typename LatestNotificationAttemptTimeT = Aws::String>
277 GetTrailStatusResult& WithLatestNotificationAttemptTime(LatestNotificationAttemptTimeT&& value) {
278 SetLatestNotificationAttemptTime(std::forward<LatestNotificationAttemptTimeT>(value));
279 return *this;
280 }
282
284
287 inline const Aws::String& GetLatestNotificationAttemptSucceeded() const { return m_latestNotificationAttemptSucceeded; }
288 template <typename LatestNotificationAttemptSucceededT = Aws::String>
289 void SetLatestNotificationAttemptSucceeded(LatestNotificationAttemptSucceededT&& value) {
290 m_latestNotificationAttemptSucceededHasBeenSet = true;
291 m_latestNotificationAttemptSucceeded = std::forward<LatestNotificationAttemptSucceededT>(value);
292 }
293 template <typename LatestNotificationAttemptSucceededT = Aws::String>
294 GetTrailStatusResult& WithLatestNotificationAttemptSucceeded(LatestNotificationAttemptSucceededT&& value) {
295 SetLatestNotificationAttemptSucceeded(std::forward<LatestNotificationAttemptSucceededT>(value));
296 return *this;
297 }
299
301
304 inline const Aws::String& GetLatestDeliveryAttemptSucceeded() const { return m_latestDeliveryAttemptSucceeded; }
305 template <typename LatestDeliveryAttemptSucceededT = Aws::String>
306 void SetLatestDeliveryAttemptSucceeded(LatestDeliveryAttemptSucceededT&& value) {
307 m_latestDeliveryAttemptSucceededHasBeenSet = true;
308 m_latestDeliveryAttemptSucceeded = std::forward<LatestDeliveryAttemptSucceededT>(value);
309 }
310 template <typename LatestDeliveryAttemptSucceededT = Aws::String>
311 GetTrailStatusResult& WithLatestDeliveryAttemptSucceeded(LatestDeliveryAttemptSucceededT&& value) {
312 SetLatestDeliveryAttemptSucceeded(std::forward<LatestDeliveryAttemptSucceededT>(value));
313 return *this;
314 }
316
318
321 inline const Aws::String& GetTimeLoggingStarted() const { return m_timeLoggingStarted; }
322 template <typename TimeLoggingStartedT = Aws::String>
323 void SetTimeLoggingStarted(TimeLoggingStartedT&& value) {
324 m_timeLoggingStartedHasBeenSet = true;
325 m_timeLoggingStarted = std::forward<TimeLoggingStartedT>(value);
326 }
327 template <typename TimeLoggingStartedT = Aws::String>
328 GetTrailStatusResult& WithTimeLoggingStarted(TimeLoggingStartedT&& value) {
329 SetTimeLoggingStarted(std::forward<TimeLoggingStartedT>(value));
330 return *this;
331 }
333
335
338 inline const Aws::String& GetTimeLoggingStopped() const { return m_timeLoggingStopped; }
339 template <typename TimeLoggingStoppedT = Aws::String>
340 void SetTimeLoggingStopped(TimeLoggingStoppedT&& value) {
341 m_timeLoggingStoppedHasBeenSet = true;
342 m_timeLoggingStopped = std::forward<TimeLoggingStoppedT>(value);
343 }
344 template <typename TimeLoggingStoppedT = Aws::String>
345 GetTrailStatusResult& WithTimeLoggingStopped(TimeLoggingStoppedT&& value) {
346 SetTimeLoggingStopped(std::forward<TimeLoggingStoppedT>(value));
347 return *this;
348 }
350
352
353 inline const Aws::String& GetRequestId() const { return m_requestId; }
354 template <typename RequestIdT = Aws::String>
355 void SetRequestId(RequestIdT&& value) {
356 m_requestIdHasBeenSet = true;
357 m_requestId = std::forward<RequestIdT>(value);
358 }
359 template <typename RequestIdT = Aws::String>
360 GetTrailStatusResult& WithRequestId(RequestIdT&& value) {
361 SetRequestId(std::forward<RequestIdT>(value));
362 return *this;
363 }
365 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
366
367 private:
368 bool m_isLogging{false};
369
370 Aws::String m_latestDeliveryError;
371
372 Aws::String m_latestNotificationError;
373
374 Aws::Utils::DateTime m_latestDeliveryTime{};
375
376 Aws::Utils::DateTime m_latestNotificationTime{};
377
378 Aws::Utils::DateTime m_startLoggingTime{};
379
380 Aws::Utils::DateTime m_stopLoggingTime{};
381
382 Aws::String m_latestCloudWatchLogsDeliveryError;
383
384 Aws::Utils::DateTime m_latestCloudWatchLogsDeliveryTime{};
385
386 Aws::Utils::DateTime m_latestDigestDeliveryTime{};
387
388 Aws::String m_latestDigestDeliveryError;
389
390 Aws::String m_latestDeliveryAttemptTime;
391
392 Aws::String m_latestNotificationAttemptTime;
393
394 Aws::String m_latestNotificationAttemptSucceeded;
395
396 Aws::String m_latestDeliveryAttemptSucceeded;
397
398 Aws::String m_timeLoggingStarted;
399
400 Aws::String m_timeLoggingStopped;
401
402 Aws::String m_requestId;
403 Aws::Http::HttpResponseCode m_HttpResponseCode;
404 bool m_isLoggingHasBeenSet = false;
405 bool m_latestDeliveryErrorHasBeenSet = false;
406 bool m_latestNotificationErrorHasBeenSet = false;
407 bool m_latestDeliveryTimeHasBeenSet = false;
408 bool m_latestNotificationTimeHasBeenSet = false;
409 bool m_startLoggingTimeHasBeenSet = false;
410 bool m_stopLoggingTimeHasBeenSet = false;
411 bool m_latestCloudWatchLogsDeliveryErrorHasBeenSet = false;
412 bool m_latestCloudWatchLogsDeliveryTimeHasBeenSet = false;
413 bool m_latestDigestDeliveryTimeHasBeenSet = false;
414 bool m_latestDigestDeliveryErrorHasBeenSet = false;
415 bool m_latestDeliveryAttemptTimeHasBeenSet = false;
416 bool m_latestNotificationAttemptTimeHasBeenSet = false;
417 bool m_latestNotificationAttemptSucceededHasBeenSet = false;
418 bool m_latestDeliveryAttemptSucceededHasBeenSet = false;
419 bool m_timeLoggingStartedHasBeenSet = false;
420 bool m_timeLoggingStoppedHasBeenSet = false;
421 bool m_requestIdHasBeenSet = false;
422};
423
424} // namespace Model
425} // namespace CloudTrail
426} // 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)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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