AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetTrailStatusResult.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 <utility>
11
12namespace Aws
13{
14template<typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace CloudTrail
25{
26namespace Model
27{
35 {
36 public:
37 AWS_CLOUDTRAIL_API GetTrailStatusResult() = default;
40
41
43
47 inline bool GetIsLogging() const { return m_isLogging; }
48 inline void SetIsLogging(bool value) { m_isLoggingHasBeenSet = true; m_isLogging = value; }
49 inline GetTrailStatusResult& WithIsLogging(bool value) { SetIsLogging(value); return *this;}
51
53
64 inline const Aws::String& GetLatestDeliveryError() const { return m_latestDeliveryError; }
65 template<typename LatestDeliveryErrorT = Aws::String>
66 void SetLatestDeliveryError(LatestDeliveryErrorT&& value) { m_latestDeliveryErrorHasBeenSet = true; m_latestDeliveryError = std::forward<LatestDeliveryErrorT>(value); }
67 template<typename LatestDeliveryErrorT = Aws::String>
68 GetTrailStatusResult& WithLatestDeliveryError(LatestDeliveryErrorT&& value) { SetLatestDeliveryError(std::forward<LatestDeliveryErrorT>(value)); return *this;}
70
72
78 inline const Aws::String& GetLatestNotificationError() const { return m_latestNotificationError; }
79 template<typename LatestNotificationErrorT = Aws::String>
80 void SetLatestNotificationError(LatestNotificationErrorT&& value) { m_latestNotificationErrorHasBeenSet = true; m_latestNotificationError = std::forward<LatestNotificationErrorT>(value); }
81 template<typename LatestNotificationErrorT = Aws::String>
82 GetTrailStatusResult& WithLatestNotificationError(LatestNotificationErrorT&& value) { SetLatestNotificationError(std::forward<LatestNotificationErrorT>(value)); return *this;}
84
86
90 inline const Aws::Utils::DateTime& GetLatestDeliveryTime() const { return m_latestDeliveryTime; }
91 template<typename LatestDeliveryTimeT = Aws::Utils::DateTime>
92 void SetLatestDeliveryTime(LatestDeliveryTimeT&& value) { m_latestDeliveryTimeHasBeenSet = true; m_latestDeliveryTime = std::forward<LatestDeliveryTimeT>(value); }
93 template<typename LatestDeliveryTimeT = Aws::Utils::DateTime>
94 GetTrailStatusResult& WithLatestDeliveryTime(LatestDeliveryTimeT&& value) { SetLatestDeliveryTime(std::forward<LatestDeliveryTimeT>(value)); return *this;}
96
98
102 inline const Aws::Utils::DateTime& GetLatestNotificationTime() const { return m_latestNotificationTime; }
103 template<typename LatestNotificationTimeT = Aws::Utils::DateTime>
104 void SetLatestNotificationTime(LatestNotificationTimeT&& value) { m_latestNotificationTimeHasBeenSet = true; m_latestNotificationTime = std::forward<LatestNotificationTimeT>(value); }
105 template<typename LatestNotificationTimeT = Aws::Utils::DateTime>
106 GetTrailStatusResult& WithLatestNotificationTime(LatestNotificationTimeT&& value) { SetLatestNotificationTime(std::forward<LatestNotificationTimeT>(value)); return *this;}
108
110
114 inline const Aws::Utils::DateTime& GetStartLoggingTime() const { return m_startLoggingTime; }
115 template<typename StartLoggingTimeT = Aws::Utils::DateTime>
116 void SetStartLoggingTime(StartLoggingTimeT&& value) { m_startLoggingTimeHasBeenSet = true; m_startLoggingTime = std::forward<StartLoggingTimeT>(value); }
117 template<typename StartLoggingTimeT = Aws::Utils::DateTime>
118 GetTrailStatusResult& WithStartLoggingTime(StartLoggingTimeT&& value) { SetStartLoggingTime(std::forward<StartLoggingTimeT>(value)); return *this;}
120
122
126 inline const Aws::Utils::DateTime& GetStopLoggingTime() const { return m_stopLoggingTime; }
127 template<typename StopLoggingTimeT = Aws::Utils::DateTime>
128 void SetStopLoggingTime(StopLoggingTimeT&& value) { m_stopLoggingTimeHasBeenSet = true; m_stopLoggingTime = std::forward<StopLoggingTimeT>(value); }
129 template<typename StopLoggingTimeT = Aws::Utils::DateTime>
130 GetTrailStatusResult& WithStopLoggingTime(StopLoggingTimeT&& value) { SetStopLoggingTime(std::forward<StopLoggingTimeT>(value)); return *this;}
132
134
138 inline const Aws::String& GetLatestCloudWatchLogsDeliveryError() const { return m_latestCloudWatchLogsDeliveryError; }
139 template<typename LatestCloudWatchLogsDeliveryErrorT = Aws::String>
140 void SetLatestCloudWatchLogsDeliveryError(LatestCloudWatchLogsDeliveryErrorT&& value) { m_latestCloudWatchLogsDeliveryErrorHasBeenSet = true; m_latestCloudWatchLogsDeliveryError = std::forward<LatestCloudWatchLogsDeliveryErrorT>(value); }
141 template<typename LatestCloudWatchLogsDeliveryErrorT = Aws::String>
142 GetTrailStatusResult& WithLatestCloudWatchLogsDeliveryError(LatestCloudWatchLogsDeliveryErrorT&& value) { SetLatestCloudWatchLogsDeliveryError(std::forward<LatestCloudWatchLogsDeliveryErrorT>(value)); return *this;}
144
146
150 inline const Aws::Utils::DateTime& GetLatestCloudWatchLogsDeliveryTime() const { return m_latestCloudWatchLogsDeliveryTime; }
151 template<typename LatestCloudWatchLogsDeliveryTimeT = Aws::Utils::DateTime>
152 void SetLatestCloudWatchLogsDeliveryTime(LatestCloudWatchLogsDeliveryTimeT&& value) { m_latestCloudWatchLogsDeliveryTimeHasBeenSet = true; m_latestCloudWatchLogsDeliveryTime = std::forward<LatestCloudWatchLogsDeliveryTimeT>(value); }
153 template<typename LatestCloudWatchLogsDeliveryTimeT = Aws::Utils::DateTime>
154 GetTrailStatusResult& WithLatestCloudWatchLogsDeliveryTime(LatestCloudWatchLogsDeliveryTimeT&& value) { SetLatestCloudWatchLogsDeliveryTime(std::forward<LatestCloudWatchLogsDeliveryTimeT>(value)); return *this;}
156
158
162 inline const Aws::Utils::DateTime& GetLatestDigestDeliveryTime() const { return m_latestDigestDeliveryTime; }
163 template<typename LatestDigestDeliveryTimeT = Aws::Utils::DateTime>
164 void SetLatestDigestDeliveryTime(LatestDigestDeliveryTimeT&& value) { m_latestDigestDeliveryTimeHasBeenSet = true; m_latestDigestDeliveryTime = std::forward<LatestDigestDeliveryTimeT>(value); }
165 template<typename LatestDigestDeliveryTimeT = Aws::Utils::DateTime>
166 GetTrailStatusResult& WithLatestDigestDeliveryTime(LatestDigestDeliveryTimeT&& value) { SetLatestDigestDeliveryTime(std::forward<LatestDigestDeliveryTimeT>(value)); return *this;}
168
170
181 inline const Aws::String& GetLatestDigestDeliveryError() const { return m_latestDigestDeliveryError; }
182 template<typename LatestDigestDeliveryErrorT = Aws::String>
183 void SetLatestDigestDeliveryError(LatestDigestDeliveryErrorT&& value) { m_latestDigestDeliveryErrorHasBeenSet = true; m_latestDigestDeliveryError = std::forward<LatestDigestDeliveryErrorT>(value); }
184 template<typename LatestDigestDeliveryErrorT = Aws::String>
185 GetTrailStatusResult& WithLatestDigestDeliveryError(LatestDigestDeliveryErrorT&& value) { SetLatestDigestDeliveryError(std::forward<LatestDigestDeliveryErrorT>(value)); return *this;}
187
189
192 inline const Aws::String& GetLatestDeliveryAttemptTime() const { return m_latestDeliveryAttemptTime; }
193 template<typename LatestDeliveryAttemptTimeT = Aws::String>
194 void SetLatestDeliveryAttemptTime(LatestDeliveryAttemptTimeT&& value) { m_latestDeliveryAttemptTimeHasBeenSet = true; m_latestDeliveryAttemptTime = std::forward<LatestDeliveryAttemptTimeT>(value); }
195 template<typename LatestDeliveryAttemptTimeT = Aws::String>
196 GetTrailStatusResult& WithLatestDeliveryAttemptTime(LatestDeliveryAttemptTimeT&& value) { SetLatestDeliveryAttemptTime(std::forward<LatestDeliveryAttemptTimeT>(value)); return *this;}
198
200
203 inline const Aws::String& GetLatestNotificationAttemptTime() const { return m_latestNotificationAttemptTime; }
204 template<typename LatestNotificationAttemptTimeT = Aws::String>
205 void SetLatestNotificationAttemptTime(LatestNotificationAttemptTimeT&& value) { m_latestNotificationAttemptTimeHasBeenSet = true; m_latestNotificationAttemptTime = std::forward<LatestNotificationAttemptTimeT>(value); }
206 template<typename LatestNotificationAttemptTimeT = Aws::String>
207 GetTrailStatusResult& WithLatestNotificationAttemptTime(LatestNotificationAttemptTimeT&& value) { SetLatestNotificationAttemptTime(std::forward<LatestNotificationAttemptTimeT>(value)); return *this;}
209
211
214 inline const Aws::String& GetLatestNotificationAttemptSucceeded() const { return m_latestNotificationAttemptSucceeded; }
215 template<typename LatestNotificationAttemptSucceededT = Aws::String>
216 void SetLatestNotificationAttemptSucceeded(LatestNotificationAttemptSucceededT&& value) { m_latestNotificationAttemptSucceededHasBeenSet = true; m_latestNotificationAttemptSucceeded = std::forward<LatestNotificationAttemptSucceededT>(value); }
217 template<typename LatestNotificationAttemptSucceededT = Aws::String>
218 GetTrailStatusResult& WithLatestNotificationAttemptSucceeded(LatestNotificationAttemptSucceededT&& value) { SetLatestNotificationAttemptSucceeded(std::forward<LatestNotificationAttemptSucceededT>(value)); return *this;}
220
222
225 inline const Aws::String& GetLatestDeliveryAttemptSucceeded() const { return m_latestDeliveryAttemptSucceeded; }
226 template<typename LatestDeliveryAttemptSucceededT = Aws::String>
227 void SetLatestDeliveryAttemptSucceeded(LatestDeliveryAttemptSucceededT&& value) { m_latestDeliveryAttemptSucceededHasBeenSet = true; m_latestDeliveryAttemptSucceeded = std::forward<LatestDeliveryAttemptSucceededT>(value); }
228 template<typename LatestDeliveryAttemptSucceededT = Aws::String>
229 GetTrailStatusResult& WithLatestDeliveryAttemptSucceeded(LatestDeliveryAttemptSucceededT&& value) { SetLatestDeliveryAttemptSucceeded(std::forward<LatestDeliveryAttemptSucceededT>(value)); return *this;}
231
233
236 inline const Aws::String& GetTimeLoggingStarted() const { return m_timeLoggingStarted; }
237 template<typename TimeLoggingStartedT = Aws::String>
238 void SetTimeLoggingStarted(TimeLoggingStartedT&& value) { m_timeLoggingStartedHasBeenSet = true; m_timeLoggingStarted = std::forward<TimeLoggingStartedT>(value); }
239 template<typename TimeLoggingStartedT = Aws::String>
240 GetTrailStatusResult& WithTimeLoggingStarted(TimeLoggingStartedT&& value) { SetTimeLoggingStarted(std::forward<TimeLoggingStartedT>(value)); return *this;}
242
244
247 inline const Aws::String& GetTimeLoggingStopped() const { return m_timeLoggingStopped; }
248 template<typename TimeLoggingStoppedT = Aws::String>
249 void SetTimeLoggingStopped(TimeLoggingStoppedT&& value) { m_timeLoggingStoppedHasBeenSet = true; m_timeLoggingStopped = std::forward<TimeLoggingStoppedT>(value); }
250 template<typename TimeLoggingStoppedT = Aws::String>
251 GetTrailStatusResult& WithTimeLoggingStopped(TimeLoggingStoppedT&& value) { SetTimeLoggingStopped(std::forward<TimeLoggingStoppedT>(value)); return *this;}
253
255
256 inline const Aws::String& GetRequestId() const { return m_requestId; }
257 template<typename RequestIdT = Aws::String>
258 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
259 template<typename RequestIdT = Aws::String>
260 GetTrailStatusResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
262 private:
263
264 bool m_isLogging{false};
265 bool m_isLoggingHasBeenSet = false;
266
267 Aws::String m_latestDeliveryError;
268 bool m_latestDeliveryErrorHasBeenSet = false;
269
270 Aws::String m_latestNotificationError;
271 bool m_latestNotificationErrorHasBeenSet = false;
272
273 Aws::Utils::DateTime m_latestDeliveryTime{};
274 bool m_latestDeliveryTimeHasBeenSet = false;
275
276 Aws::Utils::DateTime m_latestNotificationTime{};
277 bool m_latestNotificationTimeHasBeenSet = false;
278
279 Aws::Utils::DateTime m_startLoggingTime{};
280 bool m_startLoggingTimeHasBeenSet = false;
281
282 Aws::Utils::DateTime m_stopLoggingTime{};
283 bool m_stopLoggingTimeHasBeenSet = false;
284
285 Aws::String m_latestCloudWatchLogsDeliveryError;
286 bool m_latestCloudWatchLogsDeliveryErrorHasBeenSet = false;
287
288 Aws::Utils::DateTime m_latestCloudWatchLogsDeliveryTime{};
289 bool m_latestCloudWatchLogsDeliveryTimeHasBeenSet = false;
290
291 Aws::Utils::DateTime m_latestDigestDeliveryTime{};
292 bool m_latestDigestDeliveryTimeHasBeenSet = false;
293
294 Aws::String m_latestDigestDeliveryError;
295 bool m_latestDigestDeliveryErrorHasBeenSet = false;
296
297 Aws::String m_latestDeliveryAttemptTime;
298 bool m_latestDeliveryAttemptTimeHasBeenSet = false;
299
300 Aws::String m_latestNotificationAttemptTime;
301 bool m_latestNotificationAttemptTimeHasBeenSet = false;
302
303 Aws::String m_latestNotificationAttemptSucceeded;
304 bool m_latestNotificationAttemptSucceededHasBeenSet = false;
305
306 Aws::String m_latestDeliveryAttemptSucceeded;
307 bool m_latestDeliveryAttemptSucceededHasBeenSet = false;
308
309 Aws::String m_timeLoggingStarted;
310 bool m_timeLoggingStartedHasBeenSet = false;
311
312 Aws::String m_timeLoggingStopped;
313 bool m_timeLoggingStoppedHasBeenSet = false;
314
315 Aws::String m_requestId;
316 bool m_requestIdHasBeenSet = false;
317 };
318
319} // namespace Model
320} // namespace CloudTrail
321} // 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