AWS SDK for C++  0.12.9
AWS SDK for C++
GetTrailStatusResult.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 template<typename RESULT_TYPE>
23 class AmazonWebServiceResult;
24 
25 namespace Utils
26 {
27 namespace Json
28 {
29  class JsonValue;
30 } // namespace Json
31 } // namespace Utils
32 namespace CloudTrail
33 {
34 namespace Model
35 {
41  {
42  public:
46 
50  inline bool GetIsLogging() const{ return m_isLogging; }
51 
55  inline void SetIsLogging(bool value) { m_isLogging = value; }
56 
60  inline GetTrailStatusResult& WithIsLogging(bool value) { SetIsLogging(value); return *this;}
61 
73  inline const Aws::String& GetLatestDeliveryError() const{ return m_latestDeliveryError; }
74 
86  inline void SetLatestDeliveryError(const Aws::String& value) { m_latestDeliveryError = value; }
87 
99  inline void SetLatestDeliveryError(Aws::String&& value) { m_latestDeliveryError = value; }
100 
112  inline void SetLatestDeliveryError(const char* value) { m_latestDeliveryError.assign(value); }
113 
125  inline GetTrailStatusResult& WithLatestDeliveryError(const Aws::String& value) { SetLatestDeliveryError(value); return *this;}
126 
138  inline GetTrailStatusResult& WithLatestDeliveryError(Aws::String&& value) { SetLatestDeliveryError(value); return *this;}
139 
151  inline GetTrailStatusResult& WithLatestDeliveryError(const char* value) { SetLatestDeliveryError(value); return *this;}
152 
159  inline const Aws::String& GetLatestNotificationError() const{ return m_latestNotificationError; }
160 
167  inline void SetLatestNotificationError(const Aws::String& value) { m_latestNotificationError = value; }
168 
175  inline void SetLatestNotificationError(Aws::String&& value) { m_latestNotificationError = value; }
176 
183  inline void SetLatestNotificationError(const char* value) { m_latestNotificationError.assign(value); }
184 
191  inline GetTrailStatusResult& WithLatestNotificationError(const Aws::String& value) { SetLatestNotificationError(value); return *this;}
192 
199  inline GetTrailStatusResult& WithLatestNotificationError(Aws::String&& value) { SetLatestNotificationError(value); return *this;}
200 
207  inline GetTrailStatusResult& WithLatestNotificationError(const char* value) { SetLatestNotificationError(value); return *this;}
208 
213  inline const Aws::Utils::DateTime& GetLatestDeliveryTime() const{ return m_latestDeliveryTime; }
214 
219  inline void SetLatestDeliveryTime(const Aws::Utils::DateTime& value) { m_latestDeliveryTime = value; }
220 
225  inline void SetLatestDeliveryTime(Aws::Utils::DateTime&& value) { m_latestDeliveryTime = value; }
226 
231  inline GetTrailStatusResult& WithLatestDeliveryTime(const Aws::Utils::DateTime& value) { SetLatestDeliveryTime(value); return *this;}
232 
237  inline GetTrailStatusResult& WithLatestDeliveryTime(Aws::Utils::DateTime&& value) { SetLatestDeliveryTime(value); return *this;}
238 
243  inline const Aws::Utils::DateTime& GetLatestNotificationTime() const{ return m_latestNotificationTime; }
244 
249  inline void SetLatestNotificationTime(const Aws::Utils::DateTime& value) { m_latestNotificationTime = value; }
250 
255  inline void SetLatestNotificationTime(Aws::Utils::DateTime&& value) { m_latestNotificationTime = value; }
256 
261  inline GetTrailStatusResult& WithLatestNotificationTime(const Aws::Utils::DateTime& value) { SetLatestNotificationTime(value); return *this;}
262 
267  inline GetTrailStatusResult& WithLatestNotificationTime(Aws::Utils::DateTime&& value) { SetLatestNotificationTime(value); return *this;}
268 
273  inline const Aws::Utils::DateTime& GetStartLoggingTime() const{ return m_startLoggingTime; }
274 
279  inline void SetStartLoggingTime(const Aws::Utils::DateTime& value) { m_startLoggingTime = value; }
280 
285  inline void SetStartLoggingTime(Aws::Utils::DateTime&& value) { m_startLoggingTime = value; }
286 
291  inline GetTrailStatusResult& WithStartLoggingTime(const Aws::Utils::DateTime& value) { SetStartLoggingTime(value); return *this;}
292 
297  inline GetTrailStatusResult& WithStartLoggingTime(Aws::Utils::DateTime&& value) { SetStartLoggingTime(value); return *this;}
298 
303  inline const Aws::Utils::DateTime& GetStopLoggingTime() const{ return m_stopLoggingTime; }
304 
309  inline void SetStopLoggingTime(const Aws::Utils::DateTime& value) { m_stopLoggingTime = value; }
310 
315  inline void SetStopLoggingTime(Aws::Utils::DateTime&& value) { m_stopLoggingTime = value; }
316 
321  inline GetTrailStatusResult& WithStopLoggingTime(const Aws::Utils::DateTime& value) { SetStopLoggingTime(value); return *this;}
322 
327  inline GetTrailStatusResult& WithStopLoggingTime(Aws::Utils::DateTime&& value) { SetStopLoggingTime(value); return *this;}
328 
333  inline const Aws::String& GetLatestCloudWatchLogsDeliveryError() const{ return m_latestCloudWatchLogsDeliveryError; }
334 
339  inline void SetLatestCloudWatchLogsDeliveryError(const Aws::String& value) { m_latestCloudWatchLogsDeliveryError = value; }
340 
345  inline void SetLatestCloudWatchLogsDeliveryError(Aws::String&& value) { m_latestCloudWatchLogsDeliveryError = value; }
346 
351  inline void SetLatestCloudWatchLogsDeliveryError(const char* value) { m_latestCloudWatchLogsDeliveryError.assign(value); }
352 
357  inline GetTrailStatusResult& WithLatestCloudWatchLogsDeliveryError(const Aws::String& value) { SetLatestCloudWatchLogsDeliveryError(value); return *this;}
358 
363  inline GetTrailStatusResult& WithLatestCloudWatchLogsDeliveryError(Aws::String&& value) { SetLatestCloudWatchLogsDeliveryError(value); return *this;}
364 
369  inline GetTrailStatusResult& WithLatestCloudWatchLogsDeliveryError(const char* value) { SetLatestCloudWatchLogsDeliveryError(value); return *this;}
370 
375  inline const Aws::Utils::DateTime& GetLatestCloudWatchLogsDeliveryTime() const{ return m_latestCloudWatchLogsDeliveryTime; }
376 
381  inline void SetLatestCloudWatchLogsDeliveryTime(const Aws::Utils::DateTime& value) { m_latestCloudWatchLogsDeliveryTime = value; }
382 
387  inline void SetLatestCloudWatchLogsDeliveryTime(Aws::Utils::DateTime&& value) { m_latestCloudWatchLogsDeliveryTime = value; }
388 
393  inline GetTrailStatusResult& WithLatestCloudWatchLogsDeliveryTime(const Aws::Utils::DateTime& value) { SetLatestCloudWatchLogsDeliveryTime(value); return *this;}
394 
399  inline GetTrailStatusResult& WithLatestCloudWatchLogsDeliveryTime(Aws::Utils::DateTime&& value) { SetLatestCloudWatchLogsDeliveryTime(value); return *this;}
400 
405  inline const Aws::Utils::DateTime& GetLatestDigestDeliveryTime() const{ return m_latestDigestDeliveryTime; }
406 
411  inline void SetLatestDigestDeliveryTime(const Aws::Utils::DateTime& value) { m_latestDigestDeliveryTime = value; }
412 
417  inline void SetLatestDigestDeliveryTime(Aws::Utils::DateTime&& value) { m_latestDigestDeliveryTime = value; }
418 
423  inline GetTrailStatusResult& WithLatestDigestDeliveryTime(const Aws::Utils::DateTime& value) { SetLatestDigestDeliveryTime(value); return *this;}
424 
429  inline GetTrailStatusResult& WithLatestDigestDeliveryTime(Aws::Utils::DateTime&& value) { SetLatestDigestDeliveryTime(value); return *this;}
430 
442  inline const Aws::String& GetLatestDigestDeliveryError() const{ return m_latestDigestDeliveryError; }
443 
455  inline void SetLatestDigestDeliveryError(const Aws::String& value) { m_latestDigestDeliveryError = value; }
456 
468  inline void SetLatestDigestDeliveryError(Aws::String&& value) { m_latestDigestDeliveryError = value; }
469 
481  inline void SetLatestDigestDeliveryError(const char* value) { m_latestDigestDeliveryError.assign(value); }
482 
494  inline GetTrailStatusResult& WithLatestDigestDeliveryError(const Aws::String& value) { SetLatestDigestDeliveryError(value); return *this;}
495 
507  inline GetTrailStatusResult& WithLatestDigestDeliveryError(Aws::String&& value) { SetLatestDigestDeliveryError(value); return *this;}
508 
520  inline GetTrailStatusResult& WithLatestDigestDeliveryError(const char* value) { SetLatestDigestDeliveryError(value); return *this;}
521 
525  inline const Aws::String& GetLatestDeliveryAttemptTime() const{ return m_latestDeliveryAttemptTime; }
526 
530  inline void SetLatestDeliveryAttemptTime(const Aws::String& value) { m_latestDeliveryAttemptTime = value; }
531 
535  inline void SetLatestDeliveryAttemptTime(Aws::String&& value) { m_latestDeliveryAttemptTime = value; }
536 
540  inline void SetLatestDeliveryAttemptTime(const char* value) { m_latestDeliveryAttemptTime.assign(value); }
541 
545  inline GetTrailStatusResult& WithLatestDeliveryAttemptTime(const Aws::String& value) { SetLatestDeliveryAttemptTime(value); return *this;}
546 
550  inline GetTrailStatusResult& WithLatestDeliveryAttemptTime(Aws::String&& value) { SetLatestDeliveryAttemptTime(value); return *this;}
551 
555  inline GetTrailStatusResult& WithLatestDeliveryAttemptTime(const char* value) { SetLatestDeliveryAttemptTime(value); return *this;}
556 
560  inline const Aws::String& GetLatestNotificationAttemptTime() const{ return m_latestNotificationAttemptTime; }
561 
565  inline void SetLatestNotificationAttemptTime(const Aws::String& value) { m_latestNotificationAttemptTime = value; }
566 
570  inline void SetLatestNotificationAttemptTime(Aws::String&& value) { m_latestNotificationAttemptTime = value; }
571 
575  inline void SetLatestNotificationAttemptTime(const char* value) { m_latestNotificationAttemptTime.assign(value); }
576 
580  inline GetTrailStatusResult& WithLatestNotificationAttemptTime(const Aws::String& value) { SetLatestNotificationAttemptTime(value); return *this;}
581 
585  inline GetTrailStatusResult& WithLatestNotificationAttemptTime(Aws::String&& value) { SetLatestNotificationAttemptTime(value); return *this;}
586 
590  inline GetTrailStatusResult& WithLatestNotificationAttemptTime(const char* value) { SetLatestNotificationAttemptTime(value); return *this;}
591 
595  inline const Aws::String& GetLatestNotificationAttemptSucceeded() const{ return m_latestNotificationAttemptSucceeded; }
596 
600  inline void SetLatestNotificationAttemptSucceeded(const Aws::String& value) { m_latestNotificationAttemptSucceeded = value; }
601 
605  inline void SetLatestNotificationAttemptSucceeded(Aws::String&& value) { m_latestNotificationAttemptSucceeded = value; }
606 
610  inline void SetLatestNotificationAttemptSucceeded(const char* value) { m_latestNotificationAttemptSucceeded.assign(value); }
611 
615  inline GetTrailStatusResult& WithLatestNotificationAttemptSucceeded(const Aws::String& value) { SetLatestNotificationAttemptSucceeded(value); return *this;}
616 
620  inline GetTrailStatusResult& WithLatestNotificationAttemptSucceeded(Aws::String&& value) { SetLatestNotificationAttemptSucceeded(value); return *this;}
621 
625  inline GetTrailStatusResult& WithLatestNotificationAttemptSucceeded(const char* value) { SetLatestNotificationAttemptSucceeded(value); return *this;}
626 
630  inline const Aws::String& GetLatestDeliveryAttemptSucceeded() const{ return m_latestDeliveryAttemptSucceeded; }
631 
635  inline void SetLatestDeliveryAttemptSucceeded(const Aws::String& value) { m_latestDeliveryAttemptSucceeded = value; }
636 
640  inline void SetLatestDeliveryAttemptSucceeded(Aws::String&& value) { m_latestDeliveryAttemptSucceeded = value; }
641 
645  inline void SetLatestDeliveryAttemptSucceeded(const char* value) { m_latestDeliveryAttemptSucceeded.assign(value); }
646 
650  inline GetTrailStatusResult& WithLatestDeliveryAttemptSucceeded(const Aws::String& value) { SetLatestDeliveryAttemptSucceeded(value); return *this;}
651 
655  inline GetTrailStatusResult& WithLatestDeliveryAttemptSucceeded(Aws::String&& value) { SetLatestDeliveryAttemptSucceeded(value); return *this;}
656 
660  inline GetTrailStatusResult& WithLatestDeliveryAttemptSucceeded(const char* value) { SetLatestDeliveryAttemptSucceeded(value); return *this;}
661 
665  inline const Aws::String& GetTimeLoggingStarted() const{ return m_timeLoggingStarted; }
666 
670  inline void SetTimeLoggingStarted(const Aws::String& value) { m_timeLoggingStarted = value; }
671 
675  inline void SetTimeLoggingStarted(Aws::String&& value) { m_timeLoggingStarted = value; }
676 
680  inline void SetTimeLoggingStarted(const char* value) { m_timeLoggingStarted.assign(value); }
681 
685  inline GetTrailStatusResult& WithTimeLoggingStarted(const Aws::String& value) { SetTimeLoggingStarted(value); return *this;}
686 
690  inline GetTrailStatusResult& WithTimeLoggingStarted(Aws::String&& value) { SetTimeLoggingStarted(value); return *this;}
691 
695  inline GetTrailStatusResult& WithTimeLoggingStarted(const char* value) { SetTimeLoggingStarted(value); return *this;}
696 
700  inline const Aws::String& GetTimeLoggingStopped() const{ return m_timeLoggingStopped; }
701 
705  inline void SetTimeLoggingStopped(const Aws::String& value) { m_timeLoggingStopped = value; }
706 
710  inline void SetTimeLoggingStopped(Aws::String&& value) { m_timeLoggingStopped = value; }
711 
715  inline void SetTimeLoggingStopped(const char* value) { m_timeLoggingStopped.assign(value); }
716 
720  inline GetTrailStatusResult& WithTimeLoggingStopped(const Aws::String& value) { SetTimeLoggingStopped(value); return *this;}
721 
725  inline GetTrailStatusResult& WithTimeLoggingStopped(Aws::String&& value) { SetTimeLoggingStopped(value); return *this;}
726 
730  inline GetTrailStatusResult& WithTimeLoggingStopped(const char* value) { SetTimeLoggingStopped(value); return *this;}
731 
732  private:
733  bool m_isLogging;
734  Aws::String m_latestDeliveryError;
735  Aws::String m_latestNotificationError;
736  Aws::Utils::DateTime m_latestDeliveryTime;
737  Aws::Utils::DateTime m_latestNotificationTime;
738  Aws::Utils::DateTime m_startLoggingTime;
739  Aws::Utils::DateTime m_stopLoggingTime;
740  Aws::String m_latestCloudWatchLogsDeliveryError;
741  Aws::Utils::DateTime m_latestCloudWatchLogsDeliveryTime;
742  Aws::Utils::DateTime m_latestDigestDeliveryTime;
743  Aws::String m_latestDigestDeliveryError;
744  Aws::String m_latestDeliveryAttemptTime;
745  Aws::String m_latestNotificationAttemptTime;
746  Aws::String m_latestNotificationAttemptSucceeded;
747  Aws::String m_latestDeliveryAttemptSucceeded;
748  Aws::String m_timeLoggingStarted;
749  Aws::String m_timeLoggingStopped;
750  };
751 
752 } // namespace Model
753 } // namespace CloudTrail
754 } // namespace Aws
void SetLatestDeliveryAttemptSucceeded(const Aws::String &value)
GetTrailStatusResult & WithLatestNotificationAttemptTime(const Aws::String &value)
GetTrailStatusResult & WithLatestDigestDeliveryTime(Aws::Utils::DateTime &&value)
void SetLatestDeliveryAttemptTime(const Aws::String &value)
GetTrailStatusResult & WithLatestDeliveryAttemptTime(Aws::String &&value)
void SetLatestCloudWatchLogsDeliveryError(const char *value)
GetTrailStatusResult & WithLatestDigestDeliveryError(Aws::String &&value)
GetTrailStatusResult & WithLatestNotificationAttemptSucceeded(Aws::String &&value)
void SetLatestNotificationTime(const Aws::Utils::DateTime &value)
GetTrailStatusResult & WithLatestDigestDeliveryTime(const Aws::Utils::DateTime &value)
const Aws::String & GetLatestNotificationAttemptTime() const
void SetLatestNotificationAttemptTime(const Aws::String &value)
GetTrailStatusResult & WithTimeLoggingStopped(const Aws::String &value)
void SetLatestDeliveryAttemptSucceeded(Aws::String &&value)
GetTrailStatusResult & WithLatestDeliveryAttemptSucceeded(const Aws::String &value)
const Aws::String & GetLatestDigestDeliveryError() const
void SetLatestNotificationError(const Aws::String &value)
GetTrailStatusResult & WithTimeLoggingStopped(const char *value)
GetTrailStatusResult & WithStartLoggingTime(Aws::Utils::DateTime &&value)
GetTrailStatusResult & WithStopLoggingTime(Aws::Utils::DateTime &&value)
const Aws::String & GetLatestNotificationAttemptSucceeded() const
GetTrailStatusResult & WithTimeLoggingStarted(const Aws::String &value)
void SetTimeLoggingStarted(const Aws::String &value)
const Aws::Utils::DateTime & GetLatestDeliveryTime() const
const Aws::String & GetLatestDeliveryAttemptSucceeded() const
GetTrailStatusResult & WithLatestNotificationAttemptSucceeded(const Aws::String &value)
const Aws::String & GetLatestDeliveryError() const
void SetLatestDeliveryTime(const Aws::Utils::DateTime &value)
GetTrailStatusResult & WithLatestDeliveryError(const char *value)
void SetLatestDeliveryTime(Aws::Utils::DateTime &&value)
void SetLatestNotificationAttemptSucceeded(const char *value)
GetTrailStatusResult & WithLatestCloudWatchLogsDeliveryError(Aws::String &&value)
const Aws::String & GetLatestDeliveryAttemptTime() const
GetTrailStatusResult & WithLatestNotificationTime(Aws::Utils::DateTime &&value)
void SetTimeLoggingStopped(const Aws::String &value)
void SetStopLoggingTime(const Aws::Utils::DateTime &value)
GetTrailStatusResult & WithTimeLoggingStopped(Aws::String &&value)
GetTrailStatusResult & WithLatestCloudWatchLogsDeliveryError(const char *value)
GetTrailStatusResult & WithLatestDeliveryAttemptSucceeded(const char *value)
GetTrailStatusResult & WithStopLoggingTime(const Aws::Utils::DateTime &value)
GetTrailStatusResult & WithLatestNotificationAttemptTime(Aws::String &&value)
GetTrailStatusResult & WithLatestNotificationAttemptSucceeded(const char *value)
void SetLatestNotificationAttemptSucceeded(const Aws::String &value)
GetTrailStatusResult & WithLatestNotificationError(Aws::String &&value)
GetTrailStatusResult & WithIsLogging(bool value)
void SetStopLoggingTime(Aws::Utils::DateTime &&value)
void SetLatestDeliveryError(const Aws::String &value)
GetTrailStatusResult & WithTimeLoggingStarted(Aws::String &&value)
const Aws::String & GetLatestNotificationError() const
GetTrailStatusResult & WithLatestDeliveryAttemptSucceeded(Aws::String &&value)
const Aws::Utils::DateTime & GetLatestDigestDeliveryTime() const
GetTrailStatusResult & WithLatestDeliveryError(Aws::String &&value)
GetTrailStatusResult & WithLatestDeliveryAttemptTime(const char *value)
void SetLatestCloudWatchLogsDeliveryError(const Aws::String &value)
const Aws::String & GetTimeLoggingStarted() const
void SetLatestDigestDeliveryTime(const Aws::Utils::DateTime &value)
GetTrailStatusResult & WithLatestNotificationError(const char *value)
void SetLatestDigestDeliveryTime(Aws::Utils::DateTime &&value)
GetTrailStatusResult & WithLatestNotificationTime(const Aws::Utils::DateTime &value)
void SetLatestCloudWatchLogsDeliveryTime(Aws::Utils::DateTime &&value)
const Aws::String & GetTimeLoggingStopped() const
void SetLatestCloudWatchLogsDeliveryTime(const Aws::Utils::DateTime &value)
const Aws::String & GetLatestCloudWatchLogsDeliveryError() const
GetTrailStatusResult & WithLatestCloudWatchLogsDeliveryTime(const Aws::Utils::DateTime &value)
GetTrailStatusResult & WithStartLoggingTime(const Aws::Utils::DateTime &value)
GetTrailStatusResult & WithTimeLoggingStarted(const char *value)
const Aws::Utils::DateTime & GetLatestNotificationTime() const
GetTrailStatusResult & WithLatestNotificationError(const Aws::String &value)
GetTrailStatusResult & WithLatestDeliveryTime(const Aws::Utils::DateTime &value)
void SetLatestDigestDeliveryError(const Aws::String &value)
void SetLatestCloudWatchLogsDeliveryError(Aws::String &&value)
const Aws::Utils::DateTime & GetStartLoggingTime() const
void SetStartLoggingTime(const Aws::Utils::DateTime &value)
GetTrailStatusResult & WithLatestDeliveryError(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GetTrailStatusResult & WithLatestCloudWatchLogsDeliveryError(const Aws::String &value)
#define AWS_CLOUDTRAIL_API
GetTrailStatusResult & WithLatestDeliveryAttemptTime(const Aws::String &value)
GetTrailStatusResult & WithLatestCloudWatchLogsDeliveryTime(Aws::Utils::DateTime &&value)
GetTrailStatusResult & WithLatestDigestDeliveryError(const Aws::String &value)
void SetStartLoggingTime(Aws::Utils::DateTime &&value)
void SetLatestNotificationAttemptSucceeded(Aws::String &&value)
GetTrailStatusResult & WithLatestNotificationAttemptTime(const char *value)
GetTrailStatusResult & WithLatestDigestDeliveryError(const char *value)
GetTrailStatusResult & WithLatestDeliveryTime(Aws::Utils::DateTime &&value)
void SetLatestNotificationTime(Aws::Utils::DateTime &&value)
JSON (JavaScript Object Notation).
const Aws::Utils::DateTime & GetLatestCloudWatchLogsDeliveryTime() const
void SetLatestNotificationAttemptTime(Aws::String &&value)
const Aws::Utils::DateTime & GetStopLoggingTime() const